Gaurav Sawhney
Top achievements
Rank 1
Gaurav Sawhney
asked on 05 Jul 2009, 10:22 PM
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
8 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 06 Jul 2009, 05:48 AM
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:
-Shinu.
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.
0
Ivan Aquino
Top achievements
Rank 1
answered on 30 Oct 2009, 02:58 PM
I tried that code but unfortunately it does not solve the issue. Please, Does anybody know how to do it?
Thanks a lot
Thanks a lot
0
mohsin
Top achievements
Rank 1
answered on 11 Nov 2009, 05:43 PM
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
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
0
mohsin
Top achievements
Rank 1
answered on 14 Nov 2009, 06:29 PM
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
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
0
Accepted
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.
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.
0
mohsin
Top achievements
Rank 1
answered on 17 Nov 2009, 01:45 PM
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
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
0
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.
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.
0
mohsin
Top achievements
Rank 1
answered on 20 Nov 2009, 12:55 PM
Excellent Veselin Vasilev , this is what i wanted.
So RadTree inside RadCombo inside RadGrid FormTemplate is working.
Thanks
--Mohsin
So RadTree inside RadCombo inside RadGrid FormTemplate is working.
Thanks
--Mohsin