Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
109 views
I am new to using services to load comboboxs.  I wan to load the combobox with attached service on demand in my code behind and not on page load.  how can this be accomplished.  Thank you.

 

<telerik:RadComboBox ID="cbCounty" runat="server" WebServiceSettings-Method="FindCounty" WebServiceSettings-Path="~/AutoComplete.asmx"></telerik:RadComboBox>



Princy
Top achievements
Rank 2
 answered on 30 Jan 2014
1 answer
75 views
Hello Telerik team,
I have created custom skin for rad editor.I am using telerik version 2013.3.1114.40 .
Followed steps suggest by you as below.

css register
    <link id="Link3" runat="server" href="~/App_Themes/Skins/Editor.css" rel="stylesheet" type="text/css" />
    <link id="Link4" runat="server" href="~/App_Themes/Skins/Window.css" rel="stylesheet" type="text/css" />
    <link id="Link5" runat="server" href="~/App_Themes/Skins/gTest/Editor.gTest.css" rel="stylesheet" type="text/css" />
    <link id="Link6" runat="server" href="~/App_Themes/Skins/gTest/Window.gTest.css" rel="stylesheet" type="text/css" />


Added in raadeditor

DialogsCssFile="~/App_Themes/Skins/gTest/Widgets.gTest.css" Skin="gTest" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" 


my Widgets.gTest.css is



@import url('../ToolBar.css');
@import url('../FormDecorator.css');
@import url('../TabStrip.css');
@import url('../Editor.css');
@import url('../TreeView.css');
@import url('../Splitter.css');
@import url('../Slider.css');
@import url('../Upload.css');
@import url('../Window.css');
@import url('../Grid.css');
@import url('../Widgets.css');/*This should have been imported automatically!*/
@import url('../FileExplorer.css');
@import url('../Menu.css');

@import url('ToolBar.gTest.css');
@import url('FormDecorator.gTest.css');
@import url('TabStrip.gTest.css');
@import url('Editor.gTest.css');
@import url('TreeView.gTest.css');
@import url('Splitter.gTest.css');
@import url('Slider.gTest.css');
@import url('Upload.gTest.css');
@import url('Window.gTest.css');
@import url('Grid.gTest.css');
@import url('Menu.gTest.css');   

But still facing issue when open Image Manager.
Some css is not applied properly.


Pelase suggest me what can I do next to solve this issue.
Ianko
Telerik team
 answered on 30 Jan 2014
1 answer
91 views
Hi

I've a radgrid on a web page and around 1400 radtimepicker controls. Each time I try to display the web page, the IE Dialog box with "Stop running this script. A script on this page is causing internet explorer to run slowly. If it continues to run, your computer might become unresponsive" message appears and the screen freezes. The radgrid has around 100 rows.

Please can someone suggest the best option to fix this issue?

I've also disabled the enabledembeddedscripts to increase the performance, but no change in the performance still same message appears.

Thanks

Shinu
Top achievements
Rank 2
 answered on 30 Jan 2014
1 answer
209 views
Hi,
      In my case I have one  AutoCompleteBox. Its Databinding  From Server Side i.e.code behind. but Data not showing in AutoCompleteBox so provide solution.
My code is..
Client Side:
<telerik:RadAutoCompleteBox ID="cmplt_agent" Runat="server" InputType="Token" 
                                                                    Width="80%"  Filter="StartsWith"
                                                                    DropDownWidth="200" DropDownHeight="150" AllowCustomEntry="true"
                                                                    ontextchanged="cmplt_agent_TextChanged" >       
                                                                 <TokensSettings AllowTokenEditing="true" /> 
                                                                </telerik:RadAutoCompleteBox>

code behind:
  public void GetAgent()
        {
            AgentIdTitle = cs.GetAgentIdTitle(Ld.SubscriberInformationId);
            cmplt_agent.DataSource = AgentIdTitle;
            cmplt_agent.DataTextField = "Title";
            cmplt_agent.DataValueField = "Id";
            cmplt_agent.DataBind();
        }

