How To Customize The Grid Caption

9 posts, 0 answers
  1. alaa ezzat
    alaa  ezzat avatar
    1 posts
    Member since:
    Nov 2009

    Posted 25 Nov 2009 Link to this post

    Hi All ,
    I need to customize the caption of the rad grid , but can find any way , to do it , the best thing i was Able to reach was customizing the header , is there any way to handle this matter and customize the caption or this is a limitation in the tool
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 25 Nov 2009 Link to this post

    Hi,

    You can try out the following css settings to achieve the required:
    css:
    .rgCaption 
       {    
          color:Blue; 
          background-color:Yellow; 
          font:bold 20pt Arial Narrow; 
       } 

    Hope this helps..
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. alaa ezzat
    alaa ezzat avatar
    4 posts
    Member since:
    Sep 2009

    Posted 25 Nov 2009 Link to this post

    Dear Princy ,

    thats great and it did what i need ,

    but there is a little problem with this way , i want to assign a different style to detail view in master detail grid , with this way i will not be able to do this , can u help me with a work around please ???


    thanks

  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 26 Nov 2009 Link to this post

    Hello,

    You can try out the following code to set a different style for the detailtableview caption:
    aspx:
    <telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" runat="server"
        <MasterTableView CssClass="MasterClass" Caption="Master Caption Text" DataSourceID="SqlDataSource1" Name="Master"
             <DetailTables> 
                 <telerik:GridTableView CssClass="DetailClass" Caption="Detail Caption Text" DataSourceID="SqlDataSource1" Name="Detail" runat="server">   
                    .... 

    css:
    .MasterClass .rgCaption 
       {    
          color: Blue; 
          background-color:Yellow; 
          font:bold 24pt Arial Narrow; 
       } 
    .DetailClass .rgCaption 
       { 
          color: Yellow; 
          background-color:Violet; 
          font:bold 18pt Arial Narrow; 
       } 

    Regards
    Princy.
  6. alaa ezzat
    alaa ezzat avatar
    4 posts
    Member since:
    Sep 2009

    Posted 30 Nov 2009 Link to this post

    Princy The Prince

    Thanks alot my friend

    yes it did the job
  7. Chummy
    Chummy avatar
    9 posts
    Member since:
    Aug 2011

    Posted 23 Nov 2011 Link to this post

    Hi Princy, we are using the RAD Grid to display information in SharePoint. Is there a way to customize the Grid "Title" or "Caption" and add an icon to it? Similar to a SharePoint Web Part Header.

    Many thanks
    Gary
    gary@sharepoint360.com
  8. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 25 Nov 2011 Link to this post

    Hello Chummy,

    There is nothing SP specific in this case. You could use the previously provided by Princy approach to achieve the required functionality.

    All the best,
    Maria Ilieva
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
  9. Kulveer
    Kulveer avatar
    3 posts
    Member since:
    Apr 2016

    Posted 04 Nov in reply to Maria Ilieva Link to this post

    Princy didn't mention how to add image to caption. 

    Can you let me know how to add an image after the radgrid caption text and also display tooltip on the image

    Thanks,

    SS

  10. Eyup
    Admin
    Eyup avatar
    3014 posts

    Posted 09 Nov Link to this post

    Hello,

    I've already replied to your query in your ticket with ID: 1072526. I suggest that we continue our conversation on the mentioned thread.

    Regards,
    Eyup
    Telerik by Progress
    Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017