Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
710
Migrate oninitializelayout event
posted

Hi! I am migrating from 11.1 to 13.2 and I have a WebHierarchicalDataGrid  that defines a javascript in the oninitializelayout event.

How do I define that event on the new grid?

I tried with OnInit but I get this error:

[mycontrol] does not contain a definition for '[myfunctionname]' and no extension method '[myfunctionname]' accepting a first argument of type '[mycontrol]' could be found (are you missing a using directive or an assembly reference?)

thank you!

Parents
No Data
Reply
  • 3595
    posted

    Hello Nicole,

    Thank you for posting in our forum!

    A possible alternative could be handling the InitializeBand event. This is how to implement it:

    Client code:

            <ig:WebHierarchicalDataGrid ID="WebHierarchicalDataGrid1" runat="server" Height="350px" Width="400px" OnInitializeBand="WebHierarchicalDataGrid1_InitializeBand" >

     ...

            </ig:WebHierarchicalDataGrid>

    Code behind:

        protected void WebHierarchicalDataGrid1_InitializeBand(object sender, Infragistics.Web.UI.GridControls.BandEventArgs e)

        {

     ...

        }

    Please let me know if this approach fits your requirements.

Children