This is a migrated thread and some comments may be shown as answers.

Change on Tab Click

5 Answers 64 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Herman
Top achievements
Rank 1
Herman asked on 29 Jul 2011, 09:34 AM

Please help

I use <div>'s in my asp form and i want the div visiblity to change when i click on the ribbonbartab

5 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 29 Jul 2011, 11:54 AM
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

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
0
Rumen
Telerik team
answered on 04 Aug 2011, 09:18 AM
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

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
Rumen
Telerik team
answered on 09 Aug 2011, 01:54 PM
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

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.

Tags
RibbonBar
Asked by
Herman
Top achievements
Rank 1
Answers by
Simon
Telerik team
Herman
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or