Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
544 views
I am having an issue with a RadGrid that populates it's datasource through the NeedDataSource method/event and allows users to due clients-die batch edits then updates using this sample as a base: http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/clienteditbatchupdates/defaultcs.aspx.

When the data from more than one row in the RadGrid is modified then the batch update image/command is issued, only one row is updated and the changes in other rows are not being refreshed/reflected in the grid like it's remembering the old values and someone not processing more than one row.  I am not sure if it's related to the grid's datasource being set through the code-behind and the grid.

I tried to only include the code that could potentially cause issues, like the Page Load, NeedSource, Update, Client Events, and RadGrid definition.  I have also changed some field values for posting here in case there are any minor typos.
Antonio Stoilkov
Telerik team
 answered on 14 May 2013
1 answer
80 views
I noticed that each update contains folders like scripts, skins, but none of these folders show up in our project files.  We can see the references in the project files to the Telerik assemblies but not much else.  I am worried that our continuous build process is not accessing the correct resources.  Can someone give me some idea of how Telerik integrates into builds?  We need to know how to source control Telerik's files so that branched versions of our code base find the appropriate telerik version with all supporting files.
Martin
Telerik team
 answered on 14 May 2013
1 answer
92 views

I am trying to figure out a way to change the culture attribute of items being loaded thru the RadInputManager.

I'm using the methods I've found on the site to build the RadInputManager when a page is loaded.

I use the Page_Init to add settings:

protected void Page_Init(object sender, EventArgs e)
{
    NumericTextBoxSetting numericSetting = new NumericTextBoxSetting();
    numericSetting.Validation.IsRequired = false;
    numericSetting.BehaviorID = "numeric";
    numericSetting.InitializeOnClient = true;
    RadInputManager1.InputSettings.Add(numericSetting);
 
    NumericTextBoxSetting _currencySetting = new NumericTextBoxSetting();
    _currencySetting.BehaviorID = "currency";
    _currencySetting.DecimalDigits = 2;
    _currencySetting.Type = NumericType.Currency;
    _currencySetting.Validation.IsRequired = false;
    _currencySetting.InitializeOnClient = true;
    RadInputManager1.InputSettings.Add(_currencySetting);
 
}

And apply it like:

TextBox _txtTotal = (TextBox)e.Item.FindControl("txtTotal");
RadInputManager1.InputSettings[1].TargetControls.Add(new TargetInput(_txtTotal.UniqueID, true));

This works like a charm.  I want to change the culture of the rendered controls based on selections that the user places on the screen.  I can't do it on the Page_Init, however, because the data is not available at the time.

Is there a way to change the culture after I've used the Page_Init to build the controls?
Vasil
Telerik team
 answered on 14 May 2013
2 answers
431 views
I am getting this error after I reset the values of the controls including RadComboBox.
Here's the scenario:

1. I have asp.net controls including dropdownlist, textbox and 2 RadComboBox
2. First RadComboBox = source depends on asp.net dropdownlist selected value
3. Second RadComboBox = source depends on First RadComboBox selected value
4. ASP.NET dropdownlist and First RadComboBox are set to autopostback=true and have selectedindexchanged events
5. Has an asp.net button "Reset" to reset/clear the values for the controls

Error occurs when I select an item on ASP.NET dropdownlist after OnClick event of reset button
Below is the error I got on our log file since when in debug mode, I just get a blank page

