I am using ultrawebgrid.
i need to copy the text from any cell in grid by right click on the cell.. "Copy feature is disabled in context menu".
But dont want to use AllowUpdate = true in any column.. becoz there is a chance of editing the value in the cell..
Need to copy text from any cell like in asp.net gridviews.
Does this sample help?
http://samples.infragistics.com/2008.2/webfeaturebrowser/contents.aspx?showCode=True&t=WebGrid/CopyPaste/default.aspx~srcview.aspx?path=../webfeaturebrowservb/WebGrid/CopyPaste/default.src~srcview.aspx?path=WebGrid/CopyPaste/default.src
The sample specifically refers to copy and pasting to/from Excel, but I believe the actual copy/paste logic it includes is generic.
Devin
Can it be possible to do that in ultrawebgrid that i want to select one of the row column for instance I have those five columns as
Account Employer Create Date/Time Work Order System Message
01232 John Doe 11/12/2006 11:30 pm W0343 More Info request by John Doe
01234 Jane Q. 11/22/2006 11:25 pm W0344 System Failure
I want to be able to create context menu that focus on the Work Order Column, I want to select W0343, W0343 will become a value which I will carry on to a next page which show the work order page, or Assign to other users. Are there a way to create this context menu that allow me to focus on one column and one row which i want???
Thanks.
Rob
Rob ,
Hope this will be helpful to you..
//Java Script For grid cell copying
function DblClick(tableName, itemName)
{
var cell = igtbl_getCellById(itemName); // try to get full row instead of single cell cell.
window.clipboardData.clearData();
if(cell)
var stringValue = String(cell.getValue()); //for date copying date columns too.
window.clipboardData.setData("Text", stringValue);
return 1;
}
<igtbl:UltraWebGrid ID="ugwAccounts" runat="server" OnInitializeRow="ugwAccountss_InitializeRow"
OnInitializeLayout="ugwAccounts_InitializeLayout" Width="100%">
<DisplayLayout AllowColSizingDefault="Free" Name="ugwAccounts" RowHeightDefault="21px" Version="4.00" ColWidthDefault="" AutoGenerateColumns="False" AllowSortingDefault="NotSet"
HeaderClickActionDefault="NotSet">
<ClientSideEvents DblClickHandler="DblClick" />
Regards
Sanjeev
No answer. I hope for some answer because I will like to be able to have context menu that allow me to select one of the work order then have that work order data as a string. Is there any way to do that??
Thanks