Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
116 views
RadMenu doesn't response to click to display submenus after using Visual studio 2015. It works fine when we using Visual studio 2012 to debug
Xiaobo
Top achievements
Rank 1
 answered on 19 Jul 2017
1 answer
251 views

Hello Forum, 

I haven't seen this on the forums much so I am guessing this is a rare occurrence. We have a database with over 100,000 records and have the property set to "StartWith". When typing the letter "a" there is a 5-6 second delay before the dropdown appears and is populated. We are setting the datasource with a datatable containing only two fields (Description, ID). Our SectionList property is a datatable that when it's not populated will send a query call to SQL Server obtaining the data and then returning the datatable. The process of returning the datatable is fairly fast but the overall process is rather slow. I was wondering what suggestions you all may have.

Thanks

Here is the control itself

<telerik:RadSearchBox ID="cboSection"

runat="server"
            Width="300"
            Height="400"
            Skin="Bootstrap" 
            DataTextField="Description"
            DataValueField="ID"
            MaxResultCount="10"
            DropDownSettings-Width="400"
            LabelWidth="100%"
            OnClientLoad="cboSection_OnClientLoad"
            OnSearch="cboSection_Search"
            Filter="StartsWith">            >
        </telerik:RadSearchBox>

Server Side:

    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            cboSection.DataSource = Settings.Section.SectionList;
        }
        catch (Exception ex)
        {

        }
    }

Peter Milchev
Telerik team
 answered on 19 Jul 2017
2 answers
311 views

I have the RadSearchBox connected to a datasource through a web service with autocomplete functionality enabled.

After the user selects an item from the Searchbox drop down list, is there a way to have the OnClientSearch event fire only when the user clicks the RadSearchBox search button and not when the user selects an item from the drop down list or Enter is pressed?

Thanks in advance.

Kevin
Top achievements
Rank 1
 answered on 18 Jul 2017
4 answers
221 views

I have a series of ASPX files which are use RadGrid. One of the ASCX's contains this code:

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
             <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Ignore_SearchTerm">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadComboBox_FK_PT_GUID" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadComboBox_FK_PT_GUID">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadComboBox_FK_SOC_GUID" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>

 

I have two web sites running identical code (one test, one production). I part of the "Security advisory" received last month, I downloaded the newer version of the Telerik controls and updated the project, and pushed to Test. No other changes have been made to the code base, just the DLL version for the new controls (2017.6.621.45). Production is still on 2017.1.228.45.

When using this ASPX file with DLL version 2017.2.621.45, I am getting an error "Unknown control type Telerik.Web.UI.RadAjaxManagerProxy" in my try/catch exception block for that page. If I change the project back to 2017.1.228.45 and push to test, it runs fine.

Not sure what has changed to cause this behaviour. Any suggestions on how to work around/correct?

 

 
ToltingColtAcres
Top achievements
Rank 2
Veteran
Iron
 answered on 18 Jul 2017
3 answers
146 views

I have very simple RadGrid that is being loaded from database

 <telerik:RadGrid ID="RadGrid1" runat="server" Skin="MetroTouch"  OnPreRender="RadGrid1_PreRender" OnItemDataBound="RadGrid1_ItemDataBound" ></telerik:RadGrid>

 

This populates my tooltip:

 protected void RadGrid1_PreRender(object sender, EventArgs e)
        {

foreach (GridDataItem dataItem in radgrid2.MasterTableView.Items)
            {
                dataItem["Offset_Rank"].ToolTip = dataItem["OffsetToolTip"].Text;
            }
        }

 

My problem is, once I change my lookup parameters and reload the radGrid my tool tip becomes null,  what am I missing?

 

Any help would be helpful.

Thanks

Marin Bratanov
Telerik team
 answered on 18 Jul 2017
0 answers
75 views

Hello,

I have a RadPanelBar with 4 items in it. They all are expanded at first and user can expand/collapse them at will with click on the title or the arrow. The contents are a bit long so a scrollbar appears on the body when there are items expanded. 

This is my problem, 

When a scrollbar is there, I cannot click and expand or collapse a panel right away. Clicking once is changing the scroll position, and clicking twice does the job. When all panels are collapsed (so there are no scrollbar) I can expand any of them with a single click.

What may be the problem?
Thanks,

Sedat.

Sedat
Top achievements
Rank 1
 asked on 18 Jul 2017
1 answer
135 views

I have a problem when inserting a new record into a TreeList.  I am using advanced OnNeedDataSource binding and manually inserting the record into our DB during the InsertCommand.  After the insert command completes I get the following error:

"Property accessor '[PK and DataKeyName]' on object '[Object]' threw the following exception:'Object does not match target type.'"

I can't find any helpful documentation on this exception, is there any help that you may be able to give on this matter?

Vessy
Telerik team
 answered on 18 Jul 2017
0 answers
126 views

Hello Telerik Community ! 

I'm trying to find a Telerik grid with paging in which I could filter, sort and select all items. 

Is that possible ? 

Thank you for any help. 

 

http://demos.telerik.com/aspnet-ajax/grid/examples/overview/defaultcs.aspx 

With this demo I could not select all items for example. 

Romaric
Top achievements
Rank 1
 asked on 18 Jul 2017
0 answers
90 views

