iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Latest Development Blogs
ForumPostTopic
Browse By Tag
function WebGrid1_OnBeforeDelete(controlId, tblName, rowObject){ return false; }
In OnRowContextMenu event:
function WebGrid1_OnRowContextMenu(controlId, rowType, rowElement, menuObject) { var WebGrid1 = ISGetObject(controlId); menuObject.Items.GetNamedItem("mnuSep2").Hide(); menuObject.Items.GetNamedItem("mnuDelete").Hide(); return true; }
These codes above to prevent user delete row from WebGrid.I attached the WebGrid sample regarding this work around. In this sample, I bind WebGrid to AccessDataSource (Northwind.mdb and Employees table).I apologize for the inconvenience.Regards,Hans K.
Hello,I apologize for the late response.Since you can get the key value each checked row, you could use GetRowByKeyValue() WebGrid’s method.With this method you could get WebGridRow object, then you could get CellTemplate column value.I modify the attached sample that I provide to you in my prior post.I add one Checker column to the WebGrid and I modify the Button click event code.
protected void Button1_Click(object sender, EventArgs e){ ArrayList checkedRows = WebGrid1.RootTable.GetCheckedRows(); string text = "Checked rows: " + checkedRows.Count + "\n\n"; foreach (string keyValue in checkedRows) { text += WebGrid1.RootTable.Rows.GetRowByKeyValue(keyValue.ToString()).Cells[3].Value.ToString() + "\n"; } TextBox1.Text = text; }
Hope this helps.Thank you.Regards,Hans K.
Hello,Perhaps you could modify the column’s “EditType” property to “CalendarDropdown” or “CalendarCombo”.So user can select the date from the Calendar, without having to know the date format.Here’s example snippet code how to set the EditType property:
<ISWebGrid:WebGridColumn Caption="Date Column" DataMember="" Name="date_column" Width="150px" EditType="CalendarDropdown" DataType="System.Datetime" DataFormatString="yyyy-MM-dd" EditInfoText="Select Date from Calendar"> </ISWebGrid:WebGridColumn>
Hope this helps.Regards,Hans K.
Hello,Thank you for the question.I made a page that contains WebGrid with CellTemplate feature.I bind the WebGrid to access data source control (Northwind.mdb database & Customers table).I add an ASP button to the page to get the CellTemplate value.So I add a line of code to get the first row CellTemplate column (ContactName column).
protected void Button1_Click(object sender, EventArgs e){ Label3.Text = WebGrid1.RootTable.Rows[0].Cells[2].Value.ToString(); }
Please kindly have review on the sample to see the result.You also could download the sample from this link: http://1drv.ms/1qEvgRcThank you.Regards,Hans K.
Hello,Thank you for the reply.I got an article about why browser like Firefox didn’t allow user to have access to the clipboard.“By default, JavaScript is not allowed to read or set your clipboard data for security and privacy reasons.This is because websites scripts can erase and replace what you currently have in your clipboard (data loss issue) and they can read whatever you have in your clipboard (security and privacy issue); as such, you should grant access with caution.”You could read more about the article from this link:- http://kb.mozillazine.org/Granting_JavaScript_access_to_the_clipboard- https://support.mozilla.org/en-US/questions/969543Hope this helps.Regards,Hans K.
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