or
| RadWindow1 = new RadWindow(); |
| RadWindow1.KeepInScreenBounds = true; |
| RadWindow1.Skin = "WebBlue"; |
| RadWindow1.VisibleOnPageLoad = true; |
| RadWindow1.Modal = true; |
| RadWindow1.ShowContentDuringLoad = false; |
| RadWindow1.VisibleTitlebar = false; |
| RadWindow1.VisibleStatusbar = false; |
| this.Controls.Add(RadWindow1); |
| <input type="text" onfocus="onTimeInputFocus(this);"/> |
| <script type="text/javascript" language="javascript"> |
| var replacedElement = null; |
| function onTimeInputFocus(input) |
| { |
| timepicker = getNinjaTimePickerObject(); |
| timepickerEl = getNinjaTimePickerElement(); |
| if ( replacedElement ) |
| { |
| replacedElement.value = timepicker.get_textBox().value; |
| timepickerEl.parentNode.replaceChild(replacedElement, timepickerEl); |
| } |
| else |
| { |
| timepickerEl.parentNode.removeChild(timepickerEl); |
| } |
| replacedElement = input.parentNode.replaceChild(timepickerEl, input); |
| timepicker.get_textBox().value = replacedElement.value; |
| //setTimeout( "timepicker.get_textBox().focus();", 100 ); |
| } |
| function getNinjaTimePickerElement() |
| { |
| return document.getElementById("<%= NinjaTimePicker.ClientID %>" + "_wrapper"); |
| } |
| function getNinjaTimePickerObject() |
| { |
| return $find("<%= NinjaTimePicker.ClientID %>"); |
| } |
| </script> |

protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e)
{
if (e.CommandName == "Sort" || e.CommandName == "Filter")
doDataBind =
true;
}
Here "doDataBind" is a local boolean value that is needed for logic.to select data that is to be binded with the grid.
Due to this, as soon as I click on the filter icon, the postback filter action is triggered on the grid with command "equalto". Thus I am not able to select the command with which I need to filter the grid items. Is there a workaround for this?
Please note that when the handler for itemcommand is not implemented, the filters do work just fine.
Thanks,
Shashvat