Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
166 views


Hi,
I  am using mastertabs.aspx containing telerik radtabs  and iframe controls.
if i click certain tab then the corresponding page will be opened in iframe.From that page named as first.aspx  iam opening a rad window1 named as second.aspx  .  from radgrid.from the second.aspx iam opening another radwindow2 named  third.aspx.But this third.aspx page will be displayed backside of the second.aspx.
Please Tell me the Solution for this problem.
Thanks in advance.

Rumen
Telerik team
 answered on 13 Jul 2010
1 answer
111 views

Greetings,

                  I am facing a problem in binding xml string to rad tree view by using loadxml method. Below is the xml string and i want to bind the data. My tree view is have check boxes and the xml string having checked status. Based on the status check boxes in the tree view should be checked.

 

'<Modules><Module Name="User Management" Id="UserManagement" checked="false"><SubModules><SubModule Name="Role Management" Id="RoleManagement" checked="false"><Pages><Page Name="Create Role" Id="CreateRole" checked="false"><Fields /></Page></Pages></SubModule></SubModules></Module><Module Name="Fleet Management" Id="FleetManagement" checked="false"><SubModules><SubModule Name="Fleet Tracking" Id="FleetTracking" checked="false"><Pages><Page Name="Check In Out" Id="CheckInOut" checked="false"><Fields /></Page><Page Name="Search Fleet" Id="SearchFleet" checked="false"><Fields /></Page></Pages></SubModule></SubModules></Module><Module Name="Customer Admini" Id="CustomerAdmini" checked="false"><SubModules><SubModule Name="Create Master" Id="CreateMaster" checked="false"><Pages><Page Name="aspx" Id="aspx" checked="false"><Fields><Field Name="Text" Id="Text" checked="false" /></Fields></Page></Pages></SubModule></SubModules></Module></Modules>'


                  Please reply me asap as i it is critical for me now.

Thanks,
Raj

Nikolay Tsenkov
Telerik team
 answered on 13 Jul 2010
2 answers
133 views

Hi,

I have a grid with a DetailTableView.  I need to allow multiple rows in the DetailTableView to be in edit mode.  Here is my problem...

Step 1.  User clicks 'edit' to put row into edit mode.  User then enters a value in a textbox on the EditItemTemplate.

Step 2.  User now clicks edit on a different row in the DetailTableView.  This row also enters edit mode BUT the value entered in the text box on the other row is blanked out.  In fact, entering edit mode on a row is blanking all the textboxes on the other edit rows.

Hope this makes sense and has a solution.

Kind regards

Nick Raphael
Maria Ilieva
Telerik team
 answered on 13 Jul 2010
1 answer
136 views
I know that the treeview control has a find node by value function, but I only want to look at the parent nodes.  I need to see if the value of the new node exists as a parent of the node so that I don't create a loop.

I am using a treeview to display an emergency contact list hierarchy. "Callers" in the tree root call a list of individuals. Some of those individuals have call lists that they are supposed to call and so on down the hierarchy. The treeview has two types of nodes; groups and individuals.  A person can be assigned to call a group and / or individuals. The problem is that the person calling is generally a member of the group that they are calling.  This creates a loop the callers node expands to display the group, the group expands to display the individuals in the group, the caller is in the group so they expand to show the group again.  
I want to compare the callerid stored with the caller node and compare it to all of its parents to see if it has already appeared in the tree so I can stop the loop.
Nikolay Tsenkov
Telerik team
 answered on 13 Jul 2010
1 answer
109 views
Hi

I am having a strange problem.
I have a grid that exports nicely to pdf , and includes some text and a logo image at the top,
using the CommandItemTemplate.

The output looks fine until I try to add a GroupByExpressions section in the MasterPageView, and then 
in the pdf the logo gets squeezed to about 20% of its proper size.

It is as if the GroupByExpressions code, although invisible, takes up screen area and squeezes the image

Can anyone shed light on this?

Thanks for any help

Clive
Daniel
Telerik team
 answered on 13 Jul 2010
2 answers
155 views
Hi all,

I would like to know whether is possible to disable the page size on a rad grid.
I need paging, but if the client changes the page size destroys the layout.
I haven't found the relative property.

Kind regards,

Dario Zanelli
Dario Zanelli
Top achievements
Rank 1
 answered on 13 Jul 2010
