Click here to Skip to main content
15,887,175 members
Home / Discussions / C#
   

C#

 
GeneralRe: Drag and Drop a folder to a textBox within a User Control Pin
W3453121-Nov-19 19:47
W3453121-Nov-19 19:47 
GeneralRe: Drag and Drop a folder to a textBox within a User Control Pin
Dave Kreskowiak22-Nov-19 1:58
mveDave Kreskowiak22-Nov-19 1:58 
GeneralRe: Drag and Drop a folder to a textBox within a User Control Pin
W3453122-Nov-19 3:01
W3453122-Nov-19 3:01 
QuestionExtract variables from string math expression with parenthesis Pin
foreigh20-Nov-19 22:14
foreigh20-Nov-19 22:14 
AnswerRe: Extract variables from string math expression with parenthesis Pin
OriginalGriff20-Nov-19 22:56
mveOriginalGriff20-Nov-19 22:56 
GeneralRe: Extract variables from string math expression with parenthesis Pin
foreigh20-Nov-19 23:32
foreigh20-Nov-19 23:32 
GeneralRe: Extract variables from string math expression with parenthesis Pin
OriginalGriff20-Nov-19 23:50
mveOriginalGriff20-Nov-19 23:50 
QuestionHow to use recursion to build dynamic menu from database in c# Pin
Mahmoud EL-Shazly20-Nov-19 20:07
Mahmoud EL-Shazly20-Nov-19 20:07 
I'm trying to build a dynamic menu from database and pass it to DevExpress Menu control my table looks like:
(Primary)
(int) - nvarchar(50) - (int)
Iserial - Department - ParentIserial

if the department has no parent then ParentIserial = 0 otherwise it will = the parent's Iserial

Ibuilt the model like this
C#
public class TblDepartments {

    [Key]
    [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
    public int Iserial { get; set; }
    public nvarchar(50) Department { get; set; }
    public int ParentIserial{ get; set; }
    public IEnumerable<TblDepartments> items { get; set; }
}

and I was following this link
Overview - ASP.NET Core Menu Demo | DevExpress[^]
so please tell me how to build the structure same as the have done it on their demo to pass it to the control

Thanks in advance
JusT LeT YouR MinD WorK

AnswerRe: How to use recursion to build dynamic menu from database in c# Pin
OriginalGriff20-Nov-19 21:46
mveOriginalGriff20-Nov-19 21:46 
GeneralRe: How to use recursion to build dynamic menu from database in c# Pin
Mahmoud EL-Shazly20-Nov-19 21:49
Mahmoud EL-Shazly20-Nov-19 21:49 
GeneralRe: How to use recursion to build dynamic menu from database in c# Pin
OriginalGriff20-Nov-19 21:54
mveOriginalGriff20-Nov-19 21:54 
GeneralRe: How to use recursion to build dynamic menu from database in c# Pin
Mahmoud EL-Shazly20-Nov-19 21:57
Mahmoud EL-Shazly20-Nov-19 21:57 
AnswerRe: How to use recursion to build dynamic menu from database in c# Pin
Mycroft Holmes21-Nov-19 12:56
professionalMycroft Holmes21-Nov-19 12:56 
GeneralRe: How to use recursion to build dynamic menu from database in c# Pin
Mahmoud EL-Shazly21-Nov-19 13:19
Mahmoud EL-Shazly21-Nov-19 13:19 
Question.NET Standard 2.1, Xamarin Android/iOS & Emit Pin
Super Lloyd19-Nov-19 13:00
Super Lloyd19-Nov-19 13:00 
AnswerRe: .NET Standard 2.1, Xamarin Android/iOS & Emit Pin
Super Lloyd20-Nov-19 0:45
Super Lloyd20-Nov-19 0:45 
QuestionNew Object Pool Library Pin
Justin-A-Miller19-Nov-19 8:59
Justin-A-Miller19-Nov-19 8:59 
AnswerRe: New Object Pool Library Pin
OriginalGriff19-Nov-19 9:12
mveOriginalGriff19-Nov-19 9:12 
GeneralRe: New Object Pool Library Pin
Justin-A-Miller19-Nov-19 9:22
Justin-A-Miller19-Nov-19 9:22 
GeneralRe: New Object Pool Library Pin
OriginalGriff19-Nov-19 9:51
mveOriginalGriff19-Nov-19 9:51 
GeneralRe: New Object Pool Library Pin
Justin-A-Miller20-Nov-19 3:48
Justin-A-Miller20-Nov-19 3:48 
QuestionHow to scan all pages with one click as below: Pin
Member 1094325619-Nov-19 1:36
Member 1094325619-Nov-19 1:36 
AnswerRe: How to scan all pages with one click as below: Pin
Richard MacCutchan19-Nov-19 1:50
mveRichard MacCutchan19-Nov-19 1:50 
GeneralRe: How to scan all pages with one click as below: Pin
Member 1094325619-Nov-19 1:59
Member 1094325619-Nov-19 1:59 
GeneralRe: How to scan all pages with one click as below: Pin
Richard MacCutchan19-Nov-19 2:19
mveRichard MacCutchan19-Nov-19 2:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.