Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
79 views
I am having the issue in my attached screenshot.  I cannot figure out why exactly I'm seeing this problem.

My web.config file has maxJsonLength set to max - 2147483644.

How do I know what elements are getting sent into DescribeAppointment that are too large?
Plamen
Telerik team
 answered on 30 Aug 2013
1 answer
137 views
Hi, I want a  treelist looks like below

- node 1                   checkbox      text box
  - node 1.1              checkbox      text box
     - node 1.1.1        checkbox       text box
     - node 1.1.2        checkbox       text box
- node 2                   checkbox      text box
  - node 2.1              checkbox      text box
     - node 2.1.1        checkbox       text box
     - node 2.1.2        checkbox       text box


My treelist will load data for textbox, but I also want user to be able to input some data through text box. And on the page there is a save button. When user click on it, the content in text box will be saved. I want to load this treelist on client side so that each time I expand/ collapse, it won't postback and textbox value can be maintained there.  And When I save data, I will loop through treelist, all t records, no matter its parent node has been expanded or not will be saved.  Is it possible to do that?

 I am very new to .net and I  am looking for  the right way to achieve the tree like and also gridview like function. I am not sure which is the best control to use. I appreciate your advice. 

Thank you so much.
Antonio Stoilkov
Telerik team
 answered on 30 Aug 2013
11 answers
224 views
I'm trying to find out if it is possible to setup the AutoCompleteBox for ASP.Net Ajax to databind with a webservice (asmx) that returns a List<T> as a JSON string.   The List<T> is simply an Airport object with the properties of AiportID and AirportName.  This web service is hosted by a third party making it impossible for any code at the web service end to make use of the Telerik AutoCompleteBoxDataItem objects to package up a return result.

Please advise.
Genady Sergeev
Telerik team
 answered on 30 Aug 2013
1 answer
94 views
I'm using the ASP.NET AJAX Rad controls for asp.net 3.5 in Visual Studio 2010 for the first time. I have made it to the step of "ajaxifying" my RadGrid but when I open the Smart Tag (for any controls) the "Ajax Resources:" header appears but there are no options under it. I'm building a user control so I did not have a ScriptManager on the page so I tried adding one but it didn't change anything. Then I tried adding a RadAjaxManager to the page and that caused the "Ajax Resources:" header to disappear from the Smart Tag altogether. Why isn't this section appearing?
Eyup
Telerik team
 answered on 30 Aug 2013
1 answer
55 views

Hello,

 

Our goal is to add AJAX to a page that has a somewhat complicated architecture. The basic structure is:

Master Page

  1. RadAjaxManager
  2. RadScriptManager

Content Page

  1. RadAjaxManagerProxy
  2.  RadGrid
  3. RadWindow (Opened from button click on RadGrid)
  • 4 Buttons (Which execute server-side code that affects the contents of the RadWindow)
  • User Control (Collection of labels to display information only)
  • RadListView (Each item in the RadListView has controls to display or change data)
  • Item Delete Button (One per RadListView item)
  • RadComboBox (One per RadListView item) (Updates Label below)
  • Label (One per RadListView item)

There are other controls on the page but they are out of scope, so to speak, of what the main issue is. For simplicity's sake they are not listed.

So, the Master Page holds the main RadAjaxManager and RadAjaxScriptManager, and the Content Page has the RadAjaxManagerProxy. Using the Proxy, I've been able to successfully AJAX the controls inside the Content Page, including the RadGrid and it opening the RadWindow after clicking a button in the row in the RadGrid.

However, we've hit a roadblock with trying to AJAXify the controls inside the RadWindow. At best, we can get it so that the Item Delete Button and ComboBox updating the Label work, but they cause the entire RadWindow to blink in and out or disappear/reappear. The buttons, which have to do with saving the data in the RadWindow to the database, adding an item to the RadListView, or deleting everything, are specifically the biggest problem. No attempt has made them work using AJAX. They always cause a full postback.

The complexity of the items in our RadListView may be an issue, though I'm not sure. Each item holds numerous controls that display or change the data of the object represented. I haven't found many examples of people using it this way, and fewer that try to AJAX them.

