Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
160 views

Hello,

I am new at Telerik RadGrid in Ajax/ASP .NET.

I am trying to allow the user of my application to be able to re order the columns of my RadGrid. I found on your website that :

GridDragDropColumn  has to be inserted in the Columns collection of a GridTableView, But as my RadGrid columns are autogenerated, I have no <Column> tag in the description of my RadGrid. So I am trying to understand where should the GridDragDropColumn  tag be inserted to allow Columns drag and drop (and re-ordering).
I tried to insert it in the <Columns> description of my MasterTableView (see the code below) but when running it, I cannot drag any of my columns ?

Another point is that I want that my columns can also be sorted by one click on the header of the column. Is that compatible with the GridDragDropColumn  option ?

Thank your for your help.

Here is the code of my grid in my ASPX file :

<telerik:RadGrid ID="GridView1" runat="server"
        ActiveItemStyle-BorderStyle="Solid" AllowSorting="True"
        AllowMultiRowSelection="True" AllowFilteringByColumn="True"  
        TableLayout="Fixed" ValidationSettings-EnableValidation="False"
        ScrollHeight="200px"  Height="700px"  Width = "98%" table-layout="auto">
    <MasterTableView  TableLayout="auto">
   <Columns>
    <telerik:GridDragDropColumn HeaderStyle-Width="18px" />
                        
      </Columns>
 
       <NestedViewTemplate>
           <asp:Panel runat="server" ID="configControlContainer" CssClass="viewWrap" Visible="true" BackColor="PaleGoldenrod">
            <table>
           <tr>
           <td><telerik:RadTextBox ID="RadTextbox1" runat="server">
           </telerik:RadTextBox>
            </td>
             </tr>
             <tr>
           <td><telerik:RadButton ID="RadButton1" Text="Confirm" runat="server"
                                                      OnClick="btn_Click">
            </telerik:RadButton>
 
            
             </td>
              </tr>
              </table>
            </asp:Panel>
            </NestedViewTemplate>
 
              <DetailTables>
                        
             </DetailTables>
          </MasterTableView>
           <ClientSettings  AllowRowsDragDrop="true">
              <Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
              <Scrolling AllowScroll="True" ScrollHeight="475px" UseStaticHeaders="true" FrozenColumnsCount="1" SaveScrollPosition="True" />
            </ClientSettings>
              
          </telerik:RadGrid>

Eyup
Telerik team
 answered on 25 Dec 2012
2 answers
293 views
am using telerik tab strip control in page2.aspx...am calling this page frompage1.aspx.... from there itself i want to mention the tab which i want to see first.in page1.aspx i have equal no of menu for each tab. for ex, if i click on 3rd menu then it shd redirect to page2.aspx and it shd focus on 3rd tab....



Kalina
Telerik team
 answered on 25 Dec 2012
2 answers
72 views

Hi,

How can I change the background image of RibbonBar?

Thanks in advance

Ivan Zhekov
Telerik team
 answered on 25 Dec 2012
1 answer
168 views
Hello,

I'm encountering an exception using RadGrid's NestedViewTemplate feature.
If I set HierarchyDefaultExpanded="true" RadGrid, NestedViewTemplate is rendering correctly but all rows are expanded which is not very interesting. So i leave HierarchyDefaultExpanded to false so rows are initially collapsed when i expand a row following exception is raised

[System.InvalidOperationException: Collection was modified; enumeration operation may not execute.]
System.Web.UI.ControlCollectionEnumerator.MoveNext() +8672514
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +639
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.FindAndDecorateControls(Control parent) +630
   Telerik.Web.UI.RadFormDecorator.DecorateAspNetControls() +68
   Telerik.Web.UI.RadFormDecorator.ControlPreRender() +834
   Telerik.Web.UI.RadWebControl.OnPreRender(EventArgs e) +47
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
 
I have tested a lot of scenarios with no success. RadGrids are both initialized programmatically (ItemCommand, ItemCreated, PreRender, NeedDataSource for NHibernate list).

After testing, exception raise when system tries to render manual columns (GridDateTimeColumn, GridBoundColumn) as  AutoGenerateColumns="False". If i remove manual columns, expand/collapse is working.
Eyup
Telerik team
 answered on 25 Dec 2012
1 answer
663 views
Hi, we're using the FormDecorator and I notice on the front end the dropdownlist renders as a div with spans instead of a traditional html select list.

When I try to use jquery to set the selected value after the control renders it doesn't change. I'm guessing because this is technically not a select list anymore.

Is there any work around to this?
Marin Bratanov
Telerik team
 answered on 25 Dec 2012
8 answers
568 views
I was wondering how to go about hiding several column's in a child of a Hierarchical RadGrid if there is no data found for those columns. It would be quite nice to be able to do the same on the parent as well.

I've had a good search on the forums but can't find a good example to follow..

can anyone suggest a way to do this..

many thanks
Eyup
Telerik team
 answered on 25 Dec 2012
1 answer
70 views
Hi Telerik Team,

I created a RadEditor ( radEditor ) in my webpage. I set :

radEditor.TableLayoutCssFile = myCustimizedTableCssFile;
radEditor.CssFiles.Add ( myCustimizedCssFile );

In the editor iframe, it will automatic load myCustimizedTableCssFile first then load myCustimizedCssFile. Is there have way to switch them?

Thanks,
 
Rumen
Telerik team
 answered on 25 Dec 2012
3 answers
182 views
Deat Telerik-Team

I would be nice to have a property to show or hide the content and title icon.

Regards,
Christian
Marin Bratanov
Telerik team
 answered on 25 Dec 2012
1 answer
123 views
Hey Friends,

   I'm using RadAjaxManager in my asp.net form but not working. Problem is that i have 3 dropdown in my page at page load only want to
enable true first dropdown and rest of dropdown want to enable false and when i select first dropdown the second one want to enable true
and first one enable false and when i select value from the second dropdown third want to enable true and reset of the dropdown enable false. i write code for it also put the ids of dropdown RadAjaxManager and Update Panel but not worked...........any idea about it....


Eyup
Telerik team
 answered on 25 Dec 2012
1 answer
180 views
Hi i  have a raddrig and it has 3 collumns
1.Descr
2.CategoryId (List id,Descr)
3.ModelId. (List id ,Descr)
I want to add a new row but when i select CategoryId from the select list i want to update the modelid,descr on the second
so as to bring the modelids for this category.Is this possible
I have teleriks  ver 2010. secons quorter
Thanks a lot.
Eyup
Telerik team
 answered on 25 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?