HTML Table of RadGrid MasterTableView force to width to 100%

7 posts, 1 answers
  1. Stephane
    Stephane avatar
    27 posts
    Member since:
    Mar 2009

    Posted 29 Jul 2011 Link to this post

    Hi,
    In my radgrid when I no data the HTM table element of mastertableview don't take the whole width.
    I try to force by CSS, javascript, but its size is overriden.

    Could you give me an issue to force the width of the html table?
    <NoRecordsTemplate>
        <div style="text-align: center; width: 100%;">
            <asp:Label Text="<%$Resources:RadGridLib,grid_client_master_no_records %>" ID="LabelNoDoc" runat="server" />
         </div>
    </NoRecordsTemplate>

    I also try to implemente the client events OnMasterTableViewCreating and OnMasterTableViewCreated, but no succes!

    Bye.
  2. Answer
    Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 04 Aug 2011 Link to this post

    Hello Stephane,

    I tried to replicate the described problem in a sample project, but to no avail. Can you please check it out and let me know what is the difference  in your case and what step to follow in order to be able to replicate it locally.

    Additionally, can you also specify the browser version you are using?

    Regards,
    Pavlina
    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. Stephane
    Stephane avatar
    27 posts
    Member since:
    Mar 2009

    Posted 04 Aug 2011 Link to this post

    Hi,
    I will try your projet this afternoon, I will come back to you as soon as possible.

    Bye,
    Stéphane.
  5. Stephane
    Stephane avatar
    27 posts
    Member since:
    Mar 2009

    Posted 05 Aug 2011 Link to this post

    Hi,
    I have just tested youe issus, it's ok for me.
    Thanks a lot.

    But When I resize the RadPane which contains the grid, the div is not resized.
    I must do it in the client event of radpage ?
  6. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 05 Aug 2011 Link to this post

    Hi Stephen,

    Please try setting MasterTableView Width property to 100% and see if the problem persists. 

    Additionally, I recommend that you check out the online example below:
    http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandsplitterresizing/defaultcs.aspx?product=grid

    Greetings,
    Pavlina
    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.

  7. Deepak
    Deepak avatar
    2 posts
    Member since:
    Jun 2014

    Posted 04 Jun 2014 Link to this post

    Hi,

    I am facing a similar issue.

    Using a Radgrid which has the MasterTableView width set to 100%. In all browsers, the the outer most table with class="rgMasterTable rgClipCells" has the width=100%, however in IE 11, when the grid is initially empty and is populated via ajax, the width gets calculated based on the browser size, this is just for the datacolumns, the header widths seems to be fine, but if the grid is bound with data on pageload, the width is 100%.

    Not sure if I am missing any configuration.

    Thanks in advance,



    Deepak
  8. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 06 Jun 2014 Link to this post

    Hello Deepak,

    Can you provide a live URL which demonstrates the described issue? We will inspect it locally and will get back to you with additional information/suggestion.

    Regards,
    Pavlina
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

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