Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 views
We have a RadGrid with some custom sorting, master/detail rows and GroupByExpressions. The problem occurs when a groups toggle button is clicked, calling "._toggleGroupsExpand/Collapse", then clicking on a parent grid's sortable column.  

I saw the older threads regarding this error that talked about firewalls interfering with the x-microsoft header and that doesn't seem to be the case here. the headers are staying intact and there's no firewall applicable, this is running on localhost.
Maria Ilieva
Telerik team
 answered on 14 Mar 2011
2 answers
132 views
Hi,

I have radcombobox into radgrid. i am using sqldatasource for bind radcombobox using radgrid datakey names. but it is not bind.

Here my code,

    <telerik:RadGrid ID="rgAddPlans" runat="server" AutoGenerateColumns="False" DataSourceID="sdsDispayPlans" DataKeyNames="sp_pln_id"
                            Width="740px" GridLines="Both">
                            <MasterTableView HierarchyDefaultExpanded="true" AutoGenerateColumns="false" CommandItemDisplay="Top"
                                DataKeyNames="sp_pln_id">                              
                           
                                <Columns>                    
                                  
                                     <telerik:GridTemplateColumn HeaderText="Existing Coverage" HeaderStyle-Font-Bold="true">
                                        <ItemTemplate>
                                            <asp:Label ID="lblExistCvg" runat="server" SkinID="NoBold" Text='<%# Bind("cvg_typ_code") %>'></asp:Label>
                                              <asp:HiddenField ID="hfWaiveStatus" runat="server" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" Wrap="false" />
                                        <HeaderStyle Width="120px" HorizontalAlign="Center" Wrap="true" />
                                    </telerik:GridTemplateColumn>
                                    <telerik:GridTemplateColumn HeaderText="Coverage" HeaderStyle-Font-Bold="true">
                                        <ItemTemplate>
                                            <telerik:RadComboBox ID="ddlCoverage" AutoPostBack="false" Width="110px" DataSourceID="sdsddlCoverage"
                                                runat="server" OnSelectedIndexChanged="ddlCoverage_IndexChanged"  DataTextField="cvg_typ_code"
                                                DataValueField="pln_cvg_id">                                               
                                            </telerik:RadComboBox>

                                            
                                            <asp:Label ID="lblCoverage" runat="server" SkinID="NoBold" Style="padding-left: 50px;
                                                text-align: center" Visible="false"></asp:Label>
                                        </ItemTemplate>
                                        <HeaderStyle Width="110px" HorizontalAlign="Center" />
                                        <ItemStyle HorizontalAlign="Center" />
                                    </telerik:GridTemplateColumn>                              
                                </Columns>                           
                            </MasterTableView>                       
                        </telerik:RadGrid>
                           <asp:SqlDataSource ID="sdsddlCoverage" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnStr %>"
        ProviderName="<%$ ConnectionStrings:MyConnStr.ProviderName %>" SelectCommand="SELECT  
                                               ct.description
                                             , ct.cvg_typ_code
                                             , pct.pln_cvg_id  
                             FROM  
                                               plan_coverage_types pct  
                                               JOIN coverage_types ct ON ( pct.cvg_typ_id = ct.cvg_typ_id )   
                             WHERE  
                                               pct.pln_id = :sp_pln_id   order by ct.cvg_typ_id ">
        <SelectParameters>
            <asp:Parameter Name="sp_pln_id" />          
        </SelectParameters>
    </asp:SqlDataSource>

Her is my code. i want radcombobox bind depends sp_pln_id. but it is not binding.

Please give me tips for this one.


Thanks,
Dhamu.
Maria Ilieva
Telerik team
 answered on 14 Mar 2011
1 answer
80 views
Hello All,

I am using Radgrid with AllowFilteringByColumn="True", and onclicking on Filter button, the filter criteria is openning at top of the page with blank background.

Please have a look on attached screenshot, and suggest me some solution.


Thanks
Mukesh
Pavlina
Telerik team
 answered on 14 Mar 2011
1 answer
59 views
Hi,

I currently use the latest Version 2010.3.1317.40 of the RadGrid. Is there a change in the behavior, RadGrid handles data when grouping is enabled? The former versions displayed the data as delivered. Now the data will be automatically sorted. But I don't want this. I don't have changed anything in my code. Is it a bug or have I set some property now?

