Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
119 views
I am using a radgrid control where i have paging and autogenerate columns set to true. When i select a page on the radgrid it shows a panel id on the top and if i select again it works fine. It means it shows the panel id on every alternative select of a page in the grid. Can you help me to reslove it please?
Iana Tsolova
Telerik team
 answered on 19 Aug 2011
3 answers
382 views
Team,

In one of our application we are binding the dynamically generated datatable (With all Field datatypes are String) to a Radgrid.
Problem is when we apply sorting on those string fields it wont sort numerically, instead of that sorting occurs on string.

My question is without change the datatypes in datatable is it possible to change the columns of Radgrid to numeric before apply sorting..

Pls. help me on this. Client wants it immediately.


Thanks,
Tsvetina
Telerik team
 answered on 19 Aug 2011
17 answers
1.6K+ views
I'm using the RadTreeView control.

How to Change the Expand and Collapse Icons to be e.g. arrows instead of + and - icons?

Currently the plus and minus icons are embedded in the Telerik assembly judgying by the background-image value:

url("WebResource.axd?d=VgJdxXzsswqOdCD5rvTw9qbASzacFrx1ogUDI2C8a8ec2xoyM_TB0dE7ON7_Qufmatd1FUHdwBxJuyWB5iw6-kRks3J05ogSsFdHXjCEjQfuCDzPhAViqekZ41WXyBJy0y5vpj0JBT8YkXRnUrmL8-ofV0U1&t=634342277869187417")

are there any other images embedded e.g. arrows that I can use?

Thanks,
Kate
Telerik team
 answered on 19 Aug 2011
2 answers
56 views
In this thread a user claimed...

"We found elsewhere on this site that Telerik has dropped support for IE7, so the problem we are having doesn't come as a surprise."

Is this true?

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 19 Aug 2011
3 answers
124 views

I am using jQuery for setting controls.

 

 

var

 

 

status = $telerik.findComboBox("<%= rcbStatus.ClientID %>");

 

status.set_value(2);

status.set_text(

 

"On Order");

My understanding of jQuery (which is limited) is that I should be able to chain commands like this:

 $telerik.findComboBox("<%= rcbStatus.ClientID %>").set_value(2).set_text("On Order");

But the chanined command doesn't work.

 

Am I missing something? Thanks for any help

 

 

 

 

Ivan Zhekov
Telerik team
 answered on 19 Aug 2011
3 answers
118 views
I have radgrid on my webpage and i have set automatic insert ,update and delete to TRUE. But When I try to update or insert , it puts empty strings into database instead of values in textboxes.Here is my code:-
<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/ITIMaster.Master" CodeBehind="AlertTypeAdmin.aspx.vb" Inherits="EmailAlertsMonitor.AlertTypeAdmin" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadGrid ID="gvAlertTypes" runat="server" AutoGenerateColumns="False" 
        Skin="Outlook" CellSpacing="0" DataSourceID="SqlDataSource1" 
        GridLines="None" EnableViewState="False">
  
