Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
131 views
I'm trying to created a grid hierarchy as outlined in this example. I'm using the DetailsTables method (as opposed to NestedViewTemplate) and I would like to put a GridClientSelectColumn on the sub-grid, allowing the user to select only one item from each sub-grid. When i set the parent's AllowMultiRowSelection="False", however, this causes all the sub-grid's to act as a single group, allowing the user to only select 1 item from ALL sub-grids. The definition for my grid is as follows

<telerik:RadGrid runat="server" ID="ledger" Width="900px" AllowSorting="true" AllowPaging="true" AutoGenerateColumns="false" PageSize="10" AllowFilteringByColumn="true" OnNeedDataSource="ledger_NeedDataSource" OnDetailTableDataBind="ledger_DetailTableDataBind" AllowMultiRowSelection="False">
  <GroupingSettings CaseSensitive="false" />
  <ClientSettings EnableRowHoverStyle="true" EnableAlternatingItems="true">
    <Selecting AllowRowSelect="True"  UseClientSelectColumnOnly="True"/>
  </ClientSettings>
  <MasterTableView DataKeyNames="SubstanceId, Name, CAS" ClientDataKeyNames="SubstanceId"  
        ShowHeadersWhenNoRecords="true" CommandItemDisplay="None" Font-Size="10">
    <DetailTables>
      <telerik:GridTableView runat="server" Name="SuggestedComponents" PageSize="5"
            AllowFilteringByColumn="False" AllowSorting="False" AutoGenerateColumns="False" ShowFooter="True">
        <Columns>
          <telerik:GridBoundColumn HeaderText="Name" UniqueName="SuggestionPrimaryName"
               DataType="System.String" AllowSorting="False" AllowFiltering="False" DataField="PrimaryName" />
          <telerik:GridBoundColumn HeaderText="CAS" UniqueName="SuggestionCAS" DataType="System.String"
                AllowSorting="False" AllowFiltering="False" DataField="CAS" />
          <telerik:GridClientSelectColumn UniqueName="SuggestionSelect" />
        </Columns>
      </telerik:GridTableView>
    </DetailTables>
    <Columns>
      <telerik:GridBoundColumn AllowSorting="true" DataType="System.String" UniqueName="SubstanceName"
            HeaderText="Name" DataField="Name" />
      <telerik:GridBoundColumn AllowSorting="true" DataType="System.String" UniqueName="CAS"
            HeaderText="CAS" DataField="CAS" />
      <telerik:GridBoundColumn AllowSorting="true" DataType="System.String" UniqueName="ProductCode"
            HeaderText="Product Code" DataField="ProductCode" />
      <telerik:GridBoundColumn AllowSorting="true" DataType="System.String" UniqueName="ClientSubstanceId"
            HeaderText="Client ID" DataField="ClientSubstanceId" />
    </Columns>
  </MasterTableView>
</telerik:RadGrid>

How can I achieve a single-select-per-sub-grid behavior?
Kostadin
Telerik team
 answered on 26 Mar 2013
1 answer
63 views
It appears that with the latest release the sprite file for the radcombobox has changed. With the previous version we modified the photoshop file to create a "Required" image that would be substituted out if the combo failed validation. With this change our modified image no longer works. Is there a photoshop file available for the sprites for the latest version of the radcombobox?

Thanks,
Kate
Telerik team
 answered on 26 Mar 2013
22 answers
419 views
Hi All,

I was wondering if anyone is using the HierarchyID to create XML for the treeview control, or even better if Telerik is making a change to bind a treeview to a dataset with the HierarchyID datatype.

I found this post, but there was no follow up from Telerik.

Thanks
Mako
Top achievements
Rank 1
 answered on 26 Mar 2013
1 answer
193 views
Hi,

When i expand a row in dynamic radgrid, i get error "Microsoft Jsscript runtime error: 'null' is null or not an object" on client side. I have used Client HierarchyLoadMode.

OrdersGridz.MasterTableView.HierarchyLoadMode =

 

GridChildLoadMode.Client;

 

 
Please see the error attached. Please help, it is killing me.

