Declined
Last Updated: 03 Nov 2014 09:49 by Elena
Sudeepthi
Created on: 09 May 2013 12:53
Category: Grid
Type: Bug Report
0
enter key not working on header context filter menu of rad grid
Had a script to invoke filter button on enter key in the Filter header context menu of rad grid. This worked fine in Telerik DLL File version - 2010.2.929.35 but recently we upgraded to latest DLL which is File version - 2012.2.912.40 and it stopped working. Could you please help me in resolving this issue?

Code used in ASpx.cs was
 void HeaderContextMenu_ItemCreated(object sender, RadMenuEventArgs e)
        {
            if (e.Item.Value == "FilterMenuContainer")
                {
                    RadTextBox HCFMRTBFirstCond = e.Item.FindControl("HCFMRTBFirstCond") as RadTextBox;
                    HCFMRTBFirstCond.ClientEvents.OnKeyPress = "PressFilterButton";

                    RadTextBox HCFMRTBSecondCond = e.Item.FindControl("HCFMRTBSecondCond") as RadTextBox;
                    HCFMRTBSecondCond.ClientEvents.OnKeyPress = "PressFilterButton";

                }
            }

Javascript code is
function PressFilterButton(sender, args) {

    var c = args.get_keyCode();
    if (c == 13) {
        var btnFilter = null;
        var btnref = sender._clientID.substring(0, sender._clientID.indexOf("RTBFirstCond")) + 'FilterButton';

        btnFilter = document.getElementById(btnref);
        
        if (btnFilter != null) {
            btnFilter.click();
        }
    }
}
1 comment
Elena
Posted on: 03 Nov 2014 09:48
Please use the support ticketing system for similar reports. This channel is only for bug reports(core product) and feature requests.