When I use "splitter.ajaxRequest" for a pane, it works in other browsers, but IE always uses its cache rather getting new data. If I clean IE's cache before I trigger the ajax request, then it works for IE. 

As I searched online, there're two ways to fix it, one is to change the request type from GET to POST, the other is to disable cache. Both can be done easily with jQuery, but I wonder whether the "ajaxRequest" function takes arguments such as:

{ type: 'POST' }  or { cache: false } ?

It's also fine if there're other ways to fix this issue. Thank you! 

Pei
Top achievements
Rank 1
 asked on 18 Jul 2017
4 answers
172 views

I've got a Master Grid, with a NestedViewTemplate that has a sub grid in it. I want this sub grid to databind when a row in the Master Grid is expanded. The sub grid's binding method needs the data key from the Master Grid row to bind. I'm having trouble connecting this key to the sub grid, its always 0. I've reviewed the documention for NestedViewTemplates and NestedViewSettings but must still be doing something wrong. The docs for the NestViewTemplates refer to the working demo but it uses a Label to stash the Master Table row key rather than the NestedViewSettings which I'm trying to use. I've have been able to bind the sub grid table using various techniques such as stashing the Master Table row key in the label or using NeedsDataSource. These other methods won't work for me as they want to bind sub grid data for all rows of the master grid when the page is loaded and this is too slow.

 

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
     <telerik:RadScriptManager ID="BudgetAdjustmentScriptManager" runat="server" EnablePartialRendering="true"></telerik:RadScriptManager>

         <telerik:RadGrid ID="BudgetAdjustmentRadGrid" runat="server" Width="100%" AllowPaging="True" AllowSorting="true" AutoGenerateColumns="False" PageSize="20" DataSourceID="BugetAdjustmentRadGrid_ObjectDataSource" 
            AlternatingItemStyle-BackColor="#e6e6e6" ShowFooter="True">
            <MasterTableView CommandItemDisplay="Top" Width="100%" DataKeyNames="budget_adjustment_master_id" ShowGroupFooter="true" Name="Master">
                <Columns>
                    <telerik:GridEditCommandColumn ButtonType="FontIconButton" UniqueName="Edit"></telerik:GridEditCommandColumn>
                    <telerik:GridBoundColumn DataField="name" HeaderText="Name" UniqueName="name" MaxLength="50" ></telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="number" HeaderText="Number" UniqueName="number" readonly="true"></telerik:GridBoundColumn>
                </Columns>
                <NestedViewSettings DataSourceID="BudgetAdjustmentItem_ObjectDataSource">
                      <ParentTableRelation>
                        <telerik:GridRelationFields DetailKeyField="budget_adjustment_master_id" MasterKeyField="budget_adjustment_master_id"  />
                      </ParentTableRelation>
                </NestedViewSettings>
                <NestedViewTemplate>
                    <asp:Panel ID="InnerContainer" runat="server" CssClass="viewWrap" Visible="True">
                        <telerik:RadGrid ID="BudgetAdjustmentItemRadGrid" runat="server" DataSourceID="BudgetAdjustmentDetail_ObjectDataSource" AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" >
                                <MasterTableView DataKeyNames="budget_adjustment_master_id, budget_adjustment_detail_id" HierarchyLoadMode="ServerOnDemand" PageSize="10" CommandItemDisplay="Top">
                                <Columns>
                                    <telerik:GridEditCommandColumn ButtonType="FontIconButton" UniqueName="Edit"></telerik:GridEditCommandColumn>
                                    <telerik:GridBoundColumn DataField="budget_adjustment_detail_id" HeaderText="ID" SortExpression="budget_adjustment_detail_id" UniqueName="budget_adjustment_detail_id" ReadOnly="true"></telerik:GridBoundColumn> 
                                    <telerik:GridBoundColumn DataField="budget_adjustment_operation" HeaderText="Operation" SortExpression="budget_adjustment_operation" UniqueName="budget_adjustment_operation" ReadOnly="true"></telerik:GridBoundColumn> 
                                    </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>

                    </asp:Panel>
                </NestedViewTemplate>
            </MasterTableView>
        </telerik:RadGrid>
                        <asp:ObjectDataSource ID="BudgetAdjustmentDetail_ObjectDataSource" runat="server" TypeName="BudgetAdjustmentDetailDAL" SelectMethod="Get" SortParameterName="sort_expression" >
                            <SelectParameters>
                                <asp:Parameter Name="budget_adjustment_master_id" Type="Int32" />
                                <asp:Parameter Name="project_node_master_id" DefaultValue="25" Type="Int32" />
                            </SelectParameters>
                        </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="BudgetAdjustmentItem_ObjectDataSource" runat="server" TypeName="BudgetAdjustmentMasterDAL" SelectMethod="Get">
        <SelectParameters>
            <asp:Parameter Name="budget_adjustment_master_id" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="BugetAdjustmentRadGrid_ObjectDataSource" runat="server" TypeName="BudgetAdjustmentMasterDAL" SelectMethod="Get" SortParameterName="sort_expression">
        <SelectParameters>
            <asp:Parameter Name="project_node_master_id" DefaultValue="33" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>

Konstantin Dikov
Telerik team
 answered on 18 Jul 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?