Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
70 views
Hi!

I have a grid with hierarchy. The code you can see below:
                        <telerik:RadGrid ID="GridLocalidade" Width="100%" Skin="Telerik" 
                            runat="server" AllowPaging="false" AllowSorting="true" 
                            GridLines="None" AutoGenerateColumns="false" 
                            OnNeedDataSource="GridLocalidade_NeedDataSource" 
                            OnDetailTableDataBind="GridLocalidade_DetailTableDataBind"
                            <MasterTableView GridLines="None" DataKeyNames="IdTipoProcesso" Name="TableViewProcessos"
                                 
                                <DetailTables> 
                                    <telerik:GridTableView GridLines="None" Width="100%" CommandItemDisplay="None" 
                                        DataKeyNames="IdTipoProcesso" Name="TableViewProcLocalidades"
                                        <ParentTableRelation> 
                                            <telerik:GridRelationFields DetailKeyField="IdTipoProcesso" MasterKeyField="IdTipoProcesso" /> 
                                        </ParentTableRelation>     
                                        <Columns> 
                                            <telerik:GridBoundColumn UniqueName="IdTipoProcesso" HeaderText="IdProcesso" DataField="IdTipoProcesso" Visible="false" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"></telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn UniqueName="IdCidade" HeaderText="IdLocalidade" DataField="Localidade.IdCidade" Visible="false" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"></telerik:GridBoundColumn> 
                                            <telerik:GridBoundColumn UniqueName="NomeCidade" HeaderText="Localidade" DataField="Localidade.NomeCidade" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"></telerik:GridBoundColumn> 
                                            <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" DataType="System.Boolean" DataField="ControlaGente" HeaderStyle-Width="130px"
                                                <HeaderTemplate> 
                                                   <asp:CheckBox id="chkHeaderGente" OnCheckedChanged="ChkSelectedLocGente" AutoPostBack="True" runat="server"></asp:CheckBox> Controlar Gente 
                                                </HeaderTemplate> 
                                                <ItemTemplate> 
                                                    <asp:CheckBox id="chkGente" runat="server" Checked='<%# (DataBinder.Eval(Container.DataItem, "ControlaGente")) %>'></asp:CheckBox> 
                                                </ItemTemplate> 
                                            </telerik:GridTemplateColumn> 
                                            <telerik:GridTemplateColumn UniqueName="CheckBoxTemplateColumn" DataType="System.Boolean" DataField="ControlaRisco" HeaderStyle-Width="130px"
                                                <HeaderTemplate> 
                                                   <asp:CheckBox id="chkHeaderRisco" OnCheckedChanged="ChkSelectedLocRisco" AutoPostBack="True" runat="server"></asp:CheckBox> Planilha Risco 
                                                </HeaderTemplate> 
                                                <ItemTemplate> 
                                                    <asp:CheckBox id="chkRisco" runat="server" Checked='<%# (DataBinder.Eval(Container.DataItem, "ControlaRisco")) %>'></asp:CheckBox> 
                                                </ItemTemplate> 
                                            </telerik:GridTemplateColumn> 
                                        </Columns> 
                                    </telerik:GridTableView> 
                                </DetailTables> 
                                 
                                <Columns> 
                                    <telerik:GridBoundColumn UniqueName="Descricao" HeaderText="Tipos Processo" DataField="Descricao" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left"></telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn UniqueName="Sigla" HeaderText="Sigla" DataField="Sigla" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="150px"></telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn UniqueName="ProcessoCategoria.Descricao" HeaderText="Categoria Processo" DataField="ProcessoCategoria.Descricao" ItemStyle-HorizontalAlign="Left" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="150px"></telerik:GridBoundColumn> 
                                </Columns> 
                            </MasterTableView> 
                             
                        </telerik:RadGrid> 

In a GridTableView, I have 2 columns as checkbox. If I expand the items, select some checkboxes and after it, I collapse the items, I loose the selection on checkboxes when I decide expand them again, it's due to I always catch the information of items in a database when the user expand them.

Is there a possibility to maintain the selection of user for this scenario?
Carlos Eduardo Nogueira
Top achievements
Rank 1
 answered on 21 Sep 2009
1 answer
143 views
Hi,

I am using radwindowmanager on my webapplication with masterpages. When I navigate to another page, the radwindow disappears.
Is there a way to hold the radwindow (except for the preserveclientstate option, because the window is then reloaded)?

