5 Answers, 1 is accepted
0
Hi Herman,
You can use one of the client-side TabCliking/TabClicked events. Please see this demo for more info and an example.
I hope this helps.
Regards,
Simon
the Telerik team
You can use one of the client-side TabCliking/TabClicked events. Please see this demo for more info and an example.
I hope this helps.
Regards,
Simon
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Herman
Top achievements
Rank 1
answered on 01 Aug 2011, 01:36 PM
I can recall the radeditor data and try to update the changes like this
DBCmd = new SqlCommand("UPDATE [Catalogue_Hierarchy_Structure] SET [title] = @title , [Legal_Description] = @Legal_Description , [Sales_Description] = @Sales_Description where [Catalogue_StructureID] = '" + ddl_itemID.SelectedValue + "'", CN.sqlConn);
foreach (RepeaterItem item in title.Items)
{
TextBox txtQty = (TextBox)item.FindControl("titletxt");
if (txtQty != null)
{
DBCmd.Parameters.Add("@title", SqlDbType.NVarChar).Value = txtQty.Text;
foreach (RepeaterItem item12 in txt_legal_description.Items)
{
TextBox txtedit = (TextBox)item12.FindControl("txt_legal_description1");
DBCmd.Parameters.Add("Legal_Description", SqlDbType.NVarChar).Value = txtedit.Text;
}
----THIS PART DONT WORK
foreach (RepeaterItem item1 in radeditor.Items)
{
RadEditor txtedit1 = (RadEditor)item1.FindControl("editor");
DBCmd.Parameters.Add("@Sales_Description", SqlDbType.NVarChar).Value = txtedit1.Content;
}
-----
DBCmd.ExecuteNonQuery();
the update work but not the bold area any idee
DBCmd = new SqlCommand("UPDATE [Catalogue_Hierarchy_Structure] SET [title] = @title , [Legal_Description] = @Legal_Description , [Sales_Description] = @Sales_Description where [Catalogue_StructureID] = '" + ddl_itemID.SelectedValue + "'", CN.sqlConn);
foreach (RepeaterItem item in title.Items)
{
TextBox txtQty = (TextBox)item.FindControl("titletxt");
if (txtQty != null)
{
DBCmd.Parameters.Add("@title", SqlDbType.NVarChar).Value = txtQty.Text;
foreach (RepeaterItem item12 in txt_legal_description.Items)
{
TextBox txtedit = (TextBox)item12.FindControl("txt_legal_description1");
DBCmd.Parameters.Add("Legal_Description", SqlDbType.NVarChar).Value = txtedit.Text;
}
----THIS PART DONT WORK
foreach (RepeaterItem item1 in radeditor.Items)
{
RadEditor txtedit1 = (RadEditor)item1.FindControl("editor");
DBCmd.Parameters.Add("@Sales_Description", SqlDbType.NVarChar).Value = txtedit1.Content;
}
-----
DBCmd.ExecuteNonQuery();
the update work but not the bold area any idee
0
Hi Herman,
Could you please send the error that you get when the code in the bold area is executed?
Each line of the highlighted code does different task, e.g.
the first one loops through the repeater items, the second one searches for the editor and the last one saves the editor's value. Which line of the code is causing the error and is not working as expected?
Best regards,
Rumen
the Telerik team
Could you please send the error that you get when the code in the bold area is executed?
Each line of the highlighted code does different task, e.g.
the first one loops through the repeater items, the second one searches for the editor and the last one saves the editor's value. Which line of the code is causing the error and is not working as expected?
Best regards,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Herman
Top achievements
Rank 1
answered on 04 Aug 2011, 02:00 PM
There is no error the update to sql database just don't happed all the other controls update exept for radedit
0
Hello Herman,
In such case, my recommendation is to try the solution in the following KB article: RadEditor Content Not Saved After Ajax Update in Firefox, Google Chrome and Safari.
Best regards,
Rumen
the Telerik team
In such case, my recommendation is to try the solution in the following KB article: RadEditor Content Not Saved After Ajax Update in Firefox, Google Chrome and Safari.
Best regards,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.