iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
We are using WebGrid 7.0 in SharePoint WebPart where we are rendering teh Grid programatically.
For every selected row we are getting a light blue back color, which we do not want. In our grid we have coupel of non editable rows which we have grayed out by specifiying forcenoedit to true and setting row's back color. So, if i specify "White" color as back color for selected row style, then it will display white color for those grayed out rows as well.
Is there a way we can set soem transpernte style or not style for selected row ?
Thanks.
You could try setting a new css class in the cell element of the disabled row and mark the style with !important so it will not be overridden by the selected row style.
Here is an example of such workaround. Assign the new style to the disabled row for example, the row with key value 3 and WebGrid column ID, Name, Author, Category during the WebGrid AfterInitialize client side event.
function wgTest_OnAfterInitialize(controlId){ var wgTest = ISGetObject(controlId); var rowStruct = ["ID", "Name", "Author", "Category"]; var rowObj = wgTest.RootTable.GetRowByKeyValue("3"); for (var i = 0; i < rowStruct.length; i++) { rowObj.GetCell(rowStruct[i]).CellElement.className += " Disabled-Row"; } return true;}
Mark the css property as important so it will not be overridden by the selected row style:
<style type="text/css"> .Disabled-Row { background-color: Red !important; font-style: italic; }</style>
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname