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
how can i get the HyperlinkFormatString from the backend in C#.
You could retireve or set the HyperlinkFormatString from the Column property of the WeGrid. Here is a snippet in order to retrieve the HyperlinkFormatString from OrderID column:
grdObj.RootTable.Columns.GetNamedItem("OrderID").HyperlinkFormatString
thank you for the reply.
how can i get the HyperlinkFormatString of the selected link in the javascript.
Means i am running the javascript function when click on the hyperlink. Inside that i want to get the HyperlinkFormatString.
thanks and regards
ca
In order to retrieve the hyperlink using Javascript you will need to access the hyperlink cell element and use the href property.
Here is a snippet to retrieve the hyperlink during onclick event of the hyperlink cell. The snippet will show you how to use the passed value and WebGrid selected object to accomplish this goal and bind the onclick event during initializerow server side event.
protected void grdObj_InitializeRow(object sender, ISNet.WebUI.WebGrid.RowEventArgs e){ if (e.Row.Type == ISNet.WebUI.WebGrid.RowType.Record) { string hypFormatString = "test.aspx?val=" + e.Row.Cells.GetNamedItem("value").Text; e.Row.Cells.GetNamedItem("url").Column.HyperlinkFormatString = hypFormatString; e.Row.Cells.GetNamedItem("url").Column.HyperlinkTarget = HyperlinkTarget.Blank; string customObjectAttributes = " onclick = \"DoClick(this)\""; e.Row.Cells.GetNamedItem("url").CustomObjectAttributes = customObjectAttributes; }}
function DoClick(val) { var grid = ISGetObject("grdObj"); var selectedCell = grid.GetSelectedObject().GetRowObject().GetCell('url'); var href = selectedCell.CellElement.getElementsByTagName('a')[0].href; alert(val.href + " \r\n" + href);}
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