Thanks.
Tsvetina
Telerik team
 answered on 14 Mar 2011
3 answers
536 views

Having a bit of trouble just finding a control in this.
I have cleared out most code for an easier read and left the main tags in place.
Need to find the SqlDataSource and I have tried everything with no luck....

 

 

    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="odsFill" GridLines="None"
    AllowPaging="True" Width="950px" DataKeyNames="xxx">
    <MasterTableView DataSourceID="odsFill" AutoGenerateColumns="False" DataKeyNames="xxx"
        AllowPaging="true">
        <RowIndicatorColumn HeaderStyle-Width="20px" />
        <ExpandCollapseColumn HeaderStyle-Width="20px" />
        <Columns>
              
        </Columns>
        <DetailTables>
            <telerik:GridTableView runat="server" >
                <ParentTableRelation>
                    <telerik:GridRelationFields DetailKeyField="xxx" MasterKeyField="xxx" />
                </ParentTableRelation>
                <NoRecordsTemplate>
                    There are no records.</NoRecordsTemplate>
                <Columns>                            
                    <telerik:GridTemplateColumn DataField="TYPE" UniqueName="xxx" HeaderText="C">
                        <ItemTemplate>
                            <asp:HyperLink ID="create3Clink" runat="server" Text="Create 3C" 
                                NavigateUrl='default.aspx' />                                    
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                </Columns>
                <NestedViewSettings>
                    <ParentTableRelation>
                        <telerik:GridRelationFields DetailKeyField="COMP_ID" MasterKeyField="COMP_ID" />
                    </ParentTableRelation>
                </NestedViewSettings>
                <NestedViewTemplate>
                    <asp:Label ID="lblID" Text='test' runat="server" />
                    <telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1" SelectedIndex="0">
                        <Tabs>
                            <telerik:RadTab runat="server" Text="Verification" PageViewID="PageView3" />                                    
                        </Tabs>
                    </telerik:RadTabStrip>
                    <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false">
                        <telerik:RadPageView runat="server" ID="PageView3" BorderStyle="Solid">
                            <h4>
                                Verification</h4>
                                  
                                  
                            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ToolBox %>"
                                SelectCommand="SELECT * From MyTable">                                        
                            </asp:SqlDataSource>
                              
                             
                        </telerik:RadPageView>
                      
                    </telerik:RadMultiPage>
                </NestedViewTemplate>
            </telerik:GridTableView>
        </DetailTables>
    </MasterTableView>
</telerik:RadGrid>

Vasil
Telerik team
 answered on 14 Mar 2011
1 answer
93 views

Hello,
I am trying to save the dynamically  created raddoc in to mssql. GetRegisteredDocksState() does not recognize the newly created raddoc.

Public Sub SaveState()
        Dim dockState As String
        Dim serializer As New Script.Serialization.JavaScriptSerializer()
        Dim stateList As List(Of DockState) = RadDockLayout1.GetRegisteredDocksState()
        Dim serializedList As New StringBuilder()
        Dim i As Integer = 0
        While i < stateList.Count
            serializedList.Append(serializer.Serialize(stateList(i)))
            serializedList.Append("|")
            i += 1
        End While
        dockState = serializedList.ToString()
....
....


 Do you have any KB article on the same ?

Pero
Telerik team
 answered on 14 Mar 2011
1 answer
183 views

I have a column in my rad grid that displays image when LastUserActivity < MostResentUpdate. I want that column to be sorted by default. What should i give in the sort expression in the fieldname..

<SortExpressions>
     <telerik:GridSortExpression FieldName="??????"/>
</SortExpressions>



Thanks,

 

Pavlina
Telerik team
 answered on 14 Mar 2011
1 answer
386 views
I have a hierarchial radgrid up and running, image is attached.  Everything works great - thank you.  I now have a requirement to display another line (row) of information for each data item that I am binding to.

I know this can be done by eliminating the columns collection and using an item template instead, but ideally I would like to leave what is already working well working and just find a way to insert two rows per data item.  Is this possible?  I know this cannot be done, but conceptually what I really want to do is put a <br> in the columns collection and layout the next row of bound data!

