jQuery UI Widgets Forums Grid Dynamic grid problem

This topic contains 7 replies, has 2 voices, and was last updated by  Peter Stoev 9 years, 11 months ago.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
  • Dynamic grid problem #68649

    vipin@logicerp.com
    Participant

    Dear Sir,

    I am getting an error like-

    Invalid Selector – #jqxgrid! Please, check whether the used ID or CSS Class name is correct.

    When i load grid with partial view at runtime,after loading grid when i enter the data on grid we want to disable or enable grid it throw following error:-

    Invalid Selector – #jqxgrid! Please, check whether the used ID or CSS Class name is correct.

    And if i put the grid on view and not using partial view it works fine.And i also viewed the html of grid both are same but dynamic grid with partial view loading grid throws an error.I also check $(“#jqxgrid”).length it’s output always zero in case of partial view.
    Please suggest me some solution as soon as possible.

    Thanks & Regards,
    Vipin Kumar

    Dynamic grid problem #68652

    Peter Stoev
    Keymaster

    Hi Vipin Kumar,

    Invalid Selector is raised when your jQuery Selection is invalid i.e you try to create Grid from HTML Element which does not exist.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Dynamic grid problem #68660

    vipin@logicerp.com
    Participant

    Dear Sir,

    Please suggest me if i want to load grid dynamically in jquery with partialview or any other alternate in MVC.

    Thanks & Regards,
    Vipin Kumar

    Dynamic grid problem #68665

    Peter Stoev
    Keymaster

    Hi Vipin Kumar,

    You should have HTML DIV tag with valid ID to create a Grid. If you wish add that DIV tag dynamically using jQuery – append, prepend methods or other approach.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Dynamic grid problem #68673

    vipin@logicerp.com
    Participant

    Dear Sir,

    I am using jqxtabcontrol and add tabs dynamically and when i click on add tab button new tab is created and a partialview will be added in that tab.
    And user create dynamically as much they want.Please tell me what is the option to append,prepend method while using jqxtabcontrol with partialview (loading using jquery return html) and add in the tab like:-

    var data1;//here data1 is the html of partial view load using jquery
    $(‘#jqxTabs’).jqxTabs(‘addLast’, ‘Sale Bill Tab’, data1);
    $(‘#jqxTabs’).jqxTabs(‘ensureVisible’, -1);

    Thanks & Regards,
    Vipin Kumar

    Dynamic grid problem #68676

    Peter Stoev
    Keymaster

    Hi Vipin,

    See: http://api.jquery.com/append/

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Dynamic grid problem #68688

    vipin@logicerp.com
    Participant

    Dear Sir,

    Now,i am using append method to add in tab but still same error.

    Thanks & Regards,
    Vipin Kumar

    Dynamic grid problem #68694

    Peter Stoev
    Keymaster

    Hi Vipin,

    If you add DIV tag with ID, you will not get jQurey Invalid Selector if your jQuery selector by ID is Correct i.e $(“#myID”).length > 0

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.