Telerik Forums
UI for ASP.NET AJAX Forum
15 answers
449 views
I have a grid that is set up for paging with only 5 records displayed per page. When an item is queried in Firefox it takes no time at all to pull up however when a query is done in IE, it takes forever. I've tried it in both IE7 and IE8 with the same results in both. Because it's doing this on my machine and the rest of the users...I can only assume it's a conflict with the control and the browser.

Any help would be greatly appreciated!
Konstantin Dikov
Telerik team
 answered on 24 Nov 2015
1 answer
270 views
Hi,
I updated the latest version of Telerik ASP NET AJAX (Q3 2015.3.1111.40) but now I have problems because it does not recognize "jquery", the browser shows me "Uncaught ReferenceError: $ is not defined". Every time there is a new version of Telerik always update my application references. Until version "Q3 2015.3.930.40" I have not had this kind of problem but now with the latest version of Telerik have this big problem.

I appreciate a prompt response.

Thank you
Ianko
Telerik team
 answered on 24 Nov 2015
1 answer
114 views

Hi Telerik Team,

We are using RadDialogOpener to open DocumentManager and ImageManager. In the *manager popup window,when you select a file, there have "css class" property on the right side. We can add css class if we use editor to open these two managers. Can we add css classes if we use RadDialogOpener control to open? You can see the attachment for detailed information.

 Thanks,

Lan

 
Ianko
Telerik team
 answered on 24 Nov 2015
1 answer
82 views
I am using the edmx way of entity frame work and I have a issue I want to be able to display the name of a related table instead of its value in the main column below is how I am declaring my grid and I do have a froreign key assocation as setup on db end
    <asp:ScriptManager ID="sptgrdSoccerPlayers" runat="server"></asp:ScriptManager>
     
    <telerik:RadGrid ID="grdSystemEmails" RenderMode="Auto" runat="server" AutoGenerateColumns="False"    GroupPanelPosition="Top" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" OnItemCommand="RadGrid1_ItemCommand" CellSpacing="-1" GridLines="Both" AllowAutomaticDeletes="True" DataSourceID="entyEmails">
        
        <MasterTableView  DataKeyNames="id" DataSourceID="entyEmails"  EditMode ="PopUp" >    
                <Columns>
                <telerik:GridBoundColumn DataField="id" DataType="System.Guid" FilterControlAltText="Filter id column" HeaderText="id" ReadOnly="True" SortExpression="id" UniqueName="id">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="name" FilterControlAltText="Filter name column" HeaderText="name" SortExpression="name" UniqueName="name">
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn DataField="subject" FilterControlAltText="Filter subject column" HeaderText="Subject" SortExpression="subject" UniqueName="subject">
                </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="authCreatedDate" DataType="System.DateTime" FilterControlAltText="Filter authCreatedDate column" HeaderText="authCreatedDate" SortExpression="authCreatedDate" UniqueName="authCreatedDate">
                </telerik:GridBoundColumn>
                     <telerik:GridCheckBoxColumn DataField="isActive" DataType="System.Boolean" FilterControlAltText="Filter isActive column" HeaderText="isActive" SortExpression="isActive" UniqueName="isActive">
                </telerik:GridCheckBoxColumn >
                     
                     
            </Columns>
        </MasterTableView>
 
<FilterMenu RenderMode="Auto"></FilterMenu>
 
<HeaderContextMenu RenderMode="Auto"></HeaderContextMenu>
    </telerik:RadGrid>
    <asp:EntityDataSource ID="entyEmails" runat="server" ConnectionString="name=soccerEntities" DefaultContainerName="soccerEntities" EnableFlattening="False" EntitySetName="systemEmails" ></asp:EntityDataSource>

 

 

This is the screen shot of the  edmx file showing the assocation So what I want to show is the value in the  email type description value in my grid instead of its guid.

 

 

Konstantin Dikov
Telerik team
 answered on 24 Nov 2015
0 answers
102 views

Radcombobox does not load data custom use control. Every time user control loads the rad combo box does not loads the data. Is it possible to load the rad combobox used on custom user control ?

 

CreatefolderUC.ascx.cs

 

