Help with using Menu control in ASP.NET MVC App

Posted by: Victor.m.charles.civ on 8 September 2019, 3:33 pm EST

  • Posted 8 September 2019, 3:33 pm EST

    Hello,

    I am using code below to select multiple folder in a menu control "C1.C1Command"and display values in a C1TrueDBGrid control.

    Is the same possible in a ASP.NET App using C#?

    Private Sub Small_Click(ByVal sender As Object, ByVal e As C1.Win.C1Command.ClickEventArgs) Handles Small.Click
        Medium.Checked = False
        Small.Checked = True
        C1Command9.Checked = False
        C1Command10.Checked = False
        C1Command11.Checked = False
        C1Command13.Checked = False
        C1Command14.Checked = False
        C1Command15.Checked = False
        C1Command16.Checked = False
        C1Command17.Checked = False
        C1Command18.Checked = False
        C1CommandMenu16.Checked = False
        C1CommandMenu17.Checked = False
        AnnexesCommand.Checked = False
        Format.Checked = False
        Helpaop.Checked = False
    
        CheckCountryList.Clear()
        CheckCountryLista.Clear()
        CheckCountryListchpt.Clear()
        C1Screen1.DataSource = Nothing
        C1Screen2.DataSource = Nothing
        C1Screen3.DataSource = Nothing
        '  C1Screen1.Columns(0).Visible = 
    
        cleargrids()
    
        fsLinkCHPT = New System.IO.FileStream(Application.StartupPath + "\Chapters.xml", IO.FileMode.Open)
        dtsetLinkCHPT.Clear()
        dtsetLinkCHPT.ReadXml(fsLinkCHPT)
        fsLinkCHPT.Close()
        Dim SearchCriteria As String = "CHPT > 100 AND CHPT < 120"
        Dim FilteredDT As DataTable
        Dim DV As New DataView(dtsetLinkCHPT.Tables(0), SearchCriteria, Nothing, DataViewRowState.CurrentRows)
        FilteredDT = DV.ToTable
        If FilteredDT.Rows.Count > 0 Then
    
            C1TrueDBGrid1.DataSource = FilteredDT.DefaultView.ToTable(True, New String() {"CHPT", "TITLE"})
            C1TrueDBGrid1.Splits(0).DisplayColumns(0).Width = 45
        End If
        hidegrids()
    End Sub
    
  • Posted 8 September 2019, 10:38 pm EST

    Hi,

    In MVC, there is Menu control which also has the Commands, please refer to the following demo sample for reference:

    https://demos.componentone.com/ASPNET/LearnMvcClient/C1Input/MenusCommands

    Hope it helps!

    Regards,

    Manish Gupta

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels