jQWidgets Forums

jQuery UI Widgets Forums Navigation Menu, Context Menu Hiding Context Menu on GRID

This topic contains 4 replies, has 2 voices, and was last updated by  Dave_1 9 years, 2 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Hiding Context Menu on GRID #80161

    Dave_1
    Participant

    Hello

    On Context Menu I have three items , of which i want to hide third item using condition of column from the grid.

    Eg

    <div id='MyMenu' style="display:none">
        <ul>
    		<li>Edit</li> 
    		<li>Delete</li>
    		<li id="approve">Approve</li>
    	</ul>
    </div>

    I want to hide third menu item , using condition from grid column.

    Hiding Context Menu on GRID #80248

    ivailo
    Participant

    Hi Dave_1,

    In this case you can change the height of the menu, so the last item will be hidden.

    In attached example if you right click on cell in “First name” column there will be 2 items in your menu.
    If you click another column there will be 3 items.

    Here is the demo.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Hiding Context Menu on GRID #80276

    Dave_1
    Participant

    Thanks Ivailo ,

    Can same thing can be done for row with condition.
    for eg Grid has hidden column “Approved” which has string values i.e ‘True’ or ‘False’. according to that string can we manipulate the menu.

    Hiding Context Menu on GRID #80300

    ivailo
    Participant

    Hi Dave_1,

    You can use getrowdata method to get the value of the hidden field. Then check it’s value and depending on it change the height of the menu.

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Hiding Context Menu on GRID #80327

    Dave_1
    Participant

    Hi Ivailo

    Thanks for ur valuable Feedback . It works fine now.

    Thanks
    Dave

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

You must be logged in to reply to this topic.