6 answers
224 views
I have a nested grid, something like this.
                <telerik:RadGrid ID="grdItems" runat="server" GridLines="None" Width="100%">  
                    <ExportSettings> 
                        <Pdf PageWidth="8.5in" PageHeight="11in" PageTopMargin="" PageBottomMargin="" PageLeftMargin="" 
                            PageRightMargin="" PageHeaderMargin="" PageFooterMargin=""></Pdf> 
                    </ExportSettings> 
                    <MasterTableView DataMember="Master" AutoGenerateColumns="False" HierarchyDefaultExpanded="true" 
                        ExpandCollapseColumn-CollapseImageUrl="~/images/trans.gif">  
                        <RowIndicatorColumn Visible="False">  
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </RowIndicatorColumn> 
                        <ExpandCollapseColumn Visible="False" Resizable="False">  
                            <HeaderStyle Width="20px"></HeaderStyle> 
                        </ExpandCollapseColumn> 
                        <Columns> 
                            <telerik:GridBoundColumn UniqueName="ID" DataField="ID" Visible="false">  
                            </telerik:GridBoundColumn> 
                            <telerik:GridTemplateColumn HeaderText="Package">  
                                <ItemTemplate> 
                                    <asp:DropDownList ID="ddlPackage" runat="server">  
                                    </asp:DropDownList> 
                                    <asp:Label ID="lblOrderItemId" runat="server" Text='<%# Eval("ID") %>' Visible="false"></asp:Label> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn HeaderText="SKU">  
                                <ItemTemplate> 
                                    <asp:HyperLink ID="hypProductID" runat="Server" Text='<%# Eval("ProductId") %>' 
                                        NavigateUrl='<%# "~/Inventory/Product.aspx?id=" & eval("ProductId") %>'></asp:HyperLink> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn HeaderText="Reference">  
                                <ItemTemplate> 
                                    <asp:HyperLink runat="Server" ID="hypeBayItemID" Target="_blank" Text='<%#Eval("eBayItemID")%>'></asp:HyperLink> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn HeaderText="Original Reference" Visible="false">  
                                <ItemTemplate> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn HeaderText="Item">  
                                <ItemTemplate> 
                                    <%#Eval("DisplayName")%> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn HeaderText="Unit Price" Visible="false">  
                                <ItemTemplate> 
                                    <%#FormatCurrency(Eval("AdjustedSitePrice"), 2)%> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn HeaderText="Qty">  
                                <ItemTemplate> 
                                    <%#Eval("Qty")%> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn HeaderText="Subtotal" Visible="false">  
                                <ItemTemplate> 
                                    <%#FormatCurrency( Eval("Qty") * Eval("AdjustedSitePrice"), 2)%> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn HeaderText="Notes" UniqueName="Notes">  
                                <ItemTemplate> 
                                    <%#Eval("Notes")%> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                            <telerik:GridTemplateColumn HeaderText="" Visible="false">  
                                <ItemTemplate> 
                                    <asp:HyperLink ToolTip="Drop Shipped" ID="hypDroppedShipped" ImageUrl="~/images/dropShipped.jpg" 
                                        runat="server" NavigateUrl='<%# "Orders_DropShip.aspx?id=" & Eval("OrderID") %>'></asp:HyperLink> 
                                </ItemTemplate> 
                            </telerik:GridTemplateColumn> 
                        </Columns> 
                        <DetailTables> 
                            <telerik:GridTableView runat="server" DataMember="ChildProducts" AutoGenerateColumns="False" 
                                HierarchyDefaultExpanded="true" ExpandCollapseColumn-CollapseImageUrl="~/images/trans.gif" 
                                Width="100%">  
                                <Columns> 
                                    <telerik:GridBoundColumn UniqueName="OrderItemId" DataField="OrderItemId" Visible="false">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn UniqueName="ID" DataField="ID" Visible="false">  
                                    </telerik:GridBoundColumn> 
                                    <telerik:GridTemplateColumn HeaderText="Package">  
                                        <ItemTemplate> 
                                            <asp:DropDownList ID="ddlPackage" runat="server">  
                                            </asp:DropDownList> 
                                            <asp:Label ID="lblBundleOrderItemId" runat="server" Visible="true"></asp:Label> 
                                            <asp:Label ID="lblProductID" runat="server" Text='<%# Eval("ProductID") %>' Visible="false"></asp:Label> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn HeaderText="SKU">  
                                        <ItemTemplate> 
                                            <asp:HyperLink ID="hypProductID" runat="Server" Text='<%# Eval("ProductId") %>' 
                                                NavigateUrl='<%# "~/Inventory/Product.aspx?id=" & eval("ProductId") %>'></asp:HyperLink> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn HeaderText="Item">  
                                        <ItemTemplate> 
                                            <asp:Label ID="lblPRoductName" runat="Server"></asp:Label> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                    <telerik:GridTemplateColumn HeaderText="Qty">  
                                        <ItemTemplate> 
                                            <%#Eval("Qty")%> 
                                        </ItemTemplate> 
                                    </telerik:GridTemplateColumn> 
                                </Columns> 
                            </telerik:GridTableView> 
                        </DetailTables> 
                    </MasterTableView> 
                </telerik:RadGrid> 

