RadTree View Inside the Radgrid Template Cplumn

9 posts, 1 answers
  1. Gaurav Sawhney
    Gaurav Sawhney avatar
    1 posts
    Member since:
    Jul 2009

    Posted 05 Jul 2009 Link to this post

    Hi ,

     

    I had a a RadTree View Control inside the GridTemplate Column. I am dynamically adding the Node to the RadTreeView in the ItemDatabound event of the RadGrid. I had three GridBound Column in the Same Grid

    Whenever I expand the TreeView all the other three Bound Column shifts down to the first node of the TreeView. Is there any way to stop the movement of the  BoundColumn whenever I expand the TreeView.

    Thanks

    Gauarv

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 06 Jul 2009 Link to this post

    Hi Gauarv,

    I guess you want the BoundColumn values to be aligned to top even after expanding the tree in template column. Try setting the ItemStyle-VerticalAlign property of GridBoundColumn to "Top" and see whether it helps.

    ASPX:
     
    <telerik:GridBoundColumn DataField="ProductID" HeaderText="ProductID" SortExpression="ProductID" UniqueName="ProductID"
        <ItemStyle VerticalAlign="Top" /> 
    </telerik:GridBoundColumn> 

    -Shinu.
  3. Ivan Aquino
    Ivan Aquino avatar
    6 posts
    Member since:
    Jul 2009

    Posted 30 Oct 2009 Link to this post

    I tried that code but unfortunately it does not solve the issue. Please, Does anybody know how to do it?

    Thanks a lot
  4. mohsin
    mohsin avatar
    26 posts
    Member since:
    Apr 2008

    Posted 11 Nov 2009 Link to this post

    Hi,

    I am using RadTreeView inside radgrid EditItemTemplate so that i can select a node.

    (--------aspx---------
     <EditItemTemplate>
          <telerik:RadTreeView ID="rtvCat_AdvcatName" runat="server" />
    </EditItemTemplate>
    -------------------------)

    I can see that the RadTreeView is populated by the data..I have used the code given below in radGrid ItemDataBound event..

    (------aspx.vb-------------
    Protected Sub rgProductHasIssue_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgProductHasIssue.ItemDataBound
                If e.Item.IsInEditMode And (TypeOf e.Item Is GridEditFormItem) Then
                    Dim rtvCat_AdvcatName As RadTreeView
                    rtvCat_AdvcatName = e.Item.FindControl("rtvCat_AdvcatName")
                    If Not IsNothing(rtvCat_AdvcatName) Then
                        'LoadRootNodes(rtvCat_AdvcatName, TreeNodeExpandMode.ClientSide)
                        rtvCat_AdvcatName.DataFieldID = "AdvCatID"
                        rtvCat_AdvcatName.DataFieldParentID = "ParentId"
                        rtvCat_AdvcatName.DataTextField = "AdvCatName"
                        rtvCat_AdvcatName.DataSource = GetDataTable("SELECT     AdvCatID, AdvCatName, ParentId FROM CAT_AdvCats")
                        rtvCat_AdvcatName.DataBind()
                        rtvCat_AdvcatName.ExpandAllNodes()                        
                   End If
                End If
     End Sub
    -----------------------)


    Now the problem is when i click any node it is not selected. I need to select a node so that i can get the selected value.

    I need it ASAP, i have been trying to solve it long ago, i have seen many threads but have not seen any sample for RadTreeView inside radGrid EditItemTemplate!

    How can i do that?
    can i do that?

    Thanks
    --Mohsin










  5. mohsin
    mohsin avatar
    26 posts
    Member since:
    Apr 2008

    Posted 14 Nov 2009 Link to this post

    Hi,

     I have another relevant query.

     I can show Radtreeview inside Radcombo. I can also show RadCombo inside Radgrid EditItemTemplate.

     But i can not show, Radtreeview inside Radcombo where the Radcombo is inside RadGrid EditItemTemplate.

    Is it possible? if Telerik Control can do that that will be a great help!!
    Can anyone give me the answer from Telerik team ro any one??

    Thanks a lot for your valuable time.

    --Mohsin
  6. Answer
    Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 17 Nov 2009 Link to this post

    Hi mohsin,

    Here is a sample project of tree in combo in grid.

    Kind regards,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. mohsin
    mohsin avatar
    26 posts
    Member since:
    Apr 2008

    Posted 17 Nov 2009 Link to this post

    HI Veselin Vasilev ,

     Thanks for the project. But i could not open the CountriesSQL.mdf, it seems it is not compatible with SQL 2005. Can you please set  compatible with SQL 2005 for the CountriesSQL.mdf?

    Thanks
    --Mohsin
  8. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 20 Nov 2009 Link to this post

    Hello mohsin,

    Find it attached.

    Regards,
    Veselin Vasilev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. mohsin
    mohsin avatar
    26 posts
    Member since:
    Apr 2008

    Posted 20 Nov 2009 Link to this post

    Excellent Veselin Vasilev , this is what i wanted.
    So RadTree inside RadCombo inside RadGrid FormTemplate is working.

    Thanks
    --Mohsin
Back to Top