Any suggestions on what to try, or examples to look at, would be appreciated. Ideally, we would like all operations inside the RadWindow to be AJAX, and to have a seamless user experience -- no RadWindow blinking, and certainly not full postbacks.

Thanks for any help anyone can give!

Antonio Stoilkov
Telerik team
 answered on 30 Aug 2013
1 answer
127 views

Hi,

I need to perform numerous validation for a  textbox depending upon combobox selection.
For Eg:

[combobox]
<telerik:RadComboBox ID="rcbSearch" runat="server" Skin="Office2007">
        <Items>
            <telerik:RadComboBoxItem runat="server" Text="SELECT" Value="SELECT" />
            <telerik:RadComboBoxItem runat="server" Text="Check Number" Value="1" />
            <telerik:RadComboBoxItem runat="server" Text="Customer Name" Value="2" />
            <telerik:RadComboBoxItem runat="server" Text="File ID" Value="3" />
            <telerik:RadComboBoxItem runat="server" Text="Address"
                Value="4" />
            <telerik:RadComboBoxItem runat="server" Text="City" Value="5" />
            <telerik:RadComboBoxItem runat="server" Text="State" Value="6" />
            <telerik:RadComboBoxItem runat="server" Text="Zip" Value="7" />
        </Items>
    </telerik:RadComboBox>

[textbox]
<telerik:RadTextBox ID="rtbSearch" runat="server" Skin="Office2007">
    </telerik:RadTextBox>

Need to perform
1. Numberic validation when File ID is selected from combobox.
2. String validation when name or address is selected from combobox.
3. Validate length of checknumber, city, zipcode separately.

How it can be achieved?

Thanks

Shinu
Top achievements
Rank 2
 answered on 30 Aug 2013
1 answer
107 views
Hello

Here is the mark-up of my radcombobox with width set to 100%.
<div style="border:1px solid Teal; width:100%">
        <telerik:RadComboBox runat="server" ID="RadComboBox1" EnableLoadOnDemand="True" EmptyMessage ="Select" Label="Example:" AutoPostBack="true" Width="100%" >
        </telerik:RadComboBox>
</div>

The control is rendered incorrectly with a large vaccant space between the textbox and drop down arrow at the end.

Shinu
Top achievements
Rank 2
 answered on 30 Aug 2013
1 answer
172 views
I need to implement functionality to select/deselect item on item click event(client side).
Single selection mode is used.

I use

function ItemClick(sender, eventArgs) {
  if (eventArgs.get_item().get_selected()) {
     //eventArgs.get_item().set_selected(false);
// OR THIS ONE
     //var treelist = $find('<%=MyTreeList.ClientID %>');
     //treelist.deselectItem(eventArgs.get_item());
  }
}

But selection is restored every time after OnItemClick  event.

Thx.
Princy
Top achievements
Rank 2
 answered on 30 Aug 2013
11 answers
1.1K+ views

Hello Telerik!

I have some strange problem when I use internal sorting. My configuration: .NET 3.5 and latest version of Telerik.Web.UI assembly.

1. My Grid fully run-time created (columns, content). Property EnableViewState is false.

2. When I try to recreate grid I haven't any problem, util I don't use sorting.

Issue: If previous content had sorting on some column I can't recreate grid (columns, content).

Method RadGrid.Rebind() raise an Exception:

<Sorted_Column_Name> is neither a DataColumn nor a DataRelation for table Table1.

Stack Trace
at System.Data.DataRowView.get_Item(String property) at lambda_method(ExecutionScope , DataRowView ) at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count) at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count) at System.Linq.OrderedEnumerable`1.d__0.MoveNext() at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source) at lambda_method(ExecutionScope ) at System.Linq.EnumerableExecutor`1.Execute() at System.Linq.EnumerableExecutor`1.ExecuteBoxed() at System.Linq.EnumerableQuery`1.System.Linq.IQueryProvider.Execute(Expression expression) at Telerik.Web.UI.GridDynamicQueryable.Count(IQueryable source) at Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() at Telerik.Web.UI.GridDataTableFromEnumerable.FillData() at Telerik.Web.UI.GridResolveEnumerable.Initialize() at Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() at Telerik.Web.UI.GridResolveEnumerable.get_DataTable() at Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, DataView dataView, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) at Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) at Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) at Telerik.Web.UI.GridTableView.get_ResolvedDataSource() at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at Telerik.Web.UI.GridTableView.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.DataBind() at Telerik.Web.UI.GridTableView.DataBind() at Telerik.Web.UI.RadGrid.DataBind() at Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) at Telerik.Web.UI.RadGrid.Rebind() at DefContentPage.PopulateGrid()

