This is a migrated thread and some comments may be shown as answers.

[Solved] Javascript public vaiable passing problem

0 Answers 61 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mohamed
Top achievements
Rank 1
mohamed asked on 29 Sep 2011, 12:14 PM
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
       {
           if (e.Item is GridEditableItem && e.Item.IsInEditMode)
           {
               RadDatePicker StartDate = (RadDatePicker)e.Item.FindControl("DateofCommencement");
               RadNumericTextBox Duration = (RadNumericTextBox)e.Item.FindControl("Duration");
               RadDatePicker EndDate = (RadDatePicker)e.Item.FindControl("DateofCompletion");
               Duration.Attributes.Add("onblur", string.Format("changeEndDate('{0}','{1}','{2}','{3}','{4}');", StartDate.ClientID, Duration.ClientID, EndDate.ClientID, Dtcomm, Dtcomplete));
           }
       }


In this itemdatabound  i passing through javascript ,
First time public variable values are come ,
after i change the public variable ,
Second that public variables values not old values on available ,
How i get current values

Reply as soon as possible

Thanks,
Mohamed,

No answers yet. Maybe you can help?

Tags
Grid
Asked by
mohamed
Top achievements
Rank 1
Share this question
or