[09/05/2013 13:27:30][ERROR]:
    Message: Object reference not set to an instance of an object.
    Source: Telerik.Web.UI
    StackTrace:    at Telerik.Web.UI.RadComboBox.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.AddedControl(Control control, Int32 index)
   at System.Web.UI.ControlCollection.Add(Control child)
   at Telerik.Web.UI.GridPagerItem.InitializePagerItem(GridColumn[] columns)
   at Telerik.Web.UI.GridPagerItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows)
   at Telerik.Web.UI.GridTableView.CreateTopPagerItem(Boolean useDataSource, GridColumn[] copiedColumnSet, Boolean isPagingEnabled, GridTHead thead)
   at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource)
   at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)
   at System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls()
   at System.Web.UI.Control.EnsureChildControls()
   at Telerik.Web.UI.GridTableViewBase.get_Controls()
   at Telerik.Web.UI.GridTableView.GetGridTable()
   at Telerik.Web.UI.RadGrid.PrepareRowsVisibility(GridTableView view)
   at Telerik.Web.UI.RadGrid.PrepareItems()
   at Telerik.Web.UI.RadGrid.ControlPreRender()
   at Telerik.Web.UI.RadCompositeDataBoundControl.OnPreRender(EventArgs e)
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Notes:
  • I already remove the partial postback (radajaxmanager)
  • I retain the event for asp.net dropdownlist and radcombobox event but commented all codes inside it so it will just postback and no code will be executed

OnClick event has below code: (I also tried commenting the part of the 2 RadComboBox which are: ddlFailureCategory and ddlFailureSubCategory but still get error)

txtCaseNo.Text = string.Empty;
this.IsFirstLoad = true;
 
chkICAR.SelectedValue = "No";
chk8D.SelectedValue = "No";
chkReassignAccept.SelectedValue = "No";
chkReassignReject.SelectedValue = "No";
chkRevertActionItem.SelectedValue = "No";
chkReopenCase.SelectedValue = "No";
chkAutoRaise.SelectedValue = "No";
chkActivateCase.SelectedValue = "No";
 
ddlStatus.SelectedIndex = -1;
ddlModule.SelectedIndex = -1;
ddlFailureCategory.SelectedIndex = -1;
ddlFailureSubCategory.SelectedIndex = -1;
ddlCaseType.SelectedIndex = -1;
ddlTechnology.SelectedIndex = -1;
ddlOwnershipGroup.SelectedIndex = -1;
 
ddlCondCaseNo.SelectedIndex = -1;
ddlCondStatus.SelectedIndex = -1;
ddlCondModule.SelectedIndex = -1;
ddlCondFailureCategory.SelectedIndex = -1;
ddlCondFailureSubCategory.SelectedIndex = -1;
ddlCondCaseType.SelectedIndex = -1;
ddlCondTech.SelectedIndex = -1;
ddlCondOwnershipGroup.SelectedIndex = -1;
ddlCondCaseICAR.SelectedIndex = -1;
ddlCondCase8D.SelectedIndex = -1;
ddlCondReassignAccept.SelectedIndex = -1;
ddlCondReassignReject.SelectedIndex = -1;
ddlCondRevertActionItem.SelectedIndex = -1;
ddlCondReopenCase.SelectedIndex = -1;
ddlCondAutoRaise.SelectedIndex = -1;
ddlCondActivateCase.SelectedIndex = -1;
 
txtCaseNo.Enabled = false;
ddlStatus.Enabled = false;
ddlModule.Enabled = false;
ddlFailureCategory.Enabled = false;
ddlFailureSubCategory.Enabled = false;
ddlCaseType.Enabled = false;
ddlTechnology.Enabled = false;
ddlOwnershipGroup.Enabled = false;
 
chkICAR.Enabled = false;
chk8D.Enabled = false;
chkReassignAccept.Enabled = false;
chkReassignReject.Enabled = false;
chkRevertActionItem.Enabled = false;
chkReopenCase.Enabled = false;
chkAutoRaise.Enabled = false;
chkActivateCase.Enabled = false;

Kindly give an advice on how to interpret the error I got since in debug mode, I didn't get an exception.

Thanks.
Jayzle
Top achievements
Rank 1
 answered on 14 May 2013
1 answer
121 views
The docs for this make no mention of tests for IE10.

is this an oversight in the Docs or in the Library?

--
Stuart
Marin
Telerik team
 answered on 14 May 2013
17 answers
436 views
Hello,

