Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1965
webdropdown issues..help!!
posted

I have a WebDropDown with a WebDataGrid with 3 columns (ID,Name NAd MArks).

When i select an item from the grid, how do I make surr thati get the value of "Marks" from that selecteditem?

I need to check if those marks are less than a particular value

Please help!

Parents
  • 24671
    posted

    you can refer to the following sample:

    http://ko.infragistics.com/products/aspnet/sample/drop-down/templates

    check out the script section, specifically:

    <script type="text/javascript">
    
            function rowSelChange(sender, args) {
                var dd = $find('<%= ddCustomTemplateGrid.ClientID %>');
                var row = args.getSelectedRows().getItem(0).get_cell(0).get_text();
                dd.set_currentValue(row, true);
    
                dd._elements["Input"].focus();
                dd.closeDropDown();
            }
    
            function cancelDDSel(sender, args) {
                args.set_cancel(true);
            }
        </script>
     
    rowSelChange is an event in the WebDataGrid
     
    Hope it helps. Thanks,
    Angel
Reply Children
No Data