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();
}
}
}
In HeaderContextMenu was made a typo in item value. TopGroupSeparator is typed as TopGroupSeperator. I've wasted 10 minutes to find out why JS code is not working.
Provide the ability for the developer to configure the grid so that the Group By box appears _below_ the CommandItem
Currently to use a UserControl in RadGrid, it has to be in EditFormSettings defined as UserControlName. This functionallity requires filling all the controls of UserControl again on ItemDataBound event. It should be possible to put the UserControl in FormTemplate when EditFormType is "Template" . Thank you.
I have a requirement where I need to right align the data in my RadGrid (a row of numbers) and I also need to right align the header and the filter controls.
Currently there is no FilterStyle like there is HeaderStyle or ItemStyle. Yes, I can right align all of the filter columns, but I need to be able to pick-and-choose which columns get right aligned.
When I opened a support ticket the following css was suggested, but that only right aligns the text in the text box, the the controls themselves in the <td>.
.rgFilterRow td:nth-child(4),
.rgFilterRow td:nth-child(7)
{
text-align: right;
}