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 currently upgrading our app and abandoning support for olde IE browsers including IE8 and everything below. The problem we ran into is that client-side api for grid, behaves differently in new browsers. When we define a HiddenDataMember on a Webgrid column, in server-side code:
myCol = New WebGridColumn myCol.Name = "EmployeeId" myCol.DataMember = "EmployeeId" myCol.HiddenDataMember = "EmployeeName" grid.RootTable.Columns.Add(myCol)
on a client, we would access that property like this:
wgGetCellByName(SelectedRow,"EmployeeId").EmployeeName;
and that worked in IE8 and below, however it doesn't work in HTML5 browsers. With the new DOCTYPE html, in new browsers, that gets rendered as a direct property on a combo object, while in older browsers it's rendered as a member of attributes array on a combo object in js.
When it gets rendered as a property it is lowercased, so the property name would be "employeename" and of course, you have to get it by that name:
wgGetCellByName(SelectedRow,"EmployeeId").employeename;
This means we have to go over all of our code and lowercase all properties. Have you encountered this issue and is there some solutio to it?
... on a client, we would access that property like this: wgGetCellByName(SelectedRow,"EmployeeId").EmployeeName; and that worked in IE8 and below, however it doesn't work in HTML5 browsers. With the new DOCTYPE html, in new browsers, that gets rendered as a direct property on a combo object, while in older browsers it's rendered as a member of attributes array on a combo object in js. ...
I recommend you to switch your JS code to the new client-side API of WebGrid. In order to get value from hidden column using HiddenDataMember, you can use following snippet code:
function GetValueFromHiddenColumnUsingHiddenDataMember() { // get the client object reference of WebGrid1 var grid = ISGetObject("WebGrid1"); // get the row object of the selected object var rowObj = grid.GetSelectedObject().GetRowObject(); // get cells of the row object var cells = rowObj.GetCells(); // get EmployeeId cell var employee = cells.GetNamedItem("EmployeeId"); var employeeName = customer.GetElement().attributes["EmployeeName"].value; alert(employeeName); }
Have you encountered this issue and is there some solutio to it?
I can reproduce the problem when using wgGetCellByName. The problem no longer persist when the recent client-side API is used.
This should helps.
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