public partial class CreateFolderUC : System.Web.UI.UserControl
{
    protected void RadComboBox1_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)
    {
        GetGroupList();
    }

}

 

 

 CreatefolderUC.ascx

            <telerik:RadComboBox ID="RadComboBox1" Runat="server" Width="200px" CheckBoxes="True" 
                OnItemsRequested="RadComboBox1_ItemsRequested" EnableCheckAllItemsCheckBox="True"  Localization-CheckAllString="All" 
                EmptyMessage="--Select--" CheckedItemsTexts="DisplayAllInInput">
            </telerik:RadComboBox>

pavan
Top achievements
Rank 1
 asked on 24 Nov 2015
2 answers
199 views
Hi,

My other grids are working fine - but this one doesn't display any skin whatsoever, even if I change the skin.  Please see attached images illustrating the problem.

Code is below;  please help.

<telerik:RadGrid ID="grdEmail" runat="server" AllowFilteringByColumn="True" EnableAjaxSkinRendering="true" AllowPaging="True" Width="900px" AllowSorting="True" AutoGenerateColumns="False" GridLines="None" onitemcommand="grdEmail_ItemCommand" onneeddatasource="grdEmail_NeedDataSource">
  <MasterTableView>
    <RowIndicatorColumn>
      <HeaderStyle Width="20px"></HeaderStyle>
  </RowIndicatorColumn>
  <ExpandCollapseColumn>
    <HeaderStyle Width="20px"></HeaderStyle>
  </ExpandCollapseColumn>
  <Columns>
    <telerik:GridBoundColumn HeaderText="Service No." UniqueName="serviceNumber" DataField="serviceNumber">
   </telerik:GridBoundColumn>
 etc...
  </Columns>
</MasterTableView>
</telerik:RadGrid>


Kind regards,
James
Hugo
Top achievements
Rank 1
 answered on 24 Nov 2015
2 answers
56 views

I want to edit the value of field coming from ObjectDataSource. 
My sample code of aspx page:

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="SrchOrder"
    TypeName="ClsOrder">
    <SelectParameters>
        <asp:ControlParameter ControlID="Order Number" Name="order_id" PropertyName="Text" Type="String" />
        <asp:ControlParameter ControlID="Seller" Name="seller_name" PropertyName="Text" Type="String" />                           
    </SelectParameters>
</asp:ObjectDataSource>
 
<telerik:RadGrid ID="radGrid_srch_order"
    runat="server"
    PageSize="100"
    AllowSorting="false"
    AllowPaging="false"
    ShowFooter="false"
    ShowGroupPanel="false"
    HeaderStyle-HorizontalAlign="Center"
    HeaderStyle-Font-Bold="true"
    AutoGenerateColumns="false"                           
    DataSourceID="ObjectDataSource1">
    <MasterTableView AllowFilteringByColumn="False" AutoGenerateColumns="false" TableLayout="Auto">
       <Columns>
            <telerik:GridBoundColumn DataField="order_dt" AutoPostBackOnFilter="false" ItemStyle-HorizontalAlign="Center" HeaderText="Order Date" SortExpression="order_dt" AllowFiltering="false" UniqueName="order_dt" />   
            <telerik:GridBoundColumn DataField="seller_first_name" ItemStyle-HorizontalAlign="Center" HeaderText="seller First Name" SortExpression="seller_first_name" AllowFiltering="false" UniqueName="seller_first_name"  />     
            <telerik:GridBoundColumn DataField="seller_last_name" ItemStyle-HorizontalAlign="Center" HeaderText="seller Last Name" SortExpression="seller_last_name" AllowFiltering="false" UniqueName="seller_last_name" />
            <telerik:GridBoundColumn DataField="status" ItemStyle-HorizontalAlign="Center" HeaderText="Status" SortExpression="status" AllowFiltering="false" UniqueName="status" />
       </Columns>
    </MasterTableView>
</telerik:RadGrid>
 My code behind: 

protected void btnSearch_Click(object sender, EventArgs e)
    {       
         radGrid_srch_order.DataBind();
    }

The value of the field "status" that comes from database are {1, 2, 3, 4} where
1 desc undelivered
2 desc delivered
3 desc paid
4 desc unpaid
How can I show the desc of the status code in GridBoundColumn. I know it can be done from sql query but how can I do it using telerik?

Hadoop
Top achievements
Rank 1
 answered on 23 Nov 2015
23 answers
1.2K+ views
Hi,