Code behind:
public void LoadDynamicData()
   {
       List<Orders> lstOrders = new List<Orders>();
       lstOrders.Add(new Orders() { CompanyName = "Readable VoiceMail", OrderID = 1, OrderDate = DateTime.Now, TelNumbers = "1234567890" });
       lstOrders.Add(new Orders() { CompanyName = "Call Blocking", OrderID = 3, OrderDate = DateTime.Now, TelNumbers = "1234567890" });
       lstOrders.Add(new Orders() { CompanyName = "Readable VoiceMail", OrderID = 2, OrderDate = DateTime.Now, TelNumbers = "1237894560" });        
       var telNumbers =
              (from dbo in lstOrders
               select dbo.TelNumbers).Distinct().OrderBy(TelNumbers => TelNumbers);
       RadGrid OrdersGridz = new RadGrid();
       foreach (string tel in telNumbers)
       {
           OrdersGridz = new RadGrid { ID = "OrdersGridz" };
                       
           OrdersGridz.ClientSettings.AllowExpandCollapse = true;
           OrdersGridz.DetailTableDataBind += new GridDetailTableDataBindEventHandler(OrdersGridz_DetailTableDataBind);
           OrdersGridz.EnableLinqExpressions = false;
           OrdersGridz.MasterTableView.ShowHeader = true;
             
           GridTableView tableViewOrders = new GridTableView(OrdersGridz);
           tableViewOrders.ClientDataKeyNames = new string[] { "OrderID" };
           tableViewOrders.DataKeyNames = new string[] { "OrderID" };
           tableViewOrders.Name = "Orders";
           tableViewOrders.AutoGenerateColumns = true;
           GridRelationFields relationFields = new GridRelationFields();
           relationFields.MasterKeyField = "OrderID";
           relationFields.DetailKeyField = "OrderID";
           tableViewOrders.ParentTableRelation.Add(relationFields);
           OrdersGridz.MasterTableView.AutoGenerateColumns = true;
           OrdersGridz.MasterTableView.ClientDataKeyNames = new string[] { "OrderID" };
           OrdersGridz.MasterTableView.DataKeyNames = new string[] { "OrderID" };
           OrdersGridz.MasterTableView.HierarchyLoadMode = GridChildLoadMode.Client;
           OrdersGridz.MasterTableView.DetailTables.Add(tableViewOrders);
           OrdersGridz.InsertCommand+=new GridCommandEventHandler(OrdersGridz_InsertCommand);
            
           var lstOrdersz =
              (from dbo in lstOrders
               select dbo).Where(x => x.TelNumbers.Equals(tel)).ToList();
           OrdersGridz.DataSource = lstOrdersz;
           OrdersGridz.DataBind();
             
           //adding raddock dynamically
           RadDock dock = new RadDock();
           dock.ID = tel;
           dock.Title = tel;
           dock.DockMode = DockMode.Docked;
           dock.EnableDrag = false;
             
           dock.Commands.Add(new DockExpandCollapseCommand());
           dock.Command += new DockCommandEventHandler(dock_Command);
           dock.ContentContainer.Controls.Add(OrdersGridz);
           RadDockZone5.Controls.Add(dock);
                      
       }        
   }
   protected void OrdersGridz_InsertCommand(object sender, GridCommandEventArgs e)
   {
       if (e.CommandName == RadGrid.ExpandCollapseCommandName)
       {
             
       }
   }
   protected void OrdersGridz_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
   {
       List<Products> lstProducts = new List<Products>();
         
       lstProducts.Add(new Products() { ProductName = "A", UnitPrice = 0, OrderID = 1 });
       lstProducts.Add(new Products() { ProductName = "B", UnitPrice = 0, OrderID = 1 });
       lstProducts.Add(new Products() { ProductName = "C", UnitPrice = 0, OrderID = 1 });
       lstProducts.Add(new Products() { ProductName = "X", UnitPrice = 0, OrderID = 2 });
       lstProducts.Add(new Products() { ProductName = "Y", UnitPrice = 0, OrderID = 2 });
       lstProducts.Add(new Products() { ProductName = "M", UnitPrice = 0, OrderID = 3 });
       lstProducts.Add(new Products() { ProductName = "N", UnitPrice = 0, OrderID = 3 });
       lstProducts.Add(new Products() { ProductName = "O", UnitPrice = 0, OrderID = 3 });
       lstProducts.Add(new Products() { ProductName = "P", UnitPrice = 0, OrderID = 3 });
       GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
       switch (e.DetailTableView.Name)
       {
           case "Orders":
               {
                   string OrderID = dataItem.GetDataKeyValue("OrderID").ToString();
                   e.DetailTableView.DataSource = lstProducts.Where(x => x.OrderID.ToString().Equals(OrderID, StringComparison.OrdinalIgnoreCase)).ToList();
                   break;
               }
       }
   }


