Change on Tab Click

6 posts, 0 answers
  1. Herman
    Herman avatar
    28 posts
    Member since:
    Jun 2011

    Posted 29 Jul 2011 Link to this post


    Please help

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

  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 29 Jul 2011 Link to this post

    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.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Herman
    Herman avatar
    28 posts
    Member since:
    Jun 2011

    Posted 01 Aug 2011 Link to this post

    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
  5. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 04 Aug 2011 Link to this post

    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.

  6. Herman
    Herman avatar
    28 posts
    Member since:
    Jun 2011

    Posted 04 Aug 2011 Link to this post

    There is no error the update to sql database just don't happed all the other controls update exept for radedit
  7. Rumen
    Admin
    Rumen avatar
    12851 posts

    Posted 09 Aug 2011 Link to this post

    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.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017