Before Create new Columns and Binding I clear ALL previous settings and content:

RadGrid.MasterTableView.FilterExpression = String.Empty;  
RadGrid.MasterTableView.SortExpressions.Clear();
RadGrid.MasterTableView.GroupByExpressions.Clear();
RadGrid.MasterTableView.ClearSelectedItems();
RadGrid.MasterTableView.ClearEditItems();
RadGrid.AutoGenerateColumns = false;
RadGrid.MasterTableView.Columns.Clear();
RadGrid.MasterTableView.DataKeyNames = new string[0];
RadGrid.MasterTableView.DataSource = null;

//Create  new columns layout

RadGrid.Rebind(); 

For getting DataSource I am using NeedDataSource event. All time datasource is an instance of DataTable.

Please explain how can I recreate grid in case when my previous grid had sorting expression in some column.


Munish Sharma
Top achievements
Rank 1
 answered on 30 Aug 2013
5 answers
449 views
I am working on a radgrid which loads from datatable at runtime under NeedDataSource event. The grid is very dynamic and loads different columns in different cases. Everything works fine till I sort the column(either ascending or descending) and then do a postback to load new columns. When I do this it just fails to load the new changes.

Note: If I don't sort the column everything works fine. 

<telerik:RadAjaxManagerProxy ID="ampAnalysis" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="rgAnalysis">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rgAnalysis" LoadingPanelID="LoadingPanel"/>
                    </UpdatedControls>
                </telerik:AjaxSetting>                
            </AjaxSettings>
        </telerik:RadAjaxManagerProxy>
        
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
            <telerik:RadGrid ID="rgAnalysis" runat="server" ShowGroupPanel="false" Skin="Default" 
                AllowMultiRowSelection="True" AllowSorting="True" GridLines="None" BorderStyle="None" BorderWidth="0"   
                Height="500px" ShowFooter="True"  Width="100%" EnableViewState="False"
                AllowFilteringByColumn="True" PagerStyle-Mode="Slider" PageSize="12" AllowPaging="true" OnItemCommand="rgAnalysis_ItemCommand" >
                <GroupingSettings CaseSensitive="false" />
                <ExportSettings>
                    <Csv ColumnDelimiter="Tab" RowDelimiter="NewLine" FileExtension="txt" />
                    <Excel Format="Html" />
                    <Pdf FontType="Subset" PaperSize="Letter" AllowAdd="false" AllowCopy="false" AllowModify="false" AllowPrinting="true" Creator="ABI" 
                        PageBottomMargin="5mm" PageTopMargin="20mm" PageLeftMargin="5mm" PageRightMargin="5mm" PageHeight="297mm" PageWidth="420mm" />
                </ExportSettings>
                <FooterStyle HorizontalAlign="Right" Font-Bold="false"/>
                <MasterTableView AllowNaturalSort="true" ShowFooter="True" AllowMultiColumnSorting="true" EnableViewState="false" Width="100%">
                    <Columns>
                        <telerik:GridClientSelectColumn UniqueName="ClientSelectColumn" HeaderStyle-Width="50px" ItemStyle-Width="30px" />
                    </Columns>
                </MasterTableView>
                <ClientSettings>
                    <DataBinding EnableCaching="true"></DataBinding>
                    <Resizing ResizeGridOnColumnResize="true" />
                    <selecting AllowRowSelect="True" />
                    <Scrolling AllowScroll="True" SaveScrollPosition="true" FrozenColumnsCount="3">
                    </Scrolling>
                    <ClientEvents  OnRowSelected="rgAnalysis_RowSelected"  OnRowDeselected="rgAnalysis_RowDeselected" />
                </ClientSettings>
            </telerik:RadGrid>
        </telerik:RadAjaxPanel>

Munish Sharma
Top achievements
Rank 1
 answered on 30 Aug 2013
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?