After
need to display alternate rows with jqgrid and 2 colors Please help me mvcjqgrid iam new
< (New Columns ("Template Name"). SetKey ). SetEditable (incorrect) .SetSearch (right)) .AddColumn (New column ("Type") SetAlign (MvcJqGrid.Enums.Align.Center) .SetSearch (True) .SetSortable (False) .SetWidth (65) SetEditable (incorrect) .SetAutoWidth (wrong) .SetWidth (700) .SetHeight (120) .SetVirtualScroll (true) .SetRowNum (50) .SetViewRecords (true) .SetPager ("Pager") .SetSe ArchToolbar (right) .setSearchOnEnter (wrong))
First add an onLoadComplete event:
@ (Html.Grid (" & Terms & Conditions") ... .OnLoadComplete ("onLoadComplete ()"))
This will call onLoadComplete function which is defined like this; Script type = "text / javascript" & gt; Funnel ONLOG COMPLETE () {$ ("tr.jqgrow: weird"). CSS ("background", "#E0E0E0"); } & Lt; / Script & gt;
Now, the background color will be set after each request from the server.
Comments
Post a Comment