<MasterTableView AllowAutomaticDeletes="True" AllowAutomaticInserts="True" 
            AllowAutomaticUpdates="True" DataKeyNames="Alert_Type_ID" 
            DataSourceID="SqlDataSource1" CommandItemDisplay ="TopAndBottom" 
            EnableViewState="False" >
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
  
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
  
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
  
    <Columns>
         <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn">
                        <ItemStyle CssClass="MyImageButton" />
                    </telerik:GridEditCommandColumn>
         <telerik:GridButtonColumn ConfirmText="Are you sure you want to delete this Alert Type?" ConfirmDialogType="RadWindow"
                        ConfirmTitle="Delete" ButtonType="ImageButton" CommandName="Delete" Text="Delete"
                        UniqueName="DeleteColumn">
                        <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                    </telerik:GridButtonColumn>
  
        <telerik:GridTemplateColumn DataField="Alert_Subject" HeaderText ="Alert Subject" 
            FilterControlAltText="Filter column column" UniqueName="column">
                         <ItemTemplate >
                            <asp:Label ID="lblAlertSubject" runat ="server" Text ='<%#EVAL("Alert_Subject") %>'></asp:Label>
                         </ItemTemplate>
                         <EditItemTemplate >
                            <asp:TextBox ID="txtAlertSubject" runat ="server" Text ='<%#EVAL("Alert_Subject") %>' MaxLength ="250" Width ="400px" TextMode="MultiLine"  ></asp:TextBox>
                         </EditItemTemplate>
        </telerik:GridTemplateColumn>
         <telerik:GridTemplateColumn DataField="Alert_Sender" HeaderText ="Alert Sender" 
            FilterControlAltText="Filter column column" UniqueName="column1">
                           <ItemTemplate >
                            <asp:Label ID="lblAlertSender" runat ="server" Text ='<%#EVAL("Alert_Sender") %>'></asp:Label>
                         </ItemTemplate>
                         <EditItemTemplate >
                            <asp:TextBox ID="txtAlertSender" runat ="server" Text ='<%#EVAL("Alert_Sender") %>' MaxLength ="30" ></asp:TextBox>
                         </EditItemTemplate>
        </telerik:GridTemplateColumn>
         <telerik:GridTemplateColumn DataField="Alert_Level" HeaderText ="Alert Level" 
            FilterControlAltText="Filter column column" UniqueName="column2">
                          <ItemTemplate >
                            <asp:Label ID="lblAlertLevel" runat ="server" Text ='<%#EVAL("Alert_Level") %>'></asp:Label>
                         </ItemTemplate>
                         <EditItemTemplate >
                            <asp:HiddenField ID="hdAlertLevel" runat ="server" Value ='<%#EVAL("Alert_Level_ID") %>' />
                            <asp:DropDownList ID="ddlAlertLevels" runat ="server" DataSourceID ="SqlDataSource2" DataValueField ="Alert_Level_ID" DataTextField ="Alert_Level"  >
                            </asp:DropDownList>
                         </EditItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridTemplateColumn DataField="Alert_State" HeaderText ="Alert State" 
            FilterControlAltText="Filter column column" UniqueName="column3">
                         <ItemTemplate >
                            <asp:Label ID="lblAlertState" runat ="server" Text ='<%#EVAL("Proj_State") %>'></asp:Label>
                         </ItemTemplate>
                         <EditItemTemplate >
                            <asp:HiddenField ID="hdAlertState" runat ="server" Value ='<%#EVAL("Alert_State") %>' />
                            <asp:DropDownList ID="ddlAlertStates" runat ="server" DataSourceID ="SqlDataSource3" DataValueField ="Proj_State_Code" DataTextField ="Proj_State"  >
                            </asp:DropDownList>
                         </EditItemTemplate>
        </telerik:GridTemplateColumn>
         <telerik:GridTemplateColumn DataField="Alert_Server" HeaderText ="Alert Server" 
            FilterControlAltText="Filter column column" UniqueName="column4">
                        <ItemTemplate >
                            <asp:Label ID="lblAlertServer" runat ="server" Text ='<%#EVAL("Alert_Server") %>'></asp:Label>
                         </ItemTemplate>
                         <EditItemTemplate >
                            <asp:TextBox ID="txtAlertServer" runat ="server" Text ='<%#EVAL("Alert_Server") %>' MaxLength ="20" ></asp:TextBox>
                         </EditItemTemplate>
        </telerik:GridTemplateColumn>
         <telerik:GridTemplateColumn DataField="Alert_Source" HeaderText ="Alert Source" 
            FilterControlAltText="Filter column column" UniqueName="column5">
                       <ItemTemplate >
                            <asp:Label ID="lblAlertSource" runat ="server" Text ='<%#EVAL("Alert_Source") %>'></asp:Label>
                         </ItemTemplate>
                         <EditItemTemplate >
                            <asp:TextBox ID="txtAlertSource" runat ="server" Text ='<%#EVAL("Alert_Source") %>' MaxLength ="20" ></asp:TextBox>
                         </EditItemTemplate>
        </telerik:GridTemplateColumn>
    </Columns>
  
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>
  
<FilterMenu EnableImageSprites="False"></FilterMenu>
  
<HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Outlook"></HeaderContextMenu>
  
    </telerik:RadGrid>
     <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                   ConnectionString="<%$ ConnectionStrings:DBConnectionString %>" 
                   DeleteCommand="DELETE FROM [Alert_Type] WHERE [Alert_Type_ID] = @Alert_Type_ID" 
                   InsertCommand="INSERT INTO [Alert_Type] ([Alert_Subject], [Alert_Sender], [Alert_Level], [Alert_State], [Alert_Server], [Alert_Source]) VALUES (@Alert_Subject, @Alert_Sender, @Alert_Level, @Alert_State, @Alert_Server, @Alert_Source)" 
                   SelectCommand="SELECT [Alert_Type_ID],[Alert_Subject],[Alert_Sender],at.Alert_Level as Alert_Level_ID  ,al.Alert_Level ,[Alert_State], ast.Proj_State,[Alert_Server],[Alert_Source]  FROM [AlertEmailManagement].[dbo].[Alert_Type] at  left outer join Alert_Level al on at.Alert_Level =al.Alert_Level_ID   left outer join Alert_States ast on at.Alert_State = ast.Proj_State_Code order by alert_state,alert_level_id,alert_source,alert_server "
                   UpdateCommand="UPDATE [Alert_Type] SET [Alert_Subject] = @Alert_Subject, [Alert_Sender] = @Alert_Sender, [Alert_Level] = @Alert_Level, [Alert_State] = @Alert_State, [Alert_Server] = @Alert_Server, [Alert_Source] = @Alert_Source WHERE [Alert_Type_ID] = @Alert_Type_ID">
                   <DeleteParameters>
                       <asp:Parameter Name="Alert_Type_ID" Type="Int64" />
                   </DeleteParameters>
                   <InsertParameters>
                       <asp:Parameter Name="Alert_Subject" Type="String" />
                       <asp:Parameter Name="Alert_Sender" Type="String" />
                       <asp:Parameter Name="Alert_Level" Type="Int16" />
                       <asp:Parameter Name="Alert_State" Type="String" />
                       <asp:Parameter Name="Alert_Server" Type="String" />
                       <asp:Parameter Name="Alert_Source" Type="String" />
                   </InsertParameters>
                   <UpdateParameters>
                       <asp:Parameter Name="Alert_Subject" Type="String" />
                       <asp:Parameter Name="Alert_Sender" Type="String" />
                       <asp:Parameter Name="Alert_Level" Type="Int16" />
                       <asp:Parameter Name="Alert_State" Type="String" />
                       <asp:Parameter Name="Alert_Server" Type="String" />
                       <asp:Parameter Name="Alert_Source" Type="String" />
                       <asp:Parameter Name="Alert_Type_ID" Type="Int64" />
                   </UpdateParameters>
               </asp:SqlDataSource>
               <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                   ConnectionString="<%$ ConnectionStrings:DBConnectionString %>" 
                   SelectCommand="SELECT [Proj_State_Code], [Proj_State] FROM [Alert_States] ORDER BY [Proj_State]">
               </asp:SqlDataSource>
               <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                   ConnectionString="<%$ ConnectionStrings:DBConnectionString %>" 
                   SelectCommand="SELECT [Alert_Level_ID], [Alert_Level] FROM [Alert_Level] ORDER BY [Alert_Level_ID]">
               </asp:SqlDataSource>
</asp:Content>

Radoslav
Telerik team
 answered on 19 Aug 2011
4 answers
535 views
Trying to get some performance out of my pages and I have the RadStylesheetManager on my masterpage.
<telerik:RadStyleSheetManager ID="StyleSheetManager" runat="server" >
    <StyleSheets>
        <telerik:StyleSheetReference Path="~/App_Themes/Default/Slider.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/Menu.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/Grid.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/TabStrip.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/ToolTip.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/Window.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/ComboBox.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/Calendar.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/Button.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/TreeView.Activity.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/Layout.css" />
        <telerik:StyleSheetReference Path="~/App_Themes/Default/Styles.css" />
    </StyleSheets>
</telerik:RadStyleSheetManager>

I do have this key:
add
key="Telerik.Web.UI.StyleSheetFolder" value="~/App_Themes/Default"/>

The last 2 CSS files are being applied as the sites layout is OK, but none of the Telerik controls are srtyled. In the app_Themes/Default folder I have individual folders for the Telerik images.

Does anyone have any ideas?

Andy

PS. Just looked at the http in Fiddler, and the images have the wrong paths  the path (as in the app settings) isn't being applied.
Simon
Telerik team
 answered on 19 Aug 2011
1 answer
73 views
Hi, 

I have created a rad grid for my application. It was working fine with persistence until i added an another column in the grid.
Suppose i have 3 columns , 1,2,3 i added the 4th column in between 2 and 3. When it loads the grid without persisting it loads in the correct format but after it starts persisting it would change the order of columns to 1,2,3,4 but it is supposed to be 1,2,4,3. I couldn't find out why it is working like that.

I used this example for persisting http://www.telerik.com/help/aspnet-ajax/grid-saving-settings-on-per-user-basis.html

Any help is appreciated.

Thanks,
Nimmy.
Veli
Telerik team
 answered on 19 Aug 2011
3 answers
294 views
Hi,
I am trying to use RadGrid with paging, using LINQ for Entities to do paging.  I am using a respository method to do this:

        public IEnumerable<TEntity> GetAllPaged(int page, int pageSize)
        {
            return _objectSet.AsEnumerable().Skip(pageSize).Take(page);
        }

The LINQ part works just fine, but when I do this, the pager on the Grid is no longer available- assuming that all the records are displayed.  Is there anyway to make sure the pager ribbon is still visible, and has the correct number of pages links?  Is there a way to use LINQDataSource (either Microsoft's or Telerik), which makes paging easier and much more efficient?

Thanks,

Steve
Iana Tsolova
Telerik team
 answered on 19 Aug 2011
1 answer
50 views
Hi,

I need to know how to create a FilterTemplate programmatically (c#) in Business layer. In the cloumn filter row I need a textbox to enter the filter expression and a button that allow the user to reset the column filter without clearing the texbox manually. The filter options button should be not available. How to do this?
The grid will be created programmatically because of dynamic using. I have found an example to create an ItemTemplate. But whats the difference to FilterTemplate?

public class MyFilterTemplate : ITemplate....
And then?.....

Best regards,
Ralf

Iana Tsolova
Telerik team
 answered on 19 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?