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

Jquery not firing on Postback on RadAjax Panel

4 Answers 63 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Atchut
Top achievements
Rank 1
Atchut asked on 07 May 2012, 05:31 PM
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

4 Answers, 1 is accepted

Sort by
0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 07 May 2012, 07:06 PM
Hello,

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
0
Atchut
Top achievements
Rank 1
answered on 07 May 2012, 08:09 PM
And moreover,

Where I have to write this code

ScriptManager.RegisterStartupScript(thisthis.GetType(), "test1""EnableDisableTable();"true);
        //or
this.ClientScript.RegisterStartupScript(thisthis.GetType(), "test2""EnableDisableTable();"true);
0
Atchut
Top achievements
Rank 1
answered on 08 May 2012, 03:04 PM
Thank you Jayesh. Its working.
Tags
Grid
Asked by
Atchut
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
Atchut
Top achievements
Rank 1
Share this question
or