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

[Solved] Grid event working while Grid is placed inside the asp panel and panel is disabled.

1 Answer 46 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Gagan Garg
Top achievements
Rank 1
Gagan Garg asked on 13 Jan 2010, 02:25 PM
Hi Guys,

Please do me a favour if anyone face this type of problem

Problem:-

I have  a Rad grid which is inside the asp panel. The problem is when the panel is disabled the grid lokks disabled but the event of the grid is fired like Selected index changed event and hyperlink click inside rad grid item temple. what i will do to prevent this.

Example:

<asp:Panel ID="TestPanel"  runat="server"
<Telerik:RadGrid id="RadGrid1" runat="server"

</Telerik:RadGrid>
</Panel>

.Cs code

TestPanel.enabled=false;

but the grid is not disabled.

Tahnks in advance.



1 Answer, 1 is accepted

Sort by
0
Mira
Telerik team
answered on 18 Jan 2010, 04:13 PM
Hi Gagan,

I am afraid that the behavior described by you is expected.
The Enabled property of the asp:Panel when set to false still allows postbacks. It is possible for a disabled control to craft a request that submits a postback and this postback to be processed by the page.
To prevent this, I recommend that you make sure that the control is enabled and visible prior to processing a postback request.

I hope this helps.

Sincerely yours,
Mira
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Gagan Garg
Top achievements
Rank 1
Answers by
Mira
Telerik team
Share this question
or