Any thoughts/suggestions are appreciated.

Here is the current code layout for the table:
<telerik:RadGrid runat="server" ID="grdKCGs" AllowPaging="False" Width="600px" AllowMultiRowSelection="false" Visible="false" Skin="Default">
    <MasterTableView DataKeyNames="KCGID" Width="600px" TableLayout="Fixed" AutoGenerateColumns="false" EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="true"
        <NoRecordsTemplate><div class="cssNoData">No items to display.</div></NoRecordsTemplate
        <NestedViewTemplate>
            <asp:Panel runat="server" ID="InnerContainer" Visible="true">
                <telerik:RadTabStrip runat="server" ID="TabStip1" MultiPageID="Multipage1"
                    SelectedIndex="0">
                    <Tabs>
                        <telerik:RadTab runat="server" Text="Government Standards" PageViewID="PageView1">
                        </telerik:RadTab>
                        <telerik:RadTab runat="server" Text="Local Standards" PageViewID="PageView2">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" RenderSelectedPageOnly="false">
                    <telerik:RadPageView runat="server" ID="PageView1">
                        <table width="570px" cellpadding=3 cellspacing=0 border=0 style="border: 4px outset Silver;">
                            <tr>
                                <td>
                                    <asp:Label ID="lblSwitches1" CssClass="cssContent" runat="server"></asp:Label>                                
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblExtDesc1" CssClass="cssContent" runat="server"></asp:Label>                                
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblAssessment1" CssClass="cssContent" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <telerik:RadGrid runat="server" ID="grdGStds" AllowPaging="False" Width="100%" Height="250px" ClientSettings-Scrolling-AllowScroll="true" AllowMultiRowSelection="false" Visible="false" Skin="Default" >
                                        <MasterTableView DataKeyNames="GovtBodyStdKey" Width="100%" TableLayout="Fixed" AutoGenerateColumns="false" EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="true"
                                            <NoRecordsTemplate><div class="cssNoData">No items to display.</div></NoRecordsTemplate
                                            <Columns>
                                                <telerik:GridBoundColumn  HeaderStyle-Width="100px" UniqueName="GovtBodyStdKey" HeaderText="Standard"  Visible="True" DataField="GovtBodyStdKey" ReadOnly="true"></telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn UniqueName="GovtBodyStdDescription" HeaderText="Description"  Visible="True" DataField="GovtBodyStdDescription" ReadOnly="true"></telerik:GridBoundColumn>                                                         
                                            </Columns>
                                        </MasterTableView>
                                        <ClientSettings AllowRowsDragDrop="false" >
                                            <Selecting AllowRowSelect="false" EnableDragToSelectrows="false" />
                                        </ClientSettings
                                    </telerik:RadGrid>     
                                </td>
                            </tr>
                        </table>
                    </telerik:RadPageView>
                    <telerik:RadPageView runat="server" ID="PageView2">
                        <table width="570px" cellpadding=3 cellspacing=0 border=0 style="border: 4px outset Silver;">
                            <tr>
                                <td>
                                    <asp:Label ID="lblSwitches2" CssClass="cssContent" runat="server"></asp:Label>                                
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblExtDesc2" CssClass="cssContent" runat="server"></asp:Label>                                
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:Label ID="lblAssessment2" CssClass="cssContent" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                     <telerik:RadGrid runat="server" ID="grdLStds" AllowPaging="False" Width="100%" Height="250px" ClientSettings-Scrolling-AllowScroll="true" AllowMultiRowSelection="false" Visible="false" Skin="Default" >
                                        <MasterTableView DataKeyNames="STANDARDNUMBER" Width="100%" TableLayout="Fixed" AutoGenerateColumns="false" EnableNoRecordsTemplate="true" ShowHeadersWhenNoRecords="true"
                                            <NoRecordsTemplate><div class="cssNoData">No items to display.</div></NoRecordsTemplate
                                            <Columns>
                                                <telerik:GridBoundColumn HeaderStyle-Width="100px" UniqueName="STANDARDNUMBER" HeaderText="Standard"  Visible="True" DataField="STANDARDNUMBER" ReadOnly="true"></telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn UniqueName="LocalStandardDescription" HeaderText="Description"  Visible="True" DataField="LocalStandardDescription" ReadOnly="true"></telerik:GridBoundColumn>                                                         
                                            </Columns>
                                        </MasterTableView>
                                        <ClientSettings AllowRowsDragDrop="false" >
                                            <Selecting AllowRowSelect="false" EnableDragToSelectrows="false" />
                                        </ClientSettings
                                    </telerik:RadGrid>
                                </td>
                            </tr>
                        </table>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
            </asp:Panel>
        </NestedViewTemplate>
        <Columns>
            <telerik:GridBoundColumn UniqueName="TopicKCGID"  Visible="False" DataField="TopicKCGID" ReadOnly="true"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn UniqueName="KCGID" Visible="False" DataField="KCGID"></telerik:GridBoundColumn>
            <telerik:GridImageColumn ImageAlign="Middle" ImageUrl="../images/notshared.gif" AlternateText="This item is used once in the course(Not Shared)." UniqueName="imgShared" HeaderStyle-Width="25px"></telerik:GridImageColumn>
            <telerik:GridTemplateColumn UniqueName="Concept" HeaderStyle-Font-Bold="true" HeaderStyle-Width="490px">
                <ItemStyle VerticalAlign="Top"></ItemStyle>
                <ItemTemplate>
                        <asp:LinkButton id="LinkButton1" Runat="server" CommandName="e">
                            <telerik:RadCodeBlock ID="cb1" runat="server">
                                <%# Container.DataItem("KCGDescription")%>
                            </telerik:RadCodeBlock>
                        </asp:LinkButton>
                </ItemTemplate>
            </telerik:GridTemplateColumn>
            <telerik:GridButtonColumn ShowInEditForm="false"  HeaderText="Delete" ConfirmText="Are you sure you want to delete this item?" ConfirmDialogType="Classic" ConfirmTitle="Confirm Delete" HeaderStyle-width="60px" HeaderStyle-Font-Bold="true" CommandName="d" FooterText="" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ButtonType="ImageButton" ImageUrl="../Images/delete.gif">  
            </telerik:GridButtonColumn>  
        </Columns>
    </MasterTableView>
    <ClientSettings AllowRowsDragDrop="true" >
        <Selecting AllowRowSelect="true" EnableDragToSelectrows="false" />
    </ClientSettings