On the click of a button, I wanted to save (by getting drop down list in the parent item and that in the child items of the grid).

Here is the code to get controls from the grid.
    Private Sub btnSave_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles btnSave.Click  
        For Each item As Telerik.Web.UI.GridDataItem In Me.grdItems.Items  
            Dim lblOrderItemId As Label = CType(item.FindControl("lblOrderItemId"), Label)  
            Dim ddlPackage As DropDownList = CType(item.FindControl("ddlPackage"), DropDownList)  
              
 
            If lblOrderItemId IsNot Nothing Then 
                'Its main order item  
 
                Dim oi As Orders.OrderItem = OrderServices.OrderItems.GetByID(CInt(lblOrderItemId.Text))  
                oi.PackageID = ddlPackage.SelectedValue  
                OrderServices.OrderItems.Update(oi)  
                'Parse child items  
                Dim grdTable As GridTableView = CType(CType(item.ChildItem, GridNestedViewItem).Cells(1).Controls(0), GridTableView)  
                For Each childItem As Telerik.Web.UI.GridDataItem In grdTable.Items  
                    Dim lblBundleOrderItemId As Label = CType(childItem.FindControl("lblBundleOrderItemId"), Label)  
                    Dim lblProductID As Label = CType(childItem.FindControl("lblProductID"), Label)  
                    ddlPackage = CType(childItem.FindControl("ddlPackage"), DropDownList)  
 
                    
                    
                    
                Next 
 
                'ElseIf lblBundleOrderItemId IsNot Nothing And lblOrderItemId Is Nothing Then  
                '    'Its bundle item  
 
                  
            End If 
        Next 
 
      
       
 
        Session("PackagesMessage") = "Order Shipping Preferences saved." 
        Response.Redirect(Request.Url.PathAndQuery)  
    End Sub 

The values from the master table gets fine, but when it comes to parse the child table, although it get controls fine (lblProductID and lblBundleOrderItemID), but their text propery are empty for some reason. This is also weird that I can see if there are seven bundle items (nested table rows), some of these rows returns good values, but others return empty rows. which is really weird.

Yes, I confirm that ProductID and BundleOrderItemID have values (other than empty string). Of course they do as they are sort of primary keys.

I also tried this from the main loop (instead of GridTableView), but I got the same situation. I can see values displaying on the grid, but I dont get them when I parse via above code.

Any idea? what I might be doing wrong?

thanks,
Sameers

Mira
Telerik team
 answered on 13 Jul 2010
1 answer
107 views
Hi

I have managed to style the GroupHeaderItem in the grid to my satisfaction, but the client
would ideally like to start a new page for each group.   Can I insert some pdf command just above
each GroupHeaderItem that would accomplish this?

As a compromise I have set the height of the item, and VerticalAlign to bottom to get some separation
but this is not what the client requested.

Is there a way to do this?

Thanks

Clive
Daniel
Telerik team
 answered on 13 Jul 2010
1 answer
51 views
The problem is that RadPane--rpLeft which contain a usercontrol  is all blank when I make a search.The
strange thing is that  I click the RadSplitBar to collapse this pane and then click the RadSplitBar again to expand.
All content in this Pane is there.I don't know what cause this problem. I gusee it maybe the usercontrol in this pane.
Could someone give me some idea? I will appreciate it.

