I work in an hosted forms auth environment where we are not allowed to store direct connection strings in the .config. As such I can't have the config section/provider information int he config either. I have been working with the scheduler for half day and figured of most of the crashes. I have configured my scheduler work with Webservice based on demo (all demos are strictly hardcoded to look for conn string from config).
Even after based on this article [using resourcepopulationmode in service and authentication], I was unable to get all the values from the forms ticket. I took a different step of implementing custom class with"ISchedulerInfo" with additional data. Even then I was unable to access basic properties I sent to the webserivce. I am trying to avoid binding a sql data source directly to the control.
Once again, the connection string is different based on the user.
Can someone please direct me in the correct direction.
I am going to do my best to explain my current issue.
I am currently have a hierarchy radgrid in batch edit mode. I am trying to update all child rows based on a value in the parent row. For instance, lest's say my parent row has a column: "Qty". My child row or nested row has two columns: "Percent", "NewQty". When I update my "Qty" it calculates and updates my "NewQty" for each nested/child row. The calculation would simply be "Qty" * "Percent". I currently have this working using the OnBatchEditValueChanged event using the code below:
var
row = args.get_row();
var
editorValue = args.get_editorValue();
var
batchManager = sender.get_batchEditingManager();
var
dataItem = $find(row.id);
if
(dataItem.get_nestedViews().length > 0) {
var
nestedView = dataItem.get_nestedViews()[0];
var
nestedDataItems = nestedView.get_dataItems();
for
(
var
i = 0; i < nestedDataItems.length; i++) {
var
percent = batchManager.getCellValue(nestedDataItems[i].get_cell(
"Percent"
));
var
newQtyId = nestedDataItems[i].get_cell(
"newQty"
);
var
newQty = editorValue * percent;
batchManager.changeCellValue(newQtyId, newQty);
}
}
This loops through my nested view and and updates each row and cell with the calculated value. This seems to work great, however if I change my "Qty" value back to it's original value, for instance if it was set to 100 then set to 200 then back to 100, it will only update the first nested/child row but not any row after that. It's like it doesn't allow you to edit those cells when the original value is changed back.
I'm not sure if this is a bug or the way it is supposed to be. Or if I am just doing it the wrong way. Any help on this would be great.
Thanks,
Tony
Hi
I have a problem with user control which contains RadGrid. When used on modal popup extender displayed over aspx page, everything works. But, when control containing RadGrid is shown on modal popup which is on top of another modal popup, grid rows are hidden.
Grid i populated with List<>, successfully bound (on button click). Header, footer, page slider, total rows and page number are shown as usual.
After inspection with developer tools, I found out that the rows are there (with TGridItemStyle class), but with inline CSS attribute display set to none. Also, header grid has margin-right set to 17px (I saw that some users had problem with that margin reserved for scroll bar). Changing display attribute to (in example) inline or block shows rows. Also, if I set ItemStyle in markup to some class which defines display as inline !important, rows will be shown. However, cells are not same size in all the rows.
I have tried setting visibility on client side (I have used set_visible(true) on RowCreated and RowDataBound events) and even tried to cancel RowHiding event, but nothing worked. Events are normally fired, properties were set, but the rows still weren't displayed.
And, of course, I have run out of ideas... So, does anyone have some hints, ideas or (ideally) solution to this behavior? Any help or suggestion is appreciated.
Thanks in advance.
I have aspx page that use a Radgrid to display list of records,
During Editing command of the record, I am loading dynamically usercontrol "Record_Details.ascx" to display the record details using another Radgrid control "Record_Grid".
For that I am using OnNeedDataSource="RecoredRadGrid_OnNeedDataSource" event handler to load Record_Grid inside the usercontrol by passing the record ID from the RadGrid on the aspx page,
an error message is showing :"The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases"
Stack Trace:
[HttpException (0x80004005): The control collection cannot be modified during DataBind, Init, Load, PreRender or Unload phases.]
System.Web.UI.ControlCollection.Add(Control child) +11827274
Telerik.Web.UI.RadAjaxControl.CreateUpdatePanel(Control initiator, String eventName, Control updated, UpdatePanelRenderMode panelRenderMode, Unit panelHeight, String panelCssClass) +1935
Telerik.Web.UI.RadAjaxControl.OnPagePreRender(Object sender, EventArgs e) +3883
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnPreRender(EventArgs e) +11897165
System.Web.UI.Control.PreRenderRecursiveInternal() +107
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7675
I could find solution/workaorund to this issue by removing OnNeedDataSource of "Record_Grid" inside Record_Details.ascx , and load the datasource during ItemDataBound event handler of the Records RadGrid in .aspx page.
My question is why I am not able to use "OnNeedDataSource="RecoredRadGrid_OnNeedDataSource" to load the "Record_Grid" data from inside the Usercontrol, and error thrown each time I used it.
Hi,
The following technique we are using for Eg RadCombobox for sending an additional parameter to the call back function
Why is this not working for the ImageManager ClientCallbackFunction?
imageManager.ClientCallbackFunction = "function(sender, args){ImageManagerFunction(sender, args, 'NL');}"
Marc
Hi,
I have a RadGrid with 2 DetailTables. Events inside a Detail Table are not firing for the first time, but it is firing for second attempt.
Please find below the issues i am facing:
1) Check box in 1st Detail View is not hitting OnCheckedChanged for the first attempt, but postback is happening and OnItemDataBound event is getting triggered. OnCheckedChanged event is firing for the second attempt
2) OnTextChanged of RadNumericTextBox in 2nd Detail View is not firing for the first attempt, but postback is happening and OnItemDataBound event is getting triggered. it is firing in second attempt.
<telerik:RadGrid ID="rGrid" runat="server" OnNeedDataSource="rGrid_NeedDataSource" RenderMode="Lightweight"
GridLines="None" OnPreRender="rGrid_PreRender" OnItemDataBound="rGrid_ItemDataBound"
OnDetailTableDataBind="rGrid_DetailTableDataBind" OnDeleteCommand="rGrid_DeleteCommand" OnItemCommand="rGrid_ItemCommand">
<MasterTableView AutoGenerateColumns="false" DataKeyNames="Id" ShowFooter="true" Name="Master" HierarchyLoadMode="Client" RetainExpandStateOnRebind="true" HorizontalAlign="Right">
<DetailTables>
<telerik:GridTableView DataKeyNames="EventDesc" HorizontalAlign="Left" Name="DetailTableView" Width="105%" AutoGenerateColumns="false" ShowHeader="false" HierarchyLoadMode="Client" CssClass="inner_grid" RetainExpandStateOnRebind="true">
<DetailTables>
<telerik:GridTableView Width="100%" HorizontalAlign="Right" AutoGenerateColumns="false" ShowHeader="true" NoDetailRecordsText="No invoice recorded" Name="DetailTable1" RetainExpandStateOnRebind="true">
<Columns>
<telerik:GridTemplateColumn HeaderText="Amount" HeaderStyle-Width="126px">
<ItemTemplate>
<telerik:RadNumericTextBox ID="rtxtAmount" runat="server" MinValue="0" DbValue='<%# Eval("Amount") %>' Width="95px"
OnTextChanged="rtxtAmount" AutoPostBack="true" >
<IncrementSettings InterceptMouseWheel="false" InterceptArrowKeys="false" />
</telerik:RadNumericTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridTemplateColumn UniqueName="chkBox" HeaderStyle-Width="15px">
<ItemTemplate>
<asp:CheckBox ID="CheckBoxSubGid" runat="server" OnCheckedChanged="CheckBoxSubGid_CheckedChanged" AutoPostBack="true" />
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridTemplateColumn DataField="EventDesc" HeaderText="description" UniqueName="description" >
<ItemTemplate>
<telerik:RadTextBox ID="rtxtdescription" runat="server" TextMode="MultiLine" Text='<%# Eval("description") %>' > </telerik:RadTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
</telerik:RadGrid>
Could you please let me know the solution ?
Thanks in advance!!
Regards,
Puru
Hi
How to use select all checkbox in Telerik Gridview and Filter option for unselected item
How to implement a telerik grid having filter control and select all option(Check Box)..... The purpose is to filter grid row items from a list and then to cancel the selection of the filtered result set.
HI
I have a Page containing Telerik Grid view with Filter Control. When I use the filter control after selecting all values using checkbox (for selected all item), the selected checkboxes gets cleared after running filter. How to Retain the selected Telerik Grid row Item .
Hi
I have a Page containing Telerik Grid view with Filter Control. When I use the filter control after selecting all values using checkbox (for selected all item), the selected checkboxes gets cleared after running filter. How to Retain the selected Telerik Grid row Item .
Hello,
I have a button , ajaxpanel and grid . On button Click a for loop is working. Data is binding when for loop ends. But I want to update grid when each data added to searchlist. What I am not doing?
Thanks
List<SearchResult> results;
protected void RadButton1_Click(object sender, EventArgs e)
{
results=new List<SearchResult> ();
for (int i = 0; i < 100; i++)
{
SearchResult sr=new SearchResult();
// Here call a web service and getdata.
sr.ServiceName=services[i];
sr.Data=webresponse.Data;
results.add(sr);
Radgrid1.datasource=results;
Radgrid1.databind();
}
}
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadButton1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" />
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="RadGrid1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGrid1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>