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
Hi Maged,
Maybe this is what you need: http://support.intersoftpt.com/docs/webgrid/5.0.7200/isnet.webui.webgrid~isnet.webui.webgrid.clientevents~onbeforeadd.html
And the complete list of clientside events: http://support.intersoftpt.com/docs/webgrid/6.0.7200/isnet.webui.webgrid~isnet.webui.webgrid.clientevents_properties.html.
Good luck.
Hello Handy,
Thanks for your reply. I've looked into the SmartBatchUpdate scenario, it's got almost everything I need, except for one thing. It's still updating at clientside by an AJAX call. I'd like to perform a complete page postback (because the grid lives inside a larger form and in the near future multiple grids will be added to the form). Will this also be possible with a SmartBatchUpdate?
In the meantime I found this example on the support site: http://support.intersoftpt.com/KBArticle.aspx?aid=137. Ran into some other problems with this... maybe out of the scope of this topic, so posted it in a new question http://www.intersoftpt.com/Community/WebGrid/WebGrid-BulkUpdate-with-IList-DataSource-doesnt-show-changes-on-postback/.
Thanks in advance for replies.
Regards,
Herman
Allright, finally sorted it out.
All solutions with interactions to the Client API seem to work, but with some issues (see my post above). The nicest way to simulate it best, is to assign a CssClass to each RowStyle in use.
<style type="text/css"> tr[type="Record"]:hover td.GridRowStyle { background-color: blue; } tr[type="Record"]:hover td.GridAlternateRowStyle { background-color: green; } </style>
This Css-example sets the backgroundcolor to blue and green if hovered. It's working by assigning this layoutsettings to the WebGrid:
<LayoutSettings AlternatingColors="True"> <AlternatingRowStyle CssClass="GridAlternateRowStyle" /> <RowStyle CssClass="GridRowStyle" /> </LayoutSettings>
I'd say problem solved. Anyone who thinks this solution will cause other issues, please reply! Thanks.
Thank you for the attachment code and feature request (I think it would be a nice addon)! Your example works quite smoothly, unfortunatly, except for one thing.
The backgroundcolor changes to cyan on row enter and simultaneously switches the background color of other rows back to normal. Good so far. My problem occurs when the mouse pointer enters some 'empty' areas of the grid, column headers, the footer or leaves the grid control. When I do one of these actions, the cyan background color stays on the last hovered row and doesn't switch back to normal.
I've studied the code and tried some events, but can't get a descent solution yet. Still figuring out. Maybe you or someone has an idea to this?
Many thanks.
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