I have a grid which has a mixture of fixed header widths and others as follows:

            <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False" OnItemDataBound="RadGrid1_ItemDataBound" 
                GridLines="None" OnNeedDataSource="RadGrid1_NeedDataSource" AllowSorting="True" 
                ShowGroupPanel="True" Height="100%" Width="100%" AccessKey="G" AllowPaging="True" 
                PageSize="5" ShowStatusBar="True" EnableLinqExpressions="False" OnPreRender="RadGrid1_PreRender">  
                <ExportSettings IgnorePaging="true" OpenInNewWindow="true">  
                    <Pdf AllowAdd="false" AllowCopy="true" AllowModify="true" AllowPrinting="true" Author="Anonymous" 
                        Keywords="None" PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in" 
                        PageTopMargin="1in" PageTitle="RadGrid export document" Subject="RadGrid Export" 
                        Title="RadGrid export" /> 
                </ExportSettings> 
                <ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True" 
                    EnableRowHoverStyle="True" AllowGroupExpandCollapse="False">  
                    <Selecting AllowRowSelect="True" EnableDragToSelectRows="False" /> 
                    <ClientEvents OnRowContextMenu="RadGrid1_OnRowContextMenuHandler" OnRowDblClick="RadGrid1_OnRowDblClickHandler" 
                        OnGridCreated="RadGrid1_OnGridCreated" /> 
                    <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
                    <Resizing AllowColumnResize="True" /> 
                </ClientSettings> 
                <HeaderContextMenu EnableTheming="True">  
                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                </HeaderContextMenu> 
                <GroupPanel ID="GroupPanel" Style="width: 100%;">  
                </GroupPanel> 
                <PagerStyle AlwaysVisible="True" Mode="NextPrevAndNumeric" /> 
                <MasterTableView ClientDataKeyNames="ID,IsLocked,IsLockedByMe,CurrentWorkflowActivityName,CurrentWorkFlowActivityTypeID,IsReferenced" 
                    DataKeyNames="ID,IsLocked,LockedById,UserAction,UserActionDescription,UserActionType,IsActionedByMe,IsReadByMe,InForce,ActionedByMeOn,ExpiryDate,InRedraft,ActionByDate,ActualExpiryDate,StateTypeID,ApprovalComment,ApproveByDate,Status,Approved,ReviewByDate,ReviewComment,Reviewed,IsOrphaned" 
                    RetrieveAllDataFields="False" Width="100%" GridLines="None">  
                    <Columns> 
                        <telerik:GridButtonColumn ButtonType="ImageButton" Resizable="False" ShowSortIcon="False" 
                            UniqueName="Icon">  
                            <HeaderStyle Width="18px" /> 
                            <ItemStyle Wrap="False" /> 
                        </telerik:GridButtonColumn> 
                        <telerik:GridBoundColumn DataField="Name" HeaderText="Subject" DataFormatString="<nobr>{0}</nobr>" 
                            UniqueName="Name">  
                            <HeaderStyle Width="190px" /> 
                            <ItemStyle Wrap="False" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="DocRef" HeaderText="Reference" DataFormatString="<nobr>{0}</nobr>" 
                            UniqueName="DocRef">  
                            <HeaderStyle Width="170px" /> 
                            <ItemStyle Wrap="False" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="Version" HeaderText="Version" DataFormatString="<nobr>{0}</nobr>" 
                            UniqueName="Version">  
                            <HeaderStyle Width="45px" /> 
                            <ItemStyle Wrap="False" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="EditorName" HeaderText="Editor" DataFormatString="<nobr>{0}</nobr>" 
                            UniqueName="Editor">  
                            <ItemStyle Wrap="False" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="Owner" HeaderText="Owner" DataFormatString="<nobr>{0}</nobr>" 
                            UniqueName="Owner">  
                            <ItemStyle Wrap="False" /> 
                            <HeaderStyle Width="160px" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="Status" HeaderText="State" DataFormatString="<nobr>{0}</nobr>" 
                            UniqueName="Status">  
                            <ItemStyle Wrap="False" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="InForce" HeaderText="Published" DataFormatString="<nobr>{0:d}</nobr>" 
                            UniqueName="InForce" Visible="false">  
                            <ItemStyle Wrap="False" /> 
                            <HeaderStyle Width="100px" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="ExpiryDate" HeaderText="Expiry" DataFormatString="<nobr>{0:d}</nobr>" 
                            UniqueName="Expiry" Visible="false">  
                            <HeaderStyle Width="100px" /> 
                            <ItemStyle Wrap="False" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="UserActionDescription" HeaderText="Action" DataFormatString="<nobr>{0}</nobr>" 
                            UniqueName="Action">  
                            <ItemStyle Wrap="False" /> 
                        </telerik:GridBoundColumn> 
                        <telerik:GridBoundColumn DataField="Rank" HeaderText="Rank" UniqueName="Rank" Visible="False">  
                            <HeaderStyle Width="20px" /> 
                            <ItemStyle Wrap="False" /> 
                        </telerik:GridBoundColumn> 
                    </Columns> 
                    <SortExpressions> 
                        <telerik:GridSortExpression FieldName="Name" SortOrder="Ascending" /> 
                    </SortExpressions> 
                </MasterTableView> 
                <FilterMenu EnableTheming="True">  
                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                </FilterMenu> 
            </telerik:RadGrid> 

