Hello,
I am using Jquery in RadGrid which is in RadAjaxPanel.
When I come for the first, Jquery is working fine.
If I do some calculation and page got postback, the same Jquery is not working.
RadGrid is in RadAjaxPanel and Jquery slider is in RadGrid.
What I have to do ?
TIA
I am using Jquery in RadGrid which is in RadAjaxPanel.
When I come for the first, Jquery is working fine.
If I do some calculation and page got postback, the same Jquery is not working.
RadGrid is in RadAjaxPanel and Jquery slider is in RadGrid.
What I have to do ?
TIA
4 Answers, 1 is accepted
0
Accepted

Jayesh Goyani
Top achievements
Rank 2
answered on 07 May 2012, 07:06 PM
Hello,
Thanks,
Jayesh Goyani
function
EnableDisableTable() {
// your jquery code
}
ScriptManager.RegisterStartupScript(
this
,
this
.GetType(),
"test1"
,
"EnableDisableTable();"
,
true
);
//or
this
.ClientScript.RegisterStartupScript(
this
,
this
.GetType(),
"test2"
,
"EnableDisableTable();"
,
true
);
Thanks,
Jayesh Goyani
0

Atchut
Top achievements
Rank 1
answered on 07 May 2012, 08:07 PM
Hello Jayesh,
Thank you for your response.
My scenario is little bit different.
I have 2 User Controls in my Page. Each User Control has its own JQuery.
How can I do those for 2 User Controls.?
TIA
Thank you for your response.
My scenario is little bit different.
I have 2 User Controls in my Page. Each User Control has its own JQuery.
How can I do those for 2 User Controls.?
TIA
0

Atchut
Top achievements
Rank 1
answered on 07 May 2012, 08:09 PM
And moreover,
Where I have to write this code
Where I have to write this code
ScriptManager.RegisterStartupScript(
this
,
this
.GetType(),
"test1"
,
"EnableDisableTable();"
,
true
);
//or
this
.ClientScript.RegisterStartupScript(
this
,
this
.GetType(),
"test2"
,
"EnableDisableTable();"
,
true
);
0

Atchut
Top achievements
Rank 1
answered on 08 May 2012, 03:04 PM
Thank you Jayesh. Its working.