Click here to Skip to main content
14,387,888 members
   

C#

 
GeneralRe: Drag and Drop a folder to a textBox within a User Control Pin
W3453121-Nov-19 20:47
MemberW3453121-Nov-19 20:47 
GeneralRe: Drag and Drop a folder to a textBox within a User Control Pin
Dave Kreskowiak22-Nov-19 2:58
mveDave Kreskowiak22-Nov-19 2:58 
GeneralRe: Drag and Drop a folder to a textBox within a User Control Pin
W3453122-Nov-19 4:01
MemberW3453122-Nov-19 4:01 
QuestionExtract variables from string math expression with parenthesis Pin
foreigh20-Nov-19 23:14
Memberforeigh20-Nov-19 23:14 
AnswerRe: Extract variables from string math expression with parenthesis Pin
OriginalGriff20-Nov-19 23:56
mveOriginalGriff20-Nov-19 23:56 
GeneralRe: Extract variables from string math expression with parenthesis Pin
foreigh21-Nov-19 0:32
Memberforeigh21-Nov-19 0:32 
GeneralRe: Extract variables from string math expression with parenthesis Pin
OriginalGriff21-Nov-19 0:50
mveOriginalGriff21-Nov-19 0:50 
QuestionHow to use recursion to build dynamic menu from database in c# Pin
Mahmoud EL-Shazly20-Nov-19 21:07
MemberMahmoud EL-Shazly20-Nov-19 21: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
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 22:46
mveOriginalGriff20-Nov-19 22:46 
GeneralRe: How to use recursion to build dynamic menu from database in c# Pin
Mahmoud EL-Shazly20-Nov-19 22:49
MemberMahmoud EL-Shazly20-Nov-19 22:49 
GeneralRe: How to use recursion to build dynamic menu from database in c# Pin
OriginalGriff20-Nov-19 22:54
mveOriginalGriff20-Nov-19 22:54 
GeneralRe: How to use recursion to build dynamic menu from database in c# Pin
Mahmoud EL-Shazly20-Nov-19 22:57
MemberMahmoud EL-Shazly20-Nov-19 22:57 
AnswerRe: How to use recursion to build dynamic menu from database in c# Pin
Mycroft Holmes21-Nov-19 13:56
MemberMycroft Holmes21-Nov-19 13:56 
GeneralRe: How to use recursion to build dynamic menu from database in c# Pin
Mahmoud EL-Shazly21-Nov-19 14:19
MemberMahmoud EL-Shazly21-Nov-19 14:19 
Question.NET Standard 2.1, Xamarin Android/iOS & Emit Pin
Super Lloyd19-Nov-19 14:00
MemberSuper Lloyd19-Nov-19 14:00 
AnswerRe: .NET Standard 2.1, Xamarin Android/iOS & Emit Pin
Super Lloyd20-Nov-19 1:45
MemberSuper Lloyd20-Nov-19 1:45 
QuestionNew Object Pool Library Pin
Justin-A-Miller19-Nov-19 9:59
MemberJustin-A-Miller19-Nov-19 9:59 
AnswerRe: New Object Pool Library Pin
OriginalGriff19-Nov-19 10:12
mveOriginalGriff19-Nov-19 10:12 
GeneralRe: New Object Pool Library Pin
Justin-A-Miller19-Nov-19 10:22
MemberJustin-A-Miller19-Nov-19 10:22 
GeneralRe: New Object Pool Library Pin
OriginalGriff19-Nov-19 10:51
mveOriginalGriff19-Nov-19 10:51 
GeneralRe: New Object Pool Library Pin
Justin-A-Miller20-Nov-19 4:48
MemberJustin-A-Miller20-Nov-19 4:48 
QuestionHow to scan all pages with one click as below: Pin
Member 1094325619-Nov-19 2:36
MemberMember 1094325619-Nov-19 2:36 
AnswerRe: How to scan all pages with one click as below: Pin
Richard MacCutchan19-Nov-19 2:50
mveRichard MacCutchan19-Nov-19 2:50 
GeneralRe: How to scan all pages with one click as below: Pin
Member 1094325619-Nov-19 2:59
MemberMember 1094325619-Nov-19 2:59 
GeneralRe: How to scan all pages with one click as below: Pin
Richard MacCutchan19-Nov-19 3:19
mveRichard MacCutchan19-Nov-19 3: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.