<
telerik:RadSplitter ID="rspSplitter" runat="server" ResizeWithBrowserWindow="true"
            VisibleDuringInit="false" Width="100%" Height="100%">
            <telerik:RadPane ID="rpLeft" runat="server" Width="20%" Scrolling="None" Collapsed="true">
                <uc4:ajaxoperatorleftpart id="AjaxPart1" runat="server" />
                <iframe id="frameMain" src="../../Default.aspx" scrolling="no" frameborder="0" width="100%"
                    height="220"></iframe>
            </telerik:RadPane>
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward"  />
            <telerik:RadPane ID="rpRight" runat="server" Scrolling="None" Width="80%">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td valign="top">
                            <div>
                                <table class="table" border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-top: 2px;
                                    margin-bottom: 2px;">
                                    <tr>
                                        <td>
                                            <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                                <tr>
                                                    <td align="right">
                                                        KeyWords:
                                                    </td>
                                                    <td style="width: 220px;">
                                                        <telerik:RadTextBox ID="rtxtKeyStr" runat="server" EmptyMessage="输入关键字" Width="220px">
                                                        </telerik:RadTextBox>
                                                    </td>
                                                    <td style="width: 110px;" align="right">
                                                        IsDirectSolution:
                                                    </td>
                                                    <td>
                                                        <asp:RadioButtonList ID="rblDirectSolutionSimple" runat="server" CellPadding="0"
                                                            CellSpacing="0" RepeatDirection="Horizontal" RepeatLayout="Table">
                                                            <asp:ListItem Selected="True" Value="">All</asp:ListItem>
                                                            <asp:ListItem Value="1">Y</asp:ListItem>
                                                            <asp:ListItem Value="0">N</asp:ListItem>
                                                        </asp:RadioButtonList>
                                                    </td>
                                                    <td style="width: 80px;">
                                                          
                                                        <asp:ImageButton ID="ibtnSimpleSearch" runat="server" ImageUrl="~/App_Themes/Default/images/search.gif"
                                                            OnClick="ibtnSimpleSearch_Click" Style="height: 22px" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                                <telerik:RadGrid ID="RadGrid1" runat="server">
                                    <MasterTableView Name="requestList" Width="100%">
                                        <Columns>
                                            <telerik:GridTemplateColumn HeaderText="request" UniqueName="column" SortExpression="ID">
                                                <ItemTemplate>
                                                    <a href="javascript:void(null);" onclick="openRequestInfo('<%#Eval("ID") %>')">
                                                        <%#Eval("ID") %></a>
                                                </ItemTemplate>
                                                <HeaderStyle Width="80" />
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridBoundColumn HeaderText="Name" UniqueName="column1" DataField="UserAccount">
                                                <HeaderStyle Width="80px" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn HeaderText="Department" UniqueName="column2" DataField="Department">
                                                <HeaderStyle Width="90px" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn HeaderText="Contract" UniqueName="column3" DataField="Telephone">
                                                <HeaderStyle Width="80px" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridTemplateColumn HeaderText="Content" UniqueName="column4">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblContent" runat="server" Text='<%#Eval("Content") %>' ToolTip='<%#Eval("Content") %>'></asp:Label> 
                                                </ItemTemplate>
                                                <HeaderStyle Wrap="false" />
                                                <ItemStyle Wrap="false" />
                                            </telerik:GridTemplateColumn>
                                        </Columns>
                                        <HeaderStyle Wrap="false" />
                                    </MasterTableView>
                                    <ClientSettings>
                                        <Selecting AllowRowSelect="true" />
                                        <Resizing AllowColumnResize="True" EnableRealTimeResize="true" ClipCellContentOnResize="true" />
                                    </ClientSettings>
                                </telerik:RadGrid>
                            </div>
                        </td>
                    </tr>
                </table>
            </telerik:RadPane>
        </telerik:RadSplitter>
Svetlina Anati
Telerik team
 answered on 13 Jul 2010
3 answers
102 views
I'm looking at using the client side binding feature in rad grid.  I know that it supports JSON, but I was wondering if it supports plain XML binding?  I currently have a bunch of web services (not WCF or ADO.NET Data services) that return either XML nodes, or Datasets as xml.  Is it possible to bind on the client side directly to these data types, or will I have to convert them to JSON in order for the binding to work?
Nikolay Rusev
Telerik team
 answered on 13 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?