Now when the grid is populated with data that means that a row is wider than the container a horizontal scroll bar is added. When the scroll bar is scrolled over to the right to see the rest of the row, the column headers do not scroll with the data.
jjroman
Top achievements
Rank 2
 answered on 23 Nov 2015
0 answers
143 views

Hi , I have a requirement to load a radgrid on Tooltip. According to i found that Documentation RadTooltip does not have onDemand property. But i found that there is a server side propery called "show". Will that help in Loading my radgrid only when i click on RadTooltip. I want to bind my radgrid only on LinkButton click.

 

   <telerik:RadToolTip ID="RadToolTipFactory" runat="server" TargetControlID="lbRecentFactory"
        RelativeTo="Element" Position="BottomLeft" RenderInPageRoot="true" EnableShadow="true"  
        ManualClose="true" ShowEvent="OnClick" AutoCloseDelay="20000">

      <telerik:RadAjaxPanel ID="RadAjaxPanel_grdFactoryTooltip" runat="server" Height="100%"
                        Width="100%" LoadingPanelID="RadAjaxLoadingPanel1">

   <telerik:RadGrid ID="grdFactoryTooltip" runat="server" OnItemCommand="grdFactoryTooltip_ItemCommand"
                            AllowPaging="true" OnNeedDataSource="grdFactoryTooltip_NeedDataSource" PageSize="15" 

 

 <Columns>

 ..........

 ...................... </Columns>

 <telerik:Radgrid>

<telerik:RadAjaxPanel>

</telerik:RadTooltip>

 

 

  <asp:LinkButton ID="lbRecentFactory" runat="server" Text="Rec" Font-Underline="false"
                              OnClick="lbRecentFactory_Click"           OnClientClick="ShowToolTipRecentCases();" ForeColor="White"></asp:LinkButton>

 

InCodebheind:

 

  protected void bRecentFactory_Click(object sender, EventArgs e)

{

RadToolTipFactory.Controls.Add(RadAjaxPanel_grdFactoryTooltip);//I am adding RadAjaxpanel to Tooltip target controls here

 RadToolTipFactory.show();

}

ITs not working...Or Do i have only option to use TooltipManager which is not working in my case. Please help me.

Ajay
Top achievements
Rank 1
 asked on 23 Nov 2015
5 answers
372 views

Good day,

I was trying to use the FilterType="HeaderContext"

It works fine but whenever I have a GridDateTimeColumn I get an error just before the check list items requested event fires.

 

Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request

My column is like this:

 

<telerik:GridDateTimeColumn DataField="FechaSolicitud"
                                                    DataFormatString="{0:yyyy-MM-dd hh:mm:ss tt}"
                                                    DataType="System.DateTime"
                                                    EditDataFormatString="{0:yyyy-MM-dd}"
                                                    FilterControlAltText="Filter FechaSolicitud column"
                                                    HeaderStyle-Width="200px"
                                                    HeaderText="Fecha de solicitud"
                                                    SortExpression="FechaSolicitud"
                                                    ReadOnly="true"
                                                    UniqueName="FechaSolicitud">
                            <HeaderStyle Width="200px"/>
                        </telerik:GridDateTimeColumn>

If I comment out that column, everything works fine, but I need that column, I think I can change all the columns to a bound column and use an edit item template to get what I need, but there are lots of columns and grids in different pages where I would like to use this kind of filters, is it possible to make it work without having to change a lot in each grid??

 

thanks

Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request
Pavlina
Telerik team
 answered on 23 Nov 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?