Hello, is it possible to select all the (table) text with my mouse in the ultrWebGrid and copy it to the clipboard? When I select now the text, I see only the cell selected (without copy option after right-click). When I left-click and drag over the selection, the selection only jumps to another cell.
I tried already a few combinations in the Feature Picker -> Selection. But no result unfortunately.
Thanks in advance.
-AJ-
Take a look at this sample:
http://samples.infragistics.com/2008.3/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
Notice the settings under DisplayLayout for SelectTypeCellDefault and SelectTypeRowDefault.
Addition: I set the SelectTypeCellDefault and SelectTypeRowDefault properties both to Single and None, but none of these 2 options let me select more than one cell. When I move (left button pushed) the cell selection jumps to the next cell along I move with my mouse pointer. Why I don't see a difference when I set this properties to None or Single?
Thanks in advance again.
You want to set it to extended.
http://help.infragistics.com/Help/NetAdvantage/NET/2008.3/CLR2.0/html/Infragistics2.WebUI.UltraWebGrid.v8.3~Infragistics.WebUI.UltraWebGrid.SelectType.html
Hello, yeah! That was it! I didn't see and I was misleaded that I didn't see the Copy Paste in the right-click menu. So I'm thinking to implement your example menu as well. Thanks for the fast help!
Ps. I posted also another question if it's possible to hide some of the rowfilter buttons in the column. Do you know that?
Thanks again.
It works but you just don't see the cells being selected. Here is my code (I removed additional styles to keep the aspx small):
<body>
<form id="form1" runat="server">
<div>
<igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server" Height="599px" Width="649px">
<DisplayLayout AllowColSizingDefault="Free" AllowColumnMovingDefault="OnServer" AllowDeleteDefault="Yes"
AllowSortingDefault="OnClient" AllowUpdateDefault="Yes" BorderCollapseDefault="Separate"
Name="UltraWebGrid1" RowHeightDefault="20px" RowSelectorsDefault="No" SelectTypeCellDefault="Extended"
SelectTypeColDefault="Single" SelectTypeRowDefault="Extended" StationaryMargins="Header"
StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00" ViewType="OutlookGroupBy">
<SelectedRowStyleDefault BackColor="#CC3399">
</SelectedRowStyleDefault>
<ActivationObject BorderColor="" BorderWidth="">
</ActivationObject>
</DisplayLayout>
</igtbl:UltraWebGrid>
</div>
</body>
{
DataTable dt = new DataTable();
dt.Columns.Add("col0", typeof(string));
dt.Columns.Add("col1", typeof(string));
dt.Columns.Add("col2", typeof(int));
for (int x = 0; x < 10; x++)
dt.Rows.Add(x, (x * 100).ToString(), x * 4 - 3);
}
this.UltraWebGrid1.DataSource = dt;
this.UltraWebGrid1.DataBind();
I recommend setting the SelectedRowStyleDefault to see the selection.
I tried the 'extended' property as well, but I still can't select more than one cell. When I right-click with my mouse on a cell the option 'Paste' is not available. I set the row selectors as well. Now I can select a complete row, but still no cells in one time.
This is what I have for the DisplayLayout sections. (Exact copy of your Excel look-a-like example)
AllowRowNumberingDefault="Continuous" AllowSortingDefault="No" BorderCollapseDefault="Separate" CellClickActionDefault="CellSelect"
ViewType="Flat" AllowColSizingDefault="Free" AllowColumnMovingDefault="OnServer"
SelectTypeColDefault="Single" TableLayout="Fixed" >