The RadGrid OnDataBindingFailed event does not fire when WCF/WebService returns an IIS 500 Errror page. It DOES, however, fire when IIS returns a proper 500 error JSON response. In my case, the former was happening because my ASP.NET WCF services were incorrectly configured and thus throwing a standard IIS 500 error page. RadGrid should recognize the IIS 500 page as failure and spawned a OnDataBindingFailed event. NOTE: For example, RadScheduler *does* correctly interpret the IIS 500 page as a failure (RE: OnClientRequestFailed).
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;
}