Thanks,
Rahul
Shinu
Top achievements
Rank 2
 answered on 30 Jan 2014
10 answers
317 views
Hi,
Is it possible to show sort icons on all columns at page load.I go through this link " http://www.telerik.com/community/forums/aspnet/grid/possible-to-show-sort-icon-regardless-sort-status.aspx ."But still i am not able to find the solution.On page load i need to show Sort icon on all columns.Please help me ?

Thanks in Advance
Joby
Shinu
Top achievements
Rank 2
 answered on 30 Jan 2014
4 answers
351 views
I'm trying to follow the demo shown here but when I run it as is I receive the following:

[NotSupportedException: Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery, DbRawSqlQuery) is not supported. Instead populate a DbSet with data, for example by calling Load on the DbSet, and then bind to local data. For WPF bind to DbSet.Local. For WinForms bind to DbSet.Local.ToBindingList().]
   System.Data.Entity.Infrastructure.DbQuery`1.System.ComponentModel.IListSource.GetList() +44
   System.Web.UI.DataSourceHelper.GetResolvedDataSource(Object dataSource, String dataMember) +57
   System.Web.UI.WebControls.ReadOnlyDataSource.System.Web.UI.IDataSource.GetView(String viewName) +42
   System.Web.UI.WebControls.DataBoundControl.ConnectToDataSourceView() +145
   System.Web.UI.WebControls.DataBoundControl.GetData() +4
   Telerik.Web.UI.RadGrid.GetData() +132
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +54
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +30
   Telerik.Web.UI.RadGrid.DataBind() +107
   Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +4252
   Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +201
   System.Web.UI.Control.LoadRecursive() +54
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Control.LoadRecursive() +145
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772

However, if I just select a subset and call ToList() on it, it doesn't throw the error.

Is there a new demo that shows the latest way of binding with EF? I will be using all the paging, filtering, sorting and grouping features.

Regards.
Shinu
Top achievements
Rank 2
 answered on 30 Jan 2014
3 answers
560 views
Hi
      I have bind menu using dataset from database, I want to wrap menu item text.
How it's possible.

Thanks
Swapnil
Margie
Top achievements
Rank 1
 answered on 30 Jan 2014
14 answers
364 views
Hi,

I implemented the first solution outlined in the following example:

http://www.telerik.com/help/aspnet-ajax/grdfilteringbylisttextfieldforgriddropdowncolumn.html

(use a hidden GridBoundColumn (with Display = false). Add an ItemCommand event handler that catches filter commands from GridBoundColumn and substitutes a filter command from the GridDropDownColumn instead)

This works well, however there is a bad side effect.

For a normal column without a need for custom handling, say an integer value, when you type in an integer like "3" and selet a filter, the value of "3" persists visually when the page reloads, and the end user can now tell that the column is filtered by "3".

However, for the columns handled in the RadGrid1_ItemCommand (as outlined in the solution) - after typing in a value and clicking on the filter selection (EqualTo), the value typed in does not persist once the page reloads.  The filter has bee succesfully applied, and the RadGrid now shows a targeted list based upon the filter entered, but the end user has no way of seeing what value the grid is being filtered by.

Have you identified a work around for this?    Thanks.

Pavel
Top achievements
Rank 1
 answered on 29 Jan 2014
1 answer
136 views
I'm still having trouble figuring out how to manage the style for the listview control.
I'm using the built in float layout, but I want to REMOVE the box border. Could someone give me a little help?
See image, but I'm building a list of gauges and I want a clean look without the borders. I have read thru all the examples, but sill cannot over ride the style.
Thanks anyone!

<telerik:RadListView ID="radlvGuages" runat="server" ItemPlaceholderID="ProductItemContainer" Width="100%" AllowPaging="true" PageSize="12">
    <LayoutTemplate>
        <div class="RadListView RadListViewFloated RadListView_Default">
            <div class="rlvFloated">
                <div id="ProductItemContainer" runat="server">
                </div>
            </div>
        </div>
        <br />
        <div style="clear: both">
        </div>
        <div>
            <div style="float: left; margin-left: 20%;">
                <asp:Button runat="server" ID="btnFirst" CommandName="Page" CommandArgument="First"
                    Text="First" Enabled="<%#Container.CurrentPageIndex > 0 %>"></asp:Button>
                <asp:Button runat="server" ID="btnPrev" CommandName="Page" CommandArgument="Prev"
                    Text="Prev" Enabled="<%#Container.CurrentPageIndex > 0 %>"></asp:Button>
                <span style="vertical-align: middle; line-height: 22px; display: inline-block;">Page
                                        <%#Container.CurrentPageIndex + 1 %>
                                        of
                                        <%#Container.PageCount %></span>
                <asp:Button runat="server" ID="btnNext" CommandName="Page" CommandArgument="Next"
                    Text="Next" Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>"></asp:Button>
                <asp:Button runat="server" ID="btnLast" CommandName="Page" CommandArgument="Last"
                    Text="Last" Enabled="<%#Container.CurrentPageIndex + 1 < Container.PageCount %>"></asp:Button>
            </div>
            <div>
                <span style="vertical-align: middle; font-weight: bold; line-height: 22px; padding-left: 5px;">Page Size:</span>
                <telerik:RadComboBox runat="server" ID="cmbPageSize" OnSelectedIndexChanged="cmbPageSize_SelectedIndexChanged"
                    AutoPostBack="true" Width="60px" SelectedValue="<%#Container.PageSize %>">
                    <Items>
                        <telerik:RadComboBoxItem Text="6" Value="6"></telerik:RadComboBoxItem>
                        <telerik:RadComboBoxItem Text="12" Value="12"></telerik:RadComboBoxItem>
                        <telerik:RadComboBoxItem Text="24" Value="24"></telerik:RadComboBoxItem>
                        <telerik:RadComboBoxItem Text="36" Value="36"></telerik:RadComboBoxItem>
                    </Items>
                </telerik:RadComboBox>
            </div>
        </div>
    </LayoutTemplate>
    <ItemTemplate>
        <div class="rlvI">
            <table style="width: 100%;">
                <tr>
                    <td style="text-align: center; font-size: x-small;">
                        <telerik:RadRadialGauge runat="server" ID="radGuageDash" Width="150px" Height="150px">
                            <Pointer>
                                <Cap Size="0.12" />
                            </Pointer>
                            <Scale Min="0" Max="200" MajorUnit="50">
                                <Labels Position="Inside" Visible="False" />
                                <Ranges>
                                    <telerik:GaugeRange Color="#c20000" From="0" To="50" />
                                    <telerik:GaugeRange Color="#ffc700" From="50" To="100" />
                                    <telerik:GaugeRange Color="#8dcb2a" From="100" To="200" />
                                </Ranges>
                            </Scale>
                        </telerik:RadRadialGauge>
                        <%#Eval("TotalObjectivesMade")%> out of <%#Eval("ObjectiveCount")%> Objectives<br />
                        <%#Eval("Provider")%>
                    </td>
                </tr>
            </table>
        </div>
    </ItemTemplate>
 
    <EmptyDataTemplate>
        <div class="RadListView RadListView_Default">
            <div class="rlvEmpty">
                There are no items to be displayed.
            </div>
        </div>
    </EmptyDataTemplate>
</telerik:RadListView>

GDPR_erased
Top achievements
Rank 1
 answered on 29 Jan 2014
1 answer
96 views
Hi,

I'm trying to load a page with a radgrid on it. It has around 100 rows, each time I try and load the page it freezes the browser and shows an IE dialog box with Stop running this script. A script on this page is causing Internet Explorer to run slowly. If it continues to run, your computer might become unresponsive.  The radgrid has itemtemplates with around 1400 radtimepicker.

I've disabled clientsidescript to increase the performance , but no difference.

Please can someone help?

Thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 29 Jan 2014
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?