Thanks in advance,
Martin
Fiko
Telerik team
 answered on 21 Sep 2009
1 answer
129 views
Hi,

I want show Docno filed to delete confirm text

  <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmDialogType="RadWindow" ConfirmText="Are you sure delete this Document?"
            Text="Delete" UniqueName="column">


How can i pass DocNo filed in confirm text. I have use BIND and Eval method. but compiler doesnt allow me to do that

lakmal




Shinu
Top achievements
Rank 2
 answered on 21 Sep 2009
1 answer
139 views
Hi there,

im trying to get the drag and drop functionality to work. im using the code on the demos but im getting the foolowing error:

'Telerik.Web.UI.GridDragDropEventArgs' does not contain a definition for 'DropPosition

Now im aware i probably have an old version of telerik controls in fact version 2008.1.619.35. BUT! the control does let me drag and drop and elements like e.DestDataItem.ItemIndex do exist.

So it must be possible in my version. How is it done?
Pavlina
Telerik team
 answered on 21 Sep 2009
1 answer
600 views
Hi,

I'm trying to change the background of Menu Item through CSS. I'm referring the below link:
http://www.telerik.com/help/aspnet-ajax/menu_appearancecssclassofitems.html.

Below is my code
<head runat="server"
    <title>Untitled Page</title> 
    <style>     
    .MainMenu 
    { 
      color: white !important; 
      background-color: #A8C2B9 !important; 
    } 
    .MainMenu:hover 
    { 
      color: white !important; 
      background-color: #00563D !important; 
    } 
    .SubMenu 
    { 
      color: white !important; 
      background-color: #A8C2B9 !important; 
    } 
    .SubMenu:hover 
    { 
      background: none; 
      color: white !important; 
      background-color: #00563D !important; 
    } 
    .Expanded 
    { 
      color: white !important; 
      background-color: #00563D !important; 
    } 
    .Focused 
    { 
       
      color: white !important; 
      background-color: #00563D !important; 
    } 
    div.RadMenu .rmFocused 
    { 
        background: none; 
    } 
     
   </style> 
 
     
 
</head> 
<body> 
    <form id="form1" runat="server"
        <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
        <div> 
            <telerik:RadMenu ID="RadMenu1" runat="server" CssClass="MainMenu" Skin="Default" > 
                <Items> 
                    <telerik:RadMenuItem runat="server" Text="Root Item 1" ExpandedCssClass="Expanded" 
                        CssClass="MainMenu"
                        <Items> 
                            <telerik:RadMenuItem runat="server" Text="property" CssClass="SubMenu" FocusedCssClass="Focused"
                            </telerik:RadMenuItem> 
                            <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 2" CssClass="SubMenu" 
                                FocusedCssClass="Focused"
                            </telerik:RadMenuItem> 
                            <telerik:RadMenuItem runat="server" Text="Child RadMenuItem 3" CssClass="SubMenu" 
                                FocusedCssClass="Focused"
                            </telerik:RadMenuItem> 
                        </Items> 
                    </telerik:RadMenuItem> 
                    <telerik:RadMenuItem runat="server" Text="Root Item 2" ExpandedCssClass="Expanded" 
                        CssClass="MainMenu"
                        <Items> 
                            <telerik:RadMenuItem runat="server" Text="This is another very long item." CssClass="SubMenu" 
                                FocusedCssClass="Focused"
                            </telerik:RadMenuItem> 
                        </Items> 
                    </telerik:RadMenuItem> 
                </Items> 
            </telerik:RadMenu> 

The default hover image background is appearing from the Skin image rather than css colors. I here by request you to kindly look into this and do the needful ASAP. Kindly let me know if you require any other details.

Thanks,

Sri Hari Acha


Shinu
Top achievements
Rank 2
 answered on 21 Sep 2009
4 answers
117 views
i have values e.g. <some text> which i want to display in radgrid cell, i don't know why text started with < end ended with > does not appear in cell?
Milosz
Top achievements
Rank 1
 answered on 21 Sep 2009
2 answers
75 views

Posted 9 hours ago (permalink)

