Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Making Grid Responsive Not Working

$
0
0

I made the changes recommended by the documentation you referred me to and the problem still exists.  I have add the new .aspx code plus the new code behind.  I think you folks have a true bug here unless you can provide me with specific changes I can make that will correct this.

First, I have attached 2 additional screen captures that show what happens when it is wide, and what happens when it goes narrow (responsive).

Second, my .aspx file source code for the grid placeholder is immediately following and then the code behind source follows that.

 If you should have specific recommendations you can make instead of just pointing me at documentation, I would be most interested in seeing them.

<asp:PlaceHolderid="PlaceHolder1"runat="server">
     
</asp:PlaceHolder>

 

protectedvoidPage_Init(objectsender, System.EventArgs e)
{
    if(!Page.IsPostBack)
    {
        this.CreateNew.Enabled = CheckSecRule(66);
        GridHyperLinkColumn hypercolumn = null;
        GridBoundColumn boundcolumn = null;
        GridTemplateColumn tempcolumn = null;
 
        RadGrid RadGrid1 = newRadGrid();
 
        RadGrid1.EnableViewState = false;
        RadGrid1.NeedDataSource += newTelerik.Web.UI.GridNeedDataSourceEventHandler(RadGrid1_NeedDataSource);
        InitGrid(refRadGrid1);
        RadGrid1.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.None;
        RadGrid1.MasterTableView.DataKeyNames = newstring[] { "MAB"};
 
        stringtemplateColumnName = "Edit";
        GridTemplateColumn templateColumn = newGridTemplateColumn();
        templateColumn.ItemTemplate = newMyTemplate(templateColumnName);
        templateColumn.AllowFiltering = false;
        templateColumn.HeaderText = "Edit";
        RadGrid1.MasterTableView.Columns.Add(templateColumn);
 
        GridBoundColumn boundColumn1 = newGridBoundColumn();
        boundColumn1.DataField = "MABName";
        boundColumn1.UniqueName = "MABName1";
        boundColumn1.HeaderText = "Master Agent Billing Set1";
        boundColumn1.FilterControlWidth = Unit.Pixel(50);
        RadGrid1.MasterTableView.Columns.Add(boundColumn1);
 
        boundColumn1 = newGridBoundColumn();
        boundColumn1.DataField = "MABName";
        boundColumn1.UniqueName = "MABName2";
        boundColumn1.HeaderText = "Master Agent Billing Set2";
        boundColumn1.AllowFiltering = false;
        boundColumn1.HeaderStyle.CssClass = "mediumgridcol";
        boundColumn1.ItemStyle.CssClass = "mediumgridcol";
        boundColumn1.FooterStyle.CssClass = "mediumgridcol";
        RadGrid1.MasterTableView.Columns.Add(boundColumn1);
 
        boundColumn1 = newGridBoundColumn();
        boundColumn1.DataField = "MABName";
        boundColumn1.UniqueName = "MABName3";
        boundColumn1.HeaderText = "Master Agent Billing Set3";
        boundColumn1.AllowFiltering = false;
        boundColumn1.HeaderStyle.CssClass = "mediumgridcol";
        boundColumn1.ItemStyle.CssClass = "mediumgridcol";
        boundColumn1.FooterStyle.CssClass = "mediumgridcol";
        RadGrid1.MasterTableView.Columns.Add(boundColumn1);
 
        templateColumnName = "Delete";
        templateColumn = newGridTemplateColumn();
        templateColumn.ItemTemplate = newMyTemplate2(templateColumnName);
        templateColumn.AllowFiltering = false;
        templateColumn.HeaderText = "Delete";
        RadGrid1.MasterTableView.Columns.Add(templateColumn);
 
        RadGrid1.AllowPaging = Convert.ToBoolean(Session["ShowListsWithPaging"]);
        PlaceHolder1.Controls.Add(RadGrid1);
    }
}

 

 


Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>