function
Escape()
{
var esc=window.event.keyCode;
if(esc==27)
{
var oWindow = window.radWindow || window.frameElement.radWindow;oWindow.close();
}
}
and calling this function in the body onkeypress
<
body onkeypress="Escape();">
It is working fine in IE browsers but not working in Mozilla.
Could you please get the solution please.
Thank you.
Regards,
Sai
function OnClientTabSelecting(sender, args)
{
var newTabIndex = sender.get_selectedTab().get_value();
| foreach (GridDataItem item in RadGrid1.Items) |
| { |
| int PrincipalID = Convert.ToInt32(item["PrincipalID"].Text); |
| TextBox box = item.FindControl("txtShare") as TextBox; |
| Share = Convert.ToDecimal(((TextBox)box).Text); |
| InsertShareIntoDB(PrincipalID, Share); |
| } |
Adding new rows and updating Share column works fine. What I can't figure out is deleting rows. I am using GridClientDeleteColumn, so when I click on it, the row disappears, as it should. Now on postback, I want to insert into the database only visible (not deleted) rows, but the code above goes through all the rows, even the ones deleted. How can I check on the server-side if a row was deleted?
Thanks,
Julia
RadDatePicker
dp = this.RadScheduler1.FindControl("SelectedDatePicker") as RadDatePicker;
dp.ClientEvents.OnDateSelected = "SchedulerSelectedDatePicker_OnDateSelected";
function SchedulerSelectedDatePicker_OnDateSelected(sender, eventArgs)
{
var date = eventArgs.get_renderDay().get_date();
int offset = date.getTimezoneOffset();
}
My first problem is that for some reason the event is not firing. What could be the problem here.
Once I have sorted that and got it firing I want to pass the value of offset that I calculate in the function back to the server with the partial postback. What's my best way of doing this? Stick the value in a hidden field or is there another way?
Cheers
Gary