When I enter data in the Rad Text Box (after a postback operation), the entered data does not remain for the next postback. I mean... The data entered in the Text box does not remain in the viewstate. I am facing this problem only when I use Rad Text Box. This is not page specific. But this does not happen everytime. The occurrence is more often but not always.

Please let me know if you need any further information regarding this problem.

Thanks
- gsk
Vasil
Telerik team
 answered on 14 May 2013
1 answer
85 views
  <telerik:RadGrid ID="rdGrdReferenceTable" runat="server" GridLines="None" AllowPaging="True"
                                                        PageSize="10" AllowSorting="true" OnRowDrop="rdGrdReferenceTable_RowDrop" OnItemDataBound="rdGrdReferenceTable_ItemDataBound"
                                                        OnUpdateCommand="rdGrdReferenceTable_UpdateCommand" OnNeedDataSource="rdGrdReferenceTable_NeedDataSource"
                                                      AutoGenerateColumns="False"
                                                        Width="1148px" Height="348px" AllowAutomaticUpdates="false" AllowAutomaticInserts="false"
                                                        AllowFilteringByColumn="true" GroupingSettings-CaseSensitive="false" PagerStyle-AlwaysVisible="true"
                                                        TabIndex="4" Style="border: 1px solid #ccc">
                                                        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" Position="Bottom"></PagerStyle>
                                                        <MasterTableView EditMode="InPlace" GridLines="None" DataKeyNames="Row_Seq_Number,ShortDescription"
                                                            AutoGenerateColumns="false" Width="100%" NoMasterRecordsText="No data fields to display.."
                                                            HeaderStyle-HorizontalAlign="Left" HeaderStyle-Font-Bold="true">
                                                            <Columns>
                                                                <telerik:GridBoundColumn DataField="Row_Seq_Number" ReadOnly="True" HeaderText="Row_Seq_Number"
                                                                    UniqueName="Row_Seq_Number" Visible="false">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="RowNumber" ReadOnly="True" HeaderText="Row Number"
                                                                    HeaderStyle-Width="100px" UniqueName="RowNumber">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridBoundColumn DataField="ColumnName" ReadOnly="True" HeaderText="Table Name"
                                                                    UniqueName="ColumnName" ColumnEditorID="GridTextBoxColumnEditor1" HeaderStyle-Width="180px">
                                                                </telerik:GridBoundColumn>
                                                                <telerik:GridTemplateColumn HeaderText="Short Description" DataField="ShortDescription"
                                                                    HeaderStyle-Width="180px" UniqueName="ShortDescription">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="lblShortDescription" runat="server" Text='<%# Eval("ShortDescription")%>'></asp:Label>
                                                                    </ItemTemplate>
                                                                    <EditItemTemplate>
                                                                        <asp:TextBox ID="txtShortDescription" Width="300px" runat="server" Text='<%# Eval("ShortDescription")%>'></asp:TextBox>
                                                                    </EditItemTemplate>                                                             
                                                                </telerik:GridTemplateColumn>
                                                                <telerik:GridBoundColumn DataField="Parent_Data" ReadOnly="True" HeaderText="Parent Data"
                                                                    HeaderStyle-Width="180px" UniqueName="Parent_Data">
                                                                </telerik:GridBoundColumn>
                                                            </Columns>
                                                        </MasterTableView>
                                                        <GroupingSettings CaseSensitive="false" />
                                                        <ClientSettings AllowColumnsReorder="true"  ReorderColumnsOnClient="true"  AllowRowsDragDrop="true">
                                                            <Resizing AllowColumnResize="true" />
                                                            <Selecting AllowRowSelect="true" EnableDragToSelectRows="false" />
                                                            <ClientEvents OnRowClick="RowClick" OnRowDblClick="RowDblClick" OnGridCreated="GridCreated"
                                                                OnCommand="GridCommand" OnRowDropping="RowDropping" />
                                                            <Scrolling AllowScroll="true" UseStaticHeaders="true"  />
                                                        </ClientSettings>
                                                    </telerik:RadGrid>