i have this on the front-end
<telerik:RadGrid AutoGenerateColumns="true" ID="RadGrid1" Visible="false" MasterTableView-EnableNoRecordsTemplate="true" 
                            Width="100%" AllowFilteringByColumn="True" AllowSorting="True" OnSortCommand="RadGrid1_SortCommand" 
                            PageSize="15" ShowStatusBar="true" AllowPaging="True" OnPageIndexChanged="RadGrid1_PageIndexChanged"   
                            runat="server" GridLines="None" OnExcelMLExportStylesCreated="RadGrid1_ExcelMLExportStylesCreated" 
                            OnExcelMLExportRowCreated="RadGrid1_ExcelMLExportRowCreated">  
                        <PagerStyle Mode="NextPrevAndNumeric" />  
                        <MasterTableView Summary="testing" ></MasterTableView>  
                    </telerik:RadGrid> 
and on the back-end i have
Protected Sub RadGrid1_NeedDataSource(ByVal source As ObjectByVal e As GridNeedDataSourceEventArgs) Handles RadGrid1.NeedDataSource  
        Select Case tmp_comp_report_ID  
            Case 19  
                GetSectionReport(19, CInt(Request.QueryString.Item("reportid")), CInt(ddl_Stores.SelectedValue.ToString), ddl_Departments.SelectedItem.Text.ToString, 0, "")  
            Case 24  
                GetSectionReport(24, CInt(Request.QueryString.Item("reportid")), CInt(ddl_Stores.SelectedValue.ToString), ddl_Departments.SelectedItem.Text.ToString, 1, "")  
        End Select 
    End Sub 
 
    Protected Sub RadGrid1_PageIndexChanged(ByVal source As ObjectByVal e As Telerik.Web.UI.GridPageChangedEventArgs) Handles RadGrid1.PageIndexChanged  
        Select Case tmp_comp_report_ID  
            Case 19  
                GetSectionReport(19, CInt(Request.QueryString.Item("reportid")), CInt(ddl_Stores.SelectedValue.ToString), ddl_Departments.SelectedItem.Text.ToString, 0, "")  
            Case 24  
                GetSectionReport(24, CInt(Request.QueryString.Item("reportid")), CInt(ddl_Stores.SelectedValue.ToString), ddl_Departments.SelectedItem.Text.ToString, 1, "")  
        End Select 
    End Sub 
 
    Protected Sub RadGrid1_SortCommand(ByVal source As ObjectByVal e As Telerik.Web.UI.GridSortCommandEventArgs) Handles RadGrid1.SortCommand  
        Select Case tmp_comp_report_ID  
            Case 19  
                GetSectionReport(19, CInt(Request.QueryString.Item("reportid")), CInt(ddl_Stores.SelectedValue.ToString), ddl_Departments.SelectedItem.Text.ToString, 0, "")  
            Case 24  
                GetSectionReport(24, CInt(Request.QueryString.Item("reportid")), CInt(ddl_Stores.SelectedValue.ToString), ddl_Departments.SelectedItem.Text.ToString, 1, "")  
        End Select 
    End Sub 
 
    Protected Sub RadGrid1_ColumnCreated(ByVal sender As ObjectByVal e As Telerik.Web.UI.GridColumnCreatedEventArgs) Handles RadGrid1.ColumnCreated  
        e.Column.HeaderText = Replace(e.Column.HeaderText.ToString, "_"" ")  
        e.Column.AutoPostBackOnFilter = True 
    End Sub 
everything works fine except for paging and sorting. when i click on paging it has javascript error saying object required and sorting also has that. Can you help me please. thank you very much for your time.
appdev
Top achievements
Rank 1
 answered on 21 Sep 2009
1 answer
56 views
Hi,

How can i do number validation inside grid editform textbox?

lakmal
Princy
Top achievements
Rank 2
 answered on 21 Sep 2009
1 answer
85 views
Hi,

I am using the default skin in a grid. The image-buttons in this skin are all in black/white. Is it possible to get them in color without using another skin?

Usually when I disable a button I change the image to black/white but all buttons are already black/white and I cant see if a button is disabled or not...
Shinu
Top achievements
Rank 2
 answered on 21 Sep 2009
2 answers
91 views
Hi,

I have 2 instances of RAD Menu on a page: one main navigation horizontal line and one submenu on left hand side of a page (vertical). Both are fed from the same SiteMapProvider. Is it possible to set the .rmFocused style for 1st level item from the submenu clicked item?

Regards,
Marc
Fit2Page
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 21 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?