Two grids in a user control

  1. #1

    Two grids in a user control

    Hi,

    I am using two grid example in a user control but when i want to transfer rows from Gridpanel1 to Gridpanel 2 javasript error prompts that

    Gridpanel 2 is unidentified

    Is any know how to this or you have any example. Kindly provide me the solution on urgent basis


    Thanks
  2. #2

    RE: Two grids in a user control

    Hi KHafeez,

    If you're referencing the GridPanels in JavaScript code, please ensure you are using the their client-side ID. The client-side ID may be different than the server-side ID. It WILL be different if the component is in a UserControl.


    Hope this helps.


    Geoffrey McGill
    Founder
  3. #3

    RE: Two grids in a user control

    Geoffrey,

    Thankyou for prompt response I want to explain my scenario to, I have a webpage on which I used Gridpanel by ID Gridpanel1 and in it I use menu column and when I call a windoweditor user control through a menu command from code behind then it opens a window with two grids in it Gridpanel1 and Gridpanel2 like a two grid example of grid panel in your example explorer

    When I want to transfer a row from gridpanel1 to gridpanel2 it throws a javascript error

    Gridpanel2 is unidentified

    And I wonder that widow editor user control already contains two grid Gridpanel1 and Gridpanel2 so why it throws this exception, your urgent response will highly appreciated and kindly provide me some example to achieve this


    Thanks
  4. #4

    RE: Two grids in a user control


    Hi,

    This is the below code which is in usercontrol and run through menuitem in grid

    It show an error Gridpanel2 is unidentified



  5. #5

    RE: Two grids in a user control

    Thanks Geoffrey yes you are right and i follow your instructions. and its done

Similar Threads

  1. Replies: 7
    Last Post: Jan 29, 2013, 11:59 AM
  2. Replies: 0
    Last Post: May 16, 2012, 11:29 PM
  3. Replies: 2
    Last Post: Feb 06, 2012, 9:06 AM
  4. Replies: 8
    Last Post: Jan 25, 2011, 4:21 AM
  5. how to upload user control dynamicaly on user control
    By archana mahadule in forum 1.x Help
    Replies: 1
    Last Post: Jan 13, 2011, 12:05 PM

Posting Permissions