I have a RadListView control, which has a asp button in Itemtemplate to delete the Item . I have a requirement to make all my controls in page read only. Intially in Page_PreRender event i am traversing through the all controls and their child controls and disabling them. Everything is working as expected. But when i change page of RadListView The asp controls which i have disabled them earlier are again getting enabled. Is this expected behaviour with RadListView combining with RadPager. Below are the properties i have set.
<
telerik:RadAjaxManagerProxy
ID
=
"ADCleintsRadAjaxManagerProxy"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"ClientsRadAjaxPanel"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"ClientsRadListView"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManagerProxy
>
<
telerik:RadAjaxPanel
ID
=
"ClientsRadAjaxPanel"
runat
=
"server"
LoadingPanelID
=
"RadAjaxALoadingPanel"
ViewStateMode
=
"Disabled"
>
<
telerik:RadListView
ID
=
"ClientsRadListView"
runat
=
"server"
ItemPlaceholderID
=
"DrugsContainer"
AllowPaging
=
"True"
PageSize
=
"4"
DataSourceID
=
"ClientsDataSource"
OnItemDataBound
=
"ClientsRadListView_OnItemDataBound"
ViewStateMode
=
"Disabled"
OnNeedDataSource
=
"ClientsRadListView_OnNeedDataSource"
OnItemCreated
=
"RadListView1_ItemCreated"
>
I have checked the Button enable property in different events when i changed the page. Below are the sequence of page flow.
When i changed the RadListView page>
RadListView1_ItemCreated> Button.enabled property is true
PageLoad > Button.enabled property is true
Page_PreRender > first disabling all the form elements with a function > I found my Button enabled property is false here after disabling means my function is working fine.
RadListView1_ItemCreated> This event is fired again and my button.enabled is true here. Please can any one help me with this?