Hello,
Let me explain my situation I can not solve that contains a RadGrid.
In the name WebUserControl ListTable.ascx I put inside a RadGrid that lists my records and a select button and Delete.
Then I create a control named ViewModules.ascx.
Inside ViewModules.ascx I create dynamically in my div PlaceHolder and using a variable in my QueryString, add dynamically in my ListTable.ascx PlaceHolder.
I put in my Session variable control ListTable.ascx then replaced in the page when I press a Delete event of RadGrid is within ListTable.ascx.
You find my code below because I can not provide an example as it uses several library of our platform.
Have you any idea how to make my event the delete button or trigger and be able to see more control in my page?
You will find 3 screenshots that show you the steps to view my shares.
This error only happens with all Telerik controls. If I use Microsoft's control that we have by default with Visual Studio, my control works without error.
Let me explain my situation I can not solve that contains a RadGrid.
In the name WebUserControl ListTable.ascx I put inside a RadGrid that lists my records and a select button and Delete.
Then I create a control named ViewModules.ascx.
Inside ViewModules.ascx I create dynamically in my div PlaceHolder and using a variable in my QueryString, add dynamically in my ListTable.ascx PlaceHolder.
I put in my Session variable control ListTable.ascx then replaced in the page when I press a Delete event of RadGrid is within ListTable.ascx.
You find my code below because I can not provide an example as it uses several library of our platform.
Have you any idea how to make my event the delete button or trigger and be able to see more control in my page?
You will find 3 screenshots that show you the steps to view my shares.
This error only happens with all Telerik controls. If I use Microsoft's control that we have by default with Visual Studio, my control works without error.
Private Sub Page_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init If Me.IsPostBack AndAlso Not Session.Item("ViewModule") Is Nothing Then ModuleItemPlaceHolder.Controls.Add(DirectCast(Session.Item("ViewModule"), Control)) Session.Remove("ViewModule") End IfEnd SubPrivate Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If Not Me.IsPostBack Then Dim site As CMS.Site.Item = CMS.Site.Provider.GetSite(Application) If Not site Is Nothing Then InitHeader(site) If Me.ModuleType = [Module].Enumeration.ModuleType.None Then ' Loading module icons ViewIcons(site) Else ' Loading module ViewModule(site) End If End If End IfEnd SubPrivate Sub ViewModule(ByVal site As CMS.Site.Item) Session.Remove("ViewModule") If Me.ModuleType = [Module].Enumeration.ModuleType.None Then Response.Redirect(String.Concat(site.Url, "/Gestion/")) Else Select Case True Case Me.ModuleType = [Module].Enumeration.ModuleType.News OrElse Me.ModuleType = [Module].Enumeration.ModuleType.SlideShows OrElse _ Me.ModuleType = [Module].Enumeration.ModuleType.Testimonials OrElse Me.ModuleType = [Module].Enumeration.ModuleType.User If Me.RecordID Is Nothing OrElse Not IsNumeric(Me.RecordID) Then Dim ctrl As CMS.Controls.ListTable = DirectCast(LoadControl("~/CMSControls/Generic/ListTable.ascx"), CMS.Controls.ListTable) ctrl.Module = Me.ModuleType ctrl.EnableNewRecord = True Dim handled As Boolean = False RaiseEvent InitListTable(ctrl, handled) Session.Add("ViewModule", ctrl) ModuleItemPlaceHolder.Controls.Add(ctrl) Else End If End Select End IfEnd Sub