Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
118 views
I have radgrid that calles the objectdatasource which calls the data access (DA) to populate the radgrid.
Radgrid has edit form template to update and insert the records.

1.  radgrid is open in edit form ..
2. User enters the NEW values and click the update button.
3. DA is called to update the database.
4. DA throws the exception that business logic rejected the update process ...
5. DA is automatically called to get the data again and  keeps the radgrid in edit mode...  and controls are populated with the original values this results in loss of NEW values entered by the user...

My understanding is that after step 4...  DA should not be called again to populate the edit form with original values.. Rather it should retain the NEW values and give the user a chance to modify these to try again the update process....



My code radgrid1_ItemUpdated is keeping the radgrid open in edit form template but the NEW values are lost as radgrid goes back to the DA to get the original data.  Where as this round trip to database is USELESS...

 

protected void radgrid1_ItemUpdated(object source, GridUpdatedEventArgs e)

 

{

 

if (e.Exception != null)

 

{

e.KeepInEditMode =

true;

 

e.ExceptionHandled =

true;

 


WHY radgrid goes to step 5.. How can i stop it... 

Daniel
Telerik team
 answered on 06 Dec 2011
1 answer
86 views
I have installed the asp.net ajax controls and their not working i did a bit of digging as telrik suggested and got this firebug log 

Sorry I was off for a few days here is the error from firebug

"NetworkError: 404 Not Found - http://localhost:49573/Account/modules/cms/js/libs/modernizr-2.0.6.min.js"
modern....min.js
"NetworkError: 404 Not Found - http://localhost:49573/Telerik.Web.UI.WebResource.axd?compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3ae59a902c%3bTelerik.Web.UI.Skins%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a285462cf-2c25-4a05-801f-e45b915bd1b6%3aac66bdd8%3bTelerik.Web.UI%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3a92753c09%3bTelerik.Web.UI.Skins%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a285462cf-2c25-4a05-801f-e45b915bd1b6%3a311bfd78%3bTelerik.Web.UI%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3aaac1aeb7%3bTelerik.Web.UI.Skins%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a285462cf-2c25-4a05-801f-e45b915bd1b6%3aa07539a3%3bTelerik.Web.UI%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3ac86a4a06%3bTelerik.Web.UI.Skins%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a285462cf-2c25-4a05-801f-e45b915bd1b6%3a648927c0"
Teleri...48927c0
"NetworkError: 404 Not Found - http://localhost:49573/WebResource.axd?d=iL2Ghm8pdzYzqSLgWdlnq9d33UQ-Kt4BmCBjqtckaMj3vSZjHhJVXEkt5H-kaiTWbSu8w7QJ08xAX19NHKL1zgjEq8xSfTzSxyWoISXgLb41&t=634534317011483291"
WebRes...1483291
"NetworkError: 404 Not Found - http://localhost:49573/Scripts/System.Web.Extensions/4.0.0.0/4.0.30319.237/MicrosoftAjaxWebForms.js"
Micros...orms.js
"NetworkError: 404 Not Found - http://localhost:49573/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=content_RadScriptManager2_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a63b115ed%3a24ee1bba%3a874f8ea2%3a1569bb5f%3adc7e0bd%3a8547b8b2%3a30f1f089%3af46195d3%3a19620875%3a490a9d4e%3a7c926187%3a8674cba1%3ab7778d6c%3ac08e9f8a%3aa51ee93e%3a59462f1"
Teleri...59462f1
"NetworkError: 404 Not Found - http://localhost:49573/Account/modules/cms/js/libs/modernizr-2.0.6.min.js"
modern....min.js
"NetworkError: 404 Not Found - http://localhost:49573/Telerik.Web.UI.WebResource.axd?compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3ae59a902c%3bTelerik.Web.UI.Skins%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a285462cf-2c25-4a05-801f-e45b915bd1b6%3aac66bdd8%3bTelerik.Web.UI%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3a92753c09%3bTelerik.Web.UI.Skins%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a285462cf-2c25-4a05-801f-e45b915bd1b6%3a311bfd78%3bTelerik.Web.UI%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3aaac1aeb7%3bTelerik.Web.UI.Skins%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a285462cf-2c25-4a05-801f-e45b915bd1b6%3aa07539a3%3bTelerik.Web.UI%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3ac86a4a06%3bTelerik.Web.UI.Skins%2c+Version%3d2011.3.1115.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a285462cf-2c25-4a05-801f-e45b915bd1b6%3a648927c0"
Teleri...48927c0
"NetworkError: 404 Not Found - http://localhost:49573/WebResource.axd?d=iL2Ghm8pdzYzqSLgWdlnq9d33UQ-Kt4BmCBjqtckaMj3vSZjHhJVXEkt5H-kaiTWbSu8w7QJ08xAX19NHKL1zgjEq8xSfTzSxyWoISXgLb41&t=634534317011483291"
WebRes...1483291
"NetworkError: 404 Not Found - http://localhost:49573/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=content_RadScriptManager2_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bTelerik.Web.UI%3aen-US%3acf16ab29-be3a-4761-9f9e-2c05ea68ff51%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a63b115ed%3a24ee1bba%3a874f8ea2%3a1569bb5f%3adc7e0bd%3a8547b8b2%3a30f1f089%3af46195d3%3a19620875%3a490a9d4e%3a7c926187%3a8674cba1%3ab7778d6c%3ac08e9f8a%3aa51ee93e%3a59462f1"
Teleri...59462f1
"NetworkError: 404 Not Found - http://localhost:49573/Scripts/System.Web.Extensions/4.0.0.0/4.0.30319.237/MicrosoftAjaxWebForms.js"
Micros...orms.js
http://localhost:49573/Scripts/System.Web.Extensions/4.0.0.0/4.0.30319.237/MicrosoftAjaxWebForms.js"


I have all the dlls in the bin directory as suggested and have used telerik controls before what could the issue be i have included the error log from firebug above
Bozhidar
Telerik team
 answered on 06 Dec 2011
1 answer
80 views
I observe my pages are weighing more than 143 K of viewstate because of telerik controls (grid/tabstrip). Is there a way the telerik controls can work with ViewState disabled for the page? What is traded off in the process?
Sebastian
Telerik team
 answered on 06 Dec 2011
1 answer
101 views
Hi...all

I am using Radgrid.In one of column in i have drodown.Depeding on the selection in the dropdown ,the values in other column(I used text box inside the column to dispaly integer values ,these integer values change  with drop down selection).I want to find the sum of integer ,as soosn as the values in the text box are changed.how to do it.

Thanks
Prencia
Andrey
Telerik team
 answered on 06 Dec 2011
5 answers
122 views
My boss wants to do recurrence handling his way which is having an actual DB entry for each appointment. And they are being grouped by some common field in the DB. When those appointments are loaded I check for that field and if it's not 0 then I know that this is a recurrent appointment so in AppointmentDataBound event i do the following:

If row.Item(10) = 0 Then
    e.Appointment.RecurrenceState = RecurrenceState.NotRecurring
Else
    e.Appointment.RecurrenceState = RecurrenceState.Occurrence
End If

But when I click on the delete icon the OccurrenceDelete event does not fire. What should I do to fix it? Thanks


Peter
Telerik team
 answered on 06 Dec 2011
1 answer
237 views
Hi,

I have a requirement from our clients. They would like to have up and down buttons ( like you have in list box) to move items up and down in a Rad Grid. They don'T want to use drag and drop functionality already provided with the Rad Grid. Is there a way that I can achieve this with Grid?


Thanks
Andrey
Telerik team
 answered on 06 Dec 2011
0 answers
81 views
Hi Friends,

Here is my scenario,

I have one .aspx page which have one user control and this usercontrol have one RadListView whose itemtemplate is one usercontrol in which we have one label and RadComboBox [RadComboBox creted dynamically in code behind].

I need to gets all the ComboBox inside RadListView using javascript/jQuery.

Please guide me.

Thanks,
Jawahar
jawahar
Top achievements
Rank 1
 asked on 06 Dec 2011
2 answers
346 views
I am building a webpage that just contains a Radtoolbar. When loaded it will be passed QueryString parameters. I would like to pass those parameters in the NavigateUrl property, but how?

Thanks
 
Kate
Telerik team
 answered on 06 Dec 2011
1 answer
75 views
Hi,

  Can you please give me some demo links to implement Rad scheduler in MVC 3.0

Thanks,
Maddela
Nikolay Tsenkov
Telerik team
 answered on 06 Dec 2011
1 answer
119 views
Hi
currently i'm designing reports using Telerik Reporting in layered architecture.every method  related to this  report returns List collections.
But I'm using Datatables in reports,so that i encounterd this error ,
Unable to cast object of type 'System.Collections.Generic.List`1[LAEMIV3.Business.Entities._00001.User]' to type 'System.Data.DataTable'.
can u give me a sample for how to design a chart using grouping in telerik reporting.

 

 

private void groupHeaderSection1_ItemDataBinding(object sender, EventArgs e)

{

users = userProcess.getSalaryDetails(); 

//seriesMapping.ItemMappings.Add(new ItemMapping("Salary", DataPointMember.YValue, ChartAggregateFunction.Sum));  

Telerik.Reporting.Processing.

GroupSection GroupHeaderSection = (Telerik.Reporting.Processing.GroupSection)sender;

 Telerik.Reporting.Processing.Report report = GroupHeaderSection.Report;

 //var group = "jan";

 var group = GroupHeaderSection.DataObject["Month"];  

string StrExp = null;  

StrExp = " Month =' " + group + "' ";  

DataTable table = (DataTable)report.DataSource; 

DataRow[] rows = table.Select(string.Format("Month", group)); 

string ChartTitle = null;  

string XLable = null;  

string YLable = null;  

chart1.ChartTitle.Appearance.Position.AlignedPosition = Telerik.Reporting.Charting.Styles.AlignedPositions.Top; 

Telerik.Reporting.Processing.Chart HourChart = (Telerik.Reporting.Processing.Chart)GroupHeaderSection.ChildElements.Find("chart1", true)[0];  

//Telerik.Reporting.Processing.Chart HourChart = GroupHeaderSection.ChildElements.Find("Chart_Standard_Email_HourlyProd", true)(0); 

Telerik.Reporting.

Chart ChartDef = (Telerik.Reporting.Chart)HourChart.ItemDefinition; 

ChartDef.Series.Clear(); 

// DataRow drrow = default(DataRow);  

chart1.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Reporting.Charting.Styles.

ChartValueFormat.General;

 

chart1.PlotArea.XAxis.Appearance.ValueFormat = Telerik.Reporting.Charting.Styles.

 

ChartValueFormat.General;

 

ChartDef.PlotArea.XAxis.Clear();

ChartDef.PlotArea.XAxis.AutoScale =

 

false;

 

XLable =

 

"Month";

 

YLable =

 

"Salary";

 

chart1.PlotArea.XAxis.AxisLabel.TextBlock.Text = XLable;

chart1.PlotArea.XAxis.AxisLabel.Visible =

 

true;

 

chart1.PlotArea.YAxis.AxisLabel.TextBlock.Text = YLable;

chart1.PlotArea.YAxis.AxisLabel.Visible =

 

true;

 

 

Telerik.Reporting.Charting.

 

ChartSeriesItem SeriesItem = new Telerik.Reporting.Charting.ChartSeriesItem();

 

Telerik.Reporting.Charting.

 

ChartSeriesItem SeriesItem1 = new Telerik.Reporting.Charting.ChartSeriesItem();

 

 

 

 

users = userProcess.getSalaryDetails();

 

 

foreach (DataRow row in rows)

 

{

 

 

//Telerik.Reporting.Charting.ChartSeriesItem SeriesItem = new Telerik.Reporting.Charting.ChartSeriesItem();

 

 

 

//Telerik.Reporting.Charting.ChartSeriesItem SeriesItem1 = new Telerik.Reporting.Charting.ChartSeriesItem();

 

SeriesItem.YValue =

 

Convert.ToDouble(row["Month"]);

 

ChartSeries.Items.Add(SeriesItem);

ChartSeries.Name =

 

"Month";

 

SeriesItem.Label.TextBlock.Appearance.TextProperties.Color = System.Drawing.

 

Color.Black;

 

ChartSeries.Appearance.FillStyle.MainColor =

 

Color.Green;

 

ChartSeries.Appearance.FillStyle.SecondColor =

 

Color.Green;

 

ChartSeries.Type = Telerik.Reporting.Charting.

 

ChartSeriesType.Bar;

 

SeriesItem1.YValue =

 

Convert.ToDouble(row["Salary"]);

 

ChartSeries1.Items.Add(SeriesItem1);

ChartSeries1.Name =

 

"Salary";

 

SeriesItem1.Label.TextBlock.Appearance.TextProperties.Color = System.Drawing.

 

Color.Black;

 

ChartSeries1.Appearance.FillStyle.MainColor =

 

Color.DarkRed;

 

ChartSeries1.Appearance.FillStyle.SecondColor =

 

Color.DarkRed;

 

ChartSeries1.Type = Telerik.Reporting.Charting.

 

ChartSeriesType.Bar;

 

}

ChartDef.PlotArea.XAxis.AutoScale =

 

false;

 

ChartDef.PlotArea.XAxis.AutoShrink =

 

false;

 

chart1.PlotArea.YAxis.AxisMode = Telerik.Reporting.Charting.

 

ChartYAxisMode.Extended;

 

ChartDef.Series.AddRange(

 

new Telerik.Reporting.Charting.ChartSeries[] { ChartSeries });

 

ChartDef.Series.AddRange(

 

new Telerik.Reporting.Charting.ChartSeries[] { ChartSeries1 });

 

}

Steve
Telerik team
 answered on 06 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?