<telerik:GridBoundColumn DataField="Contact.FullName" DataType="System.String" FilterControlAltText="Filter Portfolio Manager column" HeaderText="Portfolio Manager" HeaderButtonType="TextButton" SortExpression="PortfolioManager" UniqueName="PortfolioManager" FilterControlWidth="60%"> <HeaderStyle CssClass="GridHeaderControlColor" Width="25%" /></telerik:GridBoundColumn><telerik:GridBoundColumn DataField="Contact1.Fullname" FilterControlAltText="Filter Compliance Officer column" SortExpression="ComplianceOfficer" HeaderText="Compliance Officer" HeaderButtonType="TextButton" UniqueName="ComplianceOfficer" DataType="System.String" FilterControlWidth="60%"> <HeaderStyle CssClass="GridHeaderControlColor" Width="20%" /></telerik:GridBoundColumn>[NullReferenceException: Object reference not set to an instance of an object.] lambda_method(Closure , PMD_ComplianceLoanAdminReport ) +62 System.Linq.WhereEnumerableIterator`1.MoveNext() +141 System.Linq.Enumerable.Count(IEnumerable`1 source) +225 lambda_method(Closure ) +149 System.Linq.EnumerableExecutor`1.Execute() +94 System.Linq.EnumerableExecutor`1.ExecuteBoxed() +23 System.Linq.EnumerableQuery`1.System.Linq.IQueryProvider.Execute(Expression expression) +94 Telerik.Web.UI.GridDynamicQueryable.Count(IQueryable source) +296 Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() +4216 Telerik.Web.UI.GridDataTableFromEnumerable.FillData() +1064 Telerik.Web.UI.GridResolveEnumerable.Initialize() +58 Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +45 Telerik.Web.UI.GridResolveEnumerable.get_DataTable() +31 Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, IEnumerable enumerable, Boolean CaseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +221 Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +154 Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields) +566 Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +223 Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +622 Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +800 System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +66 System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128 System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33 System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143 Telerik.Web.UI.GridTableView.PerformSelect() +38 System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74 Telerik.Web.UI.GridTableView.DataBind() +363 Telerik.Web.UI.GridTableView.Rebind() +100 Telerik.Web.UI.GridFilterCommandEventArgs.ExecuteCommand(Object source) +954 Telerik.Web.UI.RadGrid.OnBubbleEvent(Object source, EventArgs e) +200 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +66 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 Telerik.Web.UI.GridItem.OnBubbleEvent(Object source, EventArgs e) +142 Telerik.Web.UI.GridItem.FireCommandEvent(String commandName, Object commandArgument) +80 Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +9998 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +176 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563Hi guys.
I´m new using RadImageGallery, and I was wondering if is it possible to change the image of previous and next image in the ImageArea.
Can you please help me how to achieve this goal?.
Best regards.
Cristian.
Is there a way to minimize the ammount of requests performed by the RadGrid control? Telerik controls are performing a lot of requests for retrieving skins and JS files required by the component. Is there anything already provided by Telerik for bundling these multiple requests in perhaps two requests? One would be for a single minified JS file and the other one for all of the styles required.
1) I am using the default Skin for the RadGrid.
2) I cannot rely in caching because it's disabled in a global scope. It cannot be enabled.
3) For security policies, I cannot use Telerik CDN's.
4) I am applying the following techniques but caching. The response time is still slow. The initial call takes about 5 seconds, changing pages takes just 2 seconds (Paging made via Ajax and implementing custom pagination). The main problem is the initial rendering. The target would be 2 seconds to process the page.
http://docs.telerik.com/devtools/aspnet-ajax/general-information/performance/optimizing-performance
http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/performance/grid-performance-optimizations
Does anyone have any suggestions or faced a scenario similar to the one I am describing?
Thanks in advance,
Carlos
Hi,
Currently I am using RadCombobox with EnableLoadOnDemand="True" and CheckBoxes="True".Loading Items using OnItemsRequest Event. After postback, selected RadComboBox values are not persisting. Is it not supported in latest version also? Is there any solution for this issue in future release.
<telerik:RadComboBox ID="pCompany" Width="300px" runat="server" EnableLoadOnDemand="True"
ShowMoreResultsBox="true" EnableVirtualScrolling="true" ItemsPerRequest="10" OnItemsRequested="pCompany_ItemsRequested"
CheckBoxes="true" EnableCheckAllItemsCheckBox="true" OnSelectedIndexChanged="ppCompany_SelectedIndexChanged"
AutoPostBack="true" Height="140px">
</telerik:RadComboBox>
I have the following Grid. The problem is I can not add a RequiredFieldValidator for the GridDateTimeColumn in edit mode, as I did for the other columns. I would like to know if it is possible, in the code behind C#, to disable the insert button (the tick sign) when the date is not valid or if I can add a validator for the date, that would not allow to insert an item if the corresponding date is not valid. I have also attached a picture.
Thank you very much for any idea, Alexandru Popa.
<telerik:RadGrid ID="rgMealPlanPrices" runat="server" AutoGenerateColumns="false" AllowFilteringByColumn="False" AllowSorting="True" AllowPaging="True" PageSize="30" OnNeedDataSource="rgMealPlanPrices_NeedDataSource" OnDeleteCommand="rgMealPlanPrices_DeleteCommand" OnItemDataBound="rgMealPlanPrices_ItemDataBound" OnInsertCommand="rgMealPlanPrices_InsertCommand" OnItemCommand="rgMealPlanPrices_ItemCommand" OnItemCreated="rgMealPlanPrices_ItemCreated"> <MasterTableView DataKeyNames="Id" CommandItemDisplay="TopAndBottom" ShowHeadersWhenNoRecords="True" TableLayout="Fixed" EditMode="InPlace" meta:resourcekey="rgMealPlanPricesResource"> <CommandItemSettings AddNewRecordText="Adauga" ShowRefreshButton="False" ExportToPdfText="Export to PDF" /> <RowIndicatorColumn Visible="False"> <HeaderStyle Width="20px"></HeaderStyle> </RowIndicatorColumn> <ExpandCollapseColumn Visible="False"> <HeaderStyle Width="19px"></HeaderStyle> </ExpandCollapseColumn> <Columns> <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="EditCommandColumn" HeaderStyle-Width="30px"> </telerik:GridEditCommandColumn> <telerik:GridBoundColumn DataField="Id" HeaderText="Id" ReadOnly="true" UniqueName="Id" ForceExtractValue="Always" ConvertEmptyStringToNull="true" Display="False" /> <telerik:GridBoundColumn DataField="Code" HeaderText="Cod" meta:resourcekey="MealPlanCodeResource" Display="False" UniqueName="MealPlanCode"> </telerik:GridBoundColumn> <telerik:GridTemplateColumn DataField="MealPlan" HeaderText="Regim de masa" UniqueName="MealPlanName" meta:resourcekey="MealPlanResource"> <EditItemTemplate> <telerik:RadComboBox ID="rcbMealPlan" runat="server" AppendDataBoundItems="True" DataTextField="DisplayName" DataValueField="Id" Filter="Contains" MarkFirstMatch="true" DropDownWidth="240" EmptyMessage="Search by name" meta:resourcekey="rcbMealPlanResource" Width="240"> </telerik:RadComboBox> <asp:RequiredFieldValidator ID="rfvMealPlan" runat="server" ControlToValidate="rcbMealPlan" EnableClientScript="true" SetFocusOnError="true" meta:resourcekey="rfvMealPlanResource"> </asp:RequiredFieldValidator> </EditItemTemplate> <ItemTemplate> <%# Eval("DisplayName") %> </ItemTemplate> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn DataField="MealPlanPrice" HeaderText="Pret" UniqueName="MealPlanName" meta:resourcekey="MealPlanPriceResource"> <EditItemTemplate> <telerik:RadNumericTextBox ID="txtPrice" runat="server" DataType="System.Decimal" Width="50px"> <NumberFormat DecimalDigits="2" DecimalSeparator="." GroupSeparator="" KeepNotRoundedValue="true" AllowRounding="false" /> </telerik:RadNumericTextBox> <asp:RequiredFieldValidator ID="rfvPrice" runat="server" ControlToValidate="txtPrice" EnableClientScript="true" SetFocusOnError="true" meta:resourcekey="rfvMealPlanResource" /> </EditItemTemplate> <ItemTemplate> <%# Eval("Price") %> </ItemTemplate> <HeaderStyle Width="80px" /> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn DataField="MealPlanCalories" HeaderText="Calorii" UniqueName="MealPlanCalories" meta:resourcekey="MealPlanCaloriesResource"> <EditItemTemplate> <telerik:RadNumericTextBox ID="txtCalories" runat="server" DataType="System.Decimal" Width="50px"> <NumberFormat DecimalDigits="0" DecimalSeparator="." GroupSeparator="" KeepNotRoundedValue="true" AllowRounding="false" /> </telerik:RadNumericTextBox> <asp:RequiredFieldValidator ID="rfvCalories" runat="server" ControlToValidate="txtCalories" EnableClientScript="true" SetFocusOnError="true" meta:resourcekey="rfvMealPlanResource" /> </EditItemTemplate> <ItemTemplate> <%# Eval("Calories") %> </ItemTemplate> <HeaderStyle Width="180px" /> </telerik:GridTemplateColumn> <telerik:GridTemplateColumn DataField="MealPlanConfortSporit" HeaderText="ConfortSporit" UniqueName="MealPlanConfortSporit"> <EditItemTemplate> <asp:CheckBox ID="ckbConfortSporit" runat="server" ></asp:CheckBox> </EditItemTemplate> <ItemTemplate> <%# Eval("ConfortSporit") %> </ItemTemplate> <HeaderStyle Width="180px" /> </telerik:GridTemplateColumn> <telerik:GridDateTimeColumn DataField="IssueDate" HeaderText="Valid de la" HeaderStyle-Wrap="true" DataFormatString="{0:dd.MM.yyyy}" meta:resourcekey="ValidFromResource" PickerType="DatePicker" Resizable="true"> <HeaderStyle Width="80px" /> </telerik:GridDateTimeColumn> <telerik:GridButtonColumn ConfirmText="Delete this meal plan?" ConfirmDialogType="RadWindow" ConfirmDialogHeight="110px" ConfirmTitle="Delete" ButtonType="ImageButton" Text="Delete" CommandName="Delete" meta:resourcekey="DeleteCommandResource" ImageUrl="~\Image\icon\16x16_Microsoft_Style\delete_16_OLD.gif" UniqueName="DeleteServiceColumn"> <HeaderStyle Width="40px" /> </telerik:GridButtonColumn> </Columns> </MasterTableView> </telerik:RadGrid>Hello,
I'm using AjaxManager in my MasterPage, and AjaxManagerProxy inside my content pages.
I would like to update a label (error or success result) included into my masterpage after clicking any button included inside content pages ajaxified.
But why ajaxify all buttons because each postback done must imperatively refreshing my masterpage label...
I think i can not write dynamically an ajaxsettings with an unknown AjaxifiedControlID, doesn't it ?
Thank you.
function clearFilters(sender, args) { var combo = $find("<%= RadComboBox1.ClientID %>"); combo.clearItems; combo.clearSelection;}