

Hello,
Our goal is to add AJAX to a page that has a somewhat complicated architecture. The basic structure is:
Master Page
Content Page
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!
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
<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>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.