Thanks,
Jegan
Princy
Top achievements
Rank 2
 answered on 14 May 2013
3 answers
211 views
Hi,

Is it possible to limit the resize capability of the Editor so that users may only resize it vertically rather than both vertically and horizontally? Currently we are having to disable all Resize capabilities to prevent the users from breaking the page.

Hope you can help

A.
Steven
Top achievements
Rank 1
 answered on 14 May 2013
6 answers
598 views
Hi

We just updated to the most recent 2013 Q1 upgrade of ASP.NET tools, and all of the sudden the RadDropDownLists are not working properly with the RequiredValidators,  The validators keep showing messages even though there's content on the dropdowns.  The latest browsers versions of Chrome and IE have this problem.  

Curiously, with IE version 8 this problem does not occur!

I'd appreciate any help or bug fix for this as it is a critical problem


Thanks in advance
Neftali Figueroa
Owen
Top achievements
Rank 1
 answered on 13 May 2013
1 answer
131 views
I have a RadGrid that I am create on Page_Init. I have EnableViewState and EnableColumnsViewState both set to true. I apply a filter on the grid, the system runs the NeedDataSource and the correct records are applied. The filter value is still in the textbox. I then apply a second filter to a different column. The system runs the NeedDataSource and records that only apply to the second filter show. The first filter is not applied and the value in the textbox of the first filter is erased. I don't believe this is the desired behaviour. What am I doing wrong?

RadGrid1.ID = "RadGrid1"
RadGrid1.Width = Unit.Pixel(1500)
RadGrid1.Height = Unit.Pixel(700)
RadGrid1.MasterTableView.EditMode = GridEditMode.InPlace
RadGrid1.EnableViewState = True
RadGrid1.AllowPaging = True
'RadGrid1.AllowCustomPaging = True
RadGrid1.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric
RadGrid1.AutoGenerateColumns = False
RadGrid1.ShowStatusBar = True
RadGrid1.AllowSorting = True
RadGrid1.AllowFilteringByColumn = True
RadGrid1.MasterTableView.NoDetailRecordsText = "No records could be found."
RadGrid1.MasterTableView.NoMasterRecordsText = "No records could be found."
RadGrid1.MasterTableView.ShowHeadersWhenNoRecords = True
RadGrid1.Skin = "WebBlue"
RadGrid1.ClientSettings.ClientEvents.OnGridCreated = "GetGridObject"
RadGrid1.ClientSettings.Scrolling.FrozenColumnsCount = 2
RadGrid1.ClientSettings.AllowColumnsReorder = True
RadGrid1.ClientSettings.ColumnsReorderMethod = GridClientSettings.GridColumnsReorderMethod.Swap
RadGrid1.ClientSettings.Selecting.AllowRowSelect = True
RadGrid1.ClientSettings.Resizing.AllowColumnResize = True
RadGrid1.ClientSettings.Scrolling.AllowScroll = True
RadGrid1.ClientSettings.Scrolling.UseStaticHeaders = True
RadGrid1.ClientSettings.Scrolling.SaveScrollPosition = True
RadGrid1.ClientSettings.ClientEvents.OnFilterMenuShowing = "filterMenuShowing"
RadGrid1.FilterMenu.OnClientShowing = "MenuShowing"
RadGrid1.MasterTableView.EnableViewState = True
RadGrid1.MasterTableView.EnableColumnsViewState = True
RadGrid1.MasterTableView.PageSize = 50
RadGrid1.MasterTableView.AllowMultiColumnSorting = True
RadGrid1.MasterTableView.DataKeyNames = New String() {"DetailID", "Day", "FoundGeographies", "SubZipCount"}
If mSubCodesAvailable Then
    RadGrid1.MasterTableView.HierarchyLoadMode = GridChildLoadMode.ServerBind
    RadGrid1.MasterTableView.HierarchyDefaultExpanded = True
End If
David Kucharski
Top achievements
Rank 1
 answered on 13 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?