</telerik:RadGrid>
Maria Ilieva
Telerik team
 answered on 14 Mar 2011
4 answers
106 views

Hello,

With a RADGRID built in code behind, I use the ExportToExcel() and ExportToCSV().

It works very well and It's very convenient.

I would like to:
Remove column from my export (e.g. a GridClientSelectColumn which is not relevant)
Modify the data of few columns in my export (e.g. images of a GridImageColumn which must be replace by text)
Add column to my export to put in data whitch are not in the RadGRID

Thanks for your help...

Regards

Bernard
Top achievements
Rank 1
 answered on 14 Mar 2011
1 answer
66 views
Hi,
I am using following code to diplay barcode in radgrid control.

 

<telerik:GridTemplateColumn HeaderText="Card Number">

 

 

    <HeaderStyle CssClass="HeaderBodyGray" Wrap="true" Width="80px" HorizontalAlign="Center" ForeColor="White"/>

     

<ItemStyle CssClass="ItemBody" Width="80px" HorizontalAlign="Center" VerticalAlign="Middle"

/>
 
<ItemTemplate>

 

 <table cellpadding="0" cellspacing="0" border="0">

 

 

<tr>
         
<td align="center">
<font face="C39 High 36pt LJ4" style="font-size: 50px;line-height:40px;">*<%#Eval("CardID").ToString.ToUpper%>*</font
                    </td>
</tr>
             
<tr>
<td align="center">
<span style="font-size: 7px;">
<%#FromatSKU(Eval("CardID"))%></span
                </td
            
</tr>

 

 

 </table> </ItemTemplate>

 

</telerik:GridTemplateColumn>

and using font face to display barcode.
It was working fine with asp datagrid but when i replace datagrid with telerik radgrid, it is not working.

Is there anymore way to display barcode in telerik Radgrid control?

Thanks,
Alex

 

 

 

 

 

Iana Tsolova
Telerik team
 answered on 14 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?