Thanks in Advance for your help.

Ashok
Angel Petrov
Telerik team
 answered on 26 Mar 2013
0 answers
170 views
Hi 

i have created a query for my treeview hierarchy and it displays fine, i have also added the tootip value and can see this for each level - a sample is below

001 (company)
001001 (company & location)
001001005 (company & location & module)
001001005001 (company & location & module & addon)
001001005002 (company & location & module & addon)
001001005003(company & location & module & addon)
001001005004(company & location & module & addon)
001001005005(company & location & module & addon)

As i say this renders fine but my problem is that when i try to get the values of what the user selects some values are missing from in this instance 001001005002

Here is a snippet of my code

public void saveCheckedPrivileges()
{
    int test = RadTreeView2.CheckedNodes.Count;
    if (RadTreeView2.CheckedNodes.Count > 0)
    {
        IList<RadTreeNode> nodeCollection = RadTreeView2.CheckedNodes;
        string startingRec = null;
        string[] val = null;<br>               
        List<string[]> valsToStore = new List<string[]>();
        foreach (RadTreeNode node in nodeCollection)
        {
             string fileid = node.Value.ToString();
             //Do Whatever with checked value
        }
}

i've also tried with GetAllNodes() and the result is the same - any help would be greatly appreciated :)

Ciaran
Top achievements
Rank 1
 asked on 26 Mar 2013
3 answers
280 views
Hello,
I have a Radgrid (horizontal scrolling turned on) that has about 15 columns and within that I have a RadAsyncUpload control to upload documents in the Edit mode. The display looks good when in ItemTemplate but when I try to edit the record inline, the RadAsyncUpload column displays outside of the RadGrid and far towards the right on the screen. I tried to use a TextBox and RadUpload instead of the RadAsyncUpload control and noticed that Textbox position works fine in edit mode but not RadUploads position. It behaves the same as RadAsyncUpload control.

I have attached the image of the grid that shows the Attachment column and where the RadAsyncUpload control is supposed to be positioned( position 1) and where it is being positioned (position 2).

I have played around a lot with changing the css, z-index, put the control within div tags with css class but nothing seems to be working.

Appreciate all your help,

Kal.
Kostadin
Telerik team
 answered on 26 Mar 2013
2 answers
78 views
Hello Friends:

I have a problem with change the editCommandColumn to the butom on the ItemTemplate.
Who can I fire the ColumnEdit when i click in the buttom edit of the ItemTemplate?
And other solution?

Thanks for your information.
Santos
Top achievements
Rank 1
 answered on 26 Mar 2013
4 answers
105 views
Hi, I would like to validate my website to W3C but I have an error with telerik.

The error : Stray end tag link.
<link class='Telerik_stylesheet' type='text/css' rel='stylesheet' href='/WebResource.axd?d=xyXpLYSOJ1EHFk347fU4-CZC8LTcG_Mlx-DZavV0RF0GCzjzouSg8fpBHrPvFwpW3EFcc9KDfdzH2YiIldiR8AdV5EKcro1uwuY347OUmq-NNsQh7KsYi9RzFScn2FKD-TmWdQJjw_3UF2vIHKZLzw2&amp;t=634902336920000000'>
</link>


The validator requires the link tag to be closed like this "/>" instead of "</link>".

P.S: I use telerik 2012.3.1205.40

Dimitar Terziev
Telerik team
 answered on 26 Mar 2013
3 answers
205 views
Hi,
I have a routine that loops through the groupings and expands or collapses the group based on the maximum value of an ID in the grouped rows (esentially if there are grouped rows with the id expand, other wise collapse).

Here is the routine:
Sub SetExpandCollapse()
        Try
            For Each ghItem As GridGroupHeaderItem In rgCraigslistPostLog.MasterTableView.GetItems(GridItemType.GroupHeader)
 
                Dim MaxPostLogID As Int32
                If ghItem.AggregatesValues("LogID") Is Nothing Then
                    MaxPostLogID = 0
                Else
                    MaxPostLogID = ghItem.AggregatesValues("LogID")
                End If
 
                If MaxPostLogID = 0 Then
                    ghItem.Expanded = False
                Else
                    ghItem.Expanded = True
                End If
 
            Next
        Catch ex As Exception
            CraigslistPostingTool.DataAccess.LogError(ex, Request, GetCurrentMethod.Name, GroupID, AutoclickID)
        End Try
    End Sub

And I am adding text and formating to the grouped item in code at ItemDataBound:
Private Sub rgCraigslistPostLog_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles rgCraigslistPostLog.ItemDataBound
        Try
            If TypeOf e.Item Is GridGroupHeaderItem Then
                Dim item As GridGroupHeaderItem = CType(e.Item, GridGroupHeaderItem)
                Dim groupDataRow As DataRowView = CType(e.Item.DataItem, DataRowView)
                item.DataCell.Text = "<label style='font-weight:bold'>" + groupDataRow("Vehicle").ToString() + "'</label>   "
                item.DataCell.Text += "<a href='#' onclick='LaunchPTpopup1(" + groupDataRow("ItemID").ToString() + ");return false;' >Post Vehicle</a>"
            End If
 
            If TypeOf e.Item Is Telerik.Web.UI.GridDataItem Then
...

My problem is that ghItem.AggregatesValues("LogID") always returns Nothing. If I specify a GroupHeaderTemplate delaritively then the SetExpandCollapse works fine. Unfortunately, I can't declare the GroupHeader this way because I want to be able to remove grouping with a button so the user can set up his own grouping by dragging headers to the group bar. If there is a GroupHeaderTemplate then an exception is thrown.

Can you see why ghItem.AggregatesValues("LogID")  in SetExpandCollapse is alwys Nothing? Or can you tell me how to add and remove the GroupHeaderTemplate programmatically?

Thanks.

Charles


<telerik:RadGrid ID="rgCraigslistPostLog" ShowGroupPanel="true" AutoGenerateColumns="false" AllowSorting="true"
    DataSourceID="sqldsCLPostLog" ShowFooter="False" runat="server" GridLines="None"
    AllowPaging="true" PageSize="10" OnPreRender="RadGrid1_PreRender" Width="100%" >
    <MasterTableView ShowGroupFooter="false" CommandItemDisplay="None" EditMode="InPlace" PagerStyle-PageSizes="5,10,15,25,50,100">
        <%--<CommandItemSettings ShowExportToExcelButton="true" ShowAddNewRecordButton="false"></CommandItemSettings>--%>
        <%--<GroupHeaderTemplate>
            <asp:Label runat="server" ID="Label3" style="font-weight:bold" Text='<%# Eval("Vehicle") %>' ></asp:Label>   
            <a href='#' onclick='<%# "javascript:LaunchPTpopup1("+ CStr(Eval("ItemID")) + ");return false;" %>' >Post Vehicle</a>
        </GroupHeaderTemplate>--%>
        <Columns>
            <telerik:GridBoundColumn HeaderText="ItemID" DataField="ItemID" Visible="false" Aggregate="Count">
                <ItemStyle Width="50px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Vehicle" DataField="vehicleWithStock" Visible="false" >
                <ItemStyle Width="300px" />
            </telerik:GridBoundColumn>
                                                     
            <telerik:GridTemplateColumn HeaderText="Post ID" SortExpression="PostLogID">
                <ItemTemplate>
                    <asp:Label ID="lblPostLogID" runat="server" Text=""></asp:Label>
                </ItemTemplate>
                <ItemStyle Width="50px" />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Log Date" SortExpression="LogCreateDT">
                <ItemTemplate>
                    <asp:Label ID="lblLogDate" runat="server" Text=""></asp:Label>
                </ItemTemplate>
                <ItemStyle Width="100px" />
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn HeaderText="Profile" DataField="ProfileName" >
                <ItemStyle Width="80px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="Posted From" DataField="ClientIP"  >
                <ItemStyle Width="70px" />
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn HeaderText="Post Location">
                <ItemTemplate>
                    <div style="padding:0px">
                        <asp:HyperLink ID="hlPostLocation" runat="server" Target="_blank" ToolTip="Click to View Listing Location." style="font:8pt" Text='<%# Eval("LocationName") %>' ></asp:HyperLink>
                    </div>
                </ItemTemplate>
                <ItemStyle Width="150px" />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Post Date" SortExpression="PostDate" >
                <ItemTemplate>
                    <asp:Label ID="lblPostDate" runat="server" Text=""></asp:Label>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="70px" />
            </telerik:GridTemplateColumn>
                                                         
            <telerik:GridBoundColumn HeaderText="PostLogID" DataField="PostLogID" Visible="false" Aggregate="Max">
            </telerik:GridBoundColumn>
                                                                                                                 
            <telerik:GridTemplateColumn HeaderText="Post Duration" SortExpression="PlannedDurationDays" >
                <ItemTemplate>
                    <asp:DropDownList runat="server" ID="ddlDuration" CssClass="dropdownText"
                        AutoPostBack="true" OnSelectedIndexChanged="ddlDuration_changed" >
                        <asp:ListItem Text="0" Value="0"></asp:ListItem>
                        <asp:ListItem Text="1" Value="1"></asp:ListItem>
                        <asp:ListItem Text="2" Value="2"></asp:ListItem>
                        <asp:ListItem Text="3" Value="3"></asp:ListItem>
                        <asp:ListItem Text="4" Value="4"></asp:ListItem>
                        <asp:ListItem Text="5" Value="5"></asp:ListItem>
                        <asp:ListItem Text="6" Value="6"></asp:ListItem>
                        <asp:ListItem Text="7" Value="7"></asp:ListItem>
                        <asp:ListItem Text="8" Value="8"></asp:ListItem>
                        <asp:ListItem Text="9" Value="9"></asp:ListItem>
                        <asp:ListItem Text="10" Value="10"></asp:ListItem>
                        <asp:ListItem Text="11" Value="11"></asp:ListItem>
                        <asp:ListItem Text="12" Value="12"></asp:ListItem>
                        <asp:ListItem Text="13" Value="13"></asp:ListItem>
                        <asp:ListItem Text="14" Value="14"></asp:ListItem>
                        <asp:ListItem Text="15" Value="15"></asp:ListItem>
                        <asp:ListItem Text="16" Value="16"></asp:ListItem>
                        <asp:ListItem Text="17" Value="17"></asp:ListItem>
                        <asp:ListItem Text="18" Value="18"></asp:ListItem>
                        <asp:ListItem Text="19" Value="19"></asp:ListItem>
                        <asp:ListItem Text="20" Value="20"></asp:ListItem>
                        <asp:ListItem Text="21" Value="21"></asp:ListItem>
                        <asp:ListItem Text="22" Value="22"></asp:ListItem>
                        <asp:ListItem Text="23" Value="23"></asp:ListItem>
                        <asp:ListItem Text="24" Value="24"></asp:ListItem>
                        <asp:ListItem Text="25" Value="25"></asp:ListItem>
                        <asp:ListItem Text="26" Value="26"></asp:ListItem>
                        <asp:ListItem Text="27" Value="27"></asp:ListItem>
                        <asp:ListItem Text="28" Value="28"></asp:ListItem>
                        <asp:ListItem Text="29" Value="29"></asp:ListItem>
                        <asp:ListItem Text="30" Value="30"></asp:ListItem>
                    </asp:DropDownList>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="100px" />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="Scheduled Removal Date" SortExpression="PlannedRemovalDate">
                <ItemTemplate>
                    <asp:Label ID="lblPlannedRemovalDate" runat="server" Text=""></asp:Label>
                </ItemTemplate>
                <ItemStyle Width="100px" />
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn HeaderText="Days On Craigslist" DataField="DaysActive">
                <ItemStyle HorizontalAlign="Center" Width="70px" />
            </telerik:GridBoundColumn>
 
            <telerik:GridTemplateColumn HeaderText="Days Left" SortExpression="DaysLeft">
                <ItemTemplate>
                    <asp:Panel ID="panelDaysLeft" runat="server" width="100%" Height="20px" style="padding-top:0px">
                        <asp:Label ID="lblDaysLeft" runat="server" Text="" ></asp:Label>
                    </asp:Panel>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="70px" />
            </telerik:GridTemplateColumn>
                                                         
            <telerik:GridBoundColumn DataField="ClickThroughs" HeaderText="Total Clicks">
                <ItemStyle HorizontalAlign="Center" Width="80px" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="UniqueClickThroughs" HeaderText="Unique Clicks">
                <ItemStyle HorizontalAlign="Center" Width="80px" />
            </telerik:GridBoundColumn>
            <telerik:GridTemplateColumn HeaderText="View Post<br />From Log">
                <ItemTemplate>
                    <div style="padding:0px">
                        <asp:HyperLink ID="hlViewPostHTML" runat="server" Target="_blank" ToolTip="Click to View the post with HTML from the log." style="font:8pt" >View (Log)</asp:HyperLink>
                    </div>
                </ItemTemplate>
                <ItemStyle Width="120px" />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn HeaderText="View Post<br />in Craigslist">
                <ItemTemplate>
                    <asp:HyperLink ID="hlViewPostInCL" runat="server" Target="_blank" ToolTip="Click to View the actual post in Craigslist." style="font:8pt" >View (in CL)</asp:HyperLink> 
                    <%--<asp:HyperLink ID="hlEditCLPostURL" runat="server" ToolTip="Edit post URL in Craigslist" style="font:8pt" Text="(Edit)" href="#"></asp:HyperLink>--%>
                </ItemTemplate>
                <ItemStyle Width="160px" />
            </telerik:GridTemplateColumn>
 
            <telerik:GridTemplateColumn HeaderText="Post Status">
                <ItemTemplate>
                    <asp:DropDownList ID="ddlPostStatus" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlPostStatus_Changed" CssClass="dropdownText">
                    </asp:DropDownList>
                </ItemTemplate>
                <EditItemTemplate></EditItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="110px" />
            </telerik:GridTemplateColumn>
 
            <telerik:GridBoundColumn DataField="PostRemovedDate" HeaderText="Actual Date Removed" DataFormatString="{0:d}">
                <ItemStyle HorizontalAlign="Center" Width="90px" />
            </telerik:GridBoundColumn>
 
            <telerik:GridTemplateColumn>
                <ItemTemplate>
                    <asp:HyperLink ID="hlEditPostLog" runat="server" style="font:11px Verdana;" ToolTip="Add a new log item for this vehicle to document a Craigslist post.">Add Post Log</asp:HyperLink>  
                    <asp:LinkButton runat="server" ID="lbDeleteLog" Text="Delete" ToolTip="Delete this Log row and all information about the post." style="font:11px Verdana;" OnClick="lbDeleteLog_click"
                            OnClientClick="return confirm('Delete this Post Log? Note: doing so will erase all info saved about the post. This DOES NOT remove the post from Craigslist.');"></asp:LinkButton>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="120px" />
            </telerik:GridTemplateColumn>
        </Columns>
        <GroupByExpressions>
            <telerik:GridGroupByExpression>
                <GroupByFields>
                    <telerik:GridGroupByField FieldName="ItemID" FieldAlias="VehicleID" >
                    </telerik:GridGroupByField>
                </GroupByFields>
                <SelectFields>
                    <telerik:GridGroupByField FieldName="vehicleWithStock" FieldAlias="Vehicle">
                    </telerik:GridGroupByField>
                    <telerik:GridGroupByField FieldName="PostLogID" FieldAlias="LogID" Aggregate="Max">
                    </telerik:GridGroupByField>
                </SelectFields>
            </telerik:GridGroupByExpression>
        </GroupByExpressions>
    </MasterTableView>
    <%--<ExportSettings ExportOnlyData="false" IgnorePaging="true">
        <Excel Format="Biff"></Excel>
    </ExportSettings>--%>
 
    <ClientSettings AllowDragToGroup="true">
    </ClientSettings>
    <GroupingSettings ShowUnGroupButton="true"></GroupingSettings>
</telerik:RadGrid>
 
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    <Windows>
        <telerik:RadWindow ID="UserListDialog" runat="server" Title="Editing record" Height="300px"
            Width="300px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false"
            Modal="true">
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>
Marin
Telerik team
 answered on 26 Mar 2013
3 answers
277 views
Hi, 

I have following problem... In my RadGrid I have AllowMultiRowSelection="True" and 

<ClientSettings>
	<Selecting AllowRowSelect="true"  />
</ClientSettings>

I need that multirow selection for some operations provided for user ... But I also need that user could be able to select some value from displayed cell e.g. he wants to select certain product number and copy it to clipboard... When I set AllowMultiRowSelection="False" it works, that user on selected row can double click the product number and it is selected and he can copy it to clipboard... But when that attribute is set to true it doesn't work that way... 

Do you have any idea, how it can be done ?

Thanks,

Peter
Peter
Top achievements
Rank 1
 answered on 26 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?