Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
159 views
I have a very simple RadGrid (no filters or edit template) inside a RadAjaxpanel and it renders fine on IE. But on Chrome the column widths are not assigned at all and the whole table expands assuming some random widths for the columns. Here is my grid declaration.
I've also attached how it looks on both IE and Chrome.

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" OnAjaxRequest="RadAjaxPanel1_AjaxRequest">
    <div id="DivDetailGrid" style=" height:210px; display:none">
        <asp:Panel ID="Panel2" runat="server">  
            <telerik:RadGrid ID="SeriesGrid" runat="server" Skin="Gray" EnableViewState="false" AutoGenerateColumns="False" EnableEmbeddedSkins="False" AllowPaging="False" AllowSorting="true" GridLines="None" OnNeedDataSource="SeriesGrid_NeedDataSource" OnItemDataBound="SeriesGrid_ItemDataBound" Height="380px">
                <ClientSettings>
                    <Selecting AllowRowSelect="false" />
                    <Scrolling AllowScroll="true" UseStaticHeaders="true" SaveScrollPosition="false" />
                    <ClientEvents OnGridCreated="detailCreated" />
                </ClientSettings>
                <MasterTableView TableLayout="Fixed" ClientDataKeyNames="Cusip" >
                    <Columns>                                                
                        <telerik:GridBoundColumn DataField="Cusip" HeaderText="Cusip" HeaderStyle-Width="82px" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Links" UniqueName="links" HeaderText="Links" HeaderStyle-Width="62px" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="Coupon" HeaderText="Cpn" HeaderStyle-Width="42px" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="MaturityDate" HeaderText="Stated Maturity" HeaderStyle-Width="92px" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="NextCallDate" HeaderText="Next Call Date" HeaderStyle-Width="92px" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="RefundStat" HeaderText="Refund Stat" HeaderStyle-Width="57px" ></telerik:GridBoundColumn>                                                            
                        <telerik:GridBoundColumn DataField="EffectiveMaturityDate" HeaderText="Effective Maturity" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="muni_issue_yld" HeaderText="Issue Yld" HeaderStyle-Width="58px" ></telerik:GridBoundColumn>                                                            
                        <telerik:GridBoundColumn DataField="spread_to_mmd" HeaderText="Spread to MMD" HeaderStyle-Width="66px"  DataFormatString="{0:N0}" ></telerik:GridBoundColumn>  
                        <telerik:GridBoundColumn DataField="MaturitySize" HeaderText="Maturity Size (000s)" HeaderStyle-Width="82px"  DataFormatString="{0:N0}" ></telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="AMT_OUTSTANDING" HeaderText="Amt Outst (000s)" HeaderStyle-Width="87px" DataFormatString="{0:N0}" ></telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
        </asp:Panel>
    </div>
</telerik:RadAjaxPanel>

Venelin
Telerik team
 answered on 13 Jan 2014
2 answers
102 views
Hi,

I want to show filter on column, but hide column header where it shows column name, Is this possible ?
I added ShowHeader="False", but now filter is also not visible. I want filter only to show.

Regards
Arijit
arijit
Top achievements
Rank 1
 answered on 13 Jan 2014
1 answer
115 views
Hello,

I am having trouble getting my RadGrid to go to 100% height.

The RadGrid is set to 100% and to allowscrolling with a scroll height of 100%.

The RadGrid is inside a Pageview > MultiPage > AjaxPanel > Form > Body > HTML - all of which are 100%.

Am I missing something stupid here? Please help!

Regards, Paul.
Venelin
Telerik team
 answered on 13 Jan 2014
1 answer
58 views
Hi,
I've a grid with filters, groups and pages enabled.
Everythings works perfectly on Visual Studio 2010 but when I publish it or when I try it on my local IIS, filters, groups and pages don't work fine. The grid is refreshed but nothing changed.

This grid is in the first page on my website.
I noticed if I click on my menu "home" and I reload the page grid starts to work.

Thanks


EDIT
I found the solution here
http://www.telerik.com/community/forums/aspnet-ajax/ajax/net-version-problem.aspx
Maria Ilieva
Telerik team
 answered on 13 Jan 2014
4 answers
293 views
Hi,
                  validation on Radlistbox and if list box checkbox not checked show error message on button click.

Thanks,
Rahul
Aneliya Petkova
Telerik team
 answered on 13 Jan 2014
4 answers
212 views
Hi,

I know this is kinda a dumb question and maybe is more related to web development than related to telerik but the question is simple...
I have a WebUserControl or better a description an EditUserControl which is called/referenced from RadGrid everytime someone executes de Edit Command on the RadGrid.
This Radgrid is on page controlled by a Master Page which have three simple basic content place holder (head,body,footer), normally i will just add jquery to the script manager (or this case the radscriptmanager) and start developing normally with jquery.
I know and have read how to use jquery by using the self-calling ($telerik.$) anonymous function but i can fire-up any event, even try to do a simple alert and it wont work, my question is  simpler...

How can i execute javascript/jquery inside a WebUserControl.

Regards
Radoslav
Telerik team
 answered on 13 Jan 2014
1 answer
384 views
I would like to know how to access the textbox element in Edit Template. 

Consider I am having 2 Text Boxes and a Button in Edit Template. OnClick of the Button I have to get the text value from one textbox and have to do the some logic on the back end and would give result on the other Textbox. Here my problem is I couldn't access the element id of the TextBox in the back end. Even Page.FindControls("txtboxid") (during the edit mode)  returns a null and even I couldn't access the clientID of the control in the javascript as it returns a compilation error.

I hope you understand my query and let me know what is the solution for this,
Princy
Top achievements
Rank 2
 answered on 13 Jan 2014
4 answers
155 views
When I scroll to a raddock from javascript the dock is collapsed and can't be expanded.
I tried all these functions (window.location.href, scroll(" "), $(" ").scroll())
but the problem resist only with Lightweight render.
The only solution is <a  href="#Dock_ID" > but I really need it as javascript command because it's a general function not static ID's in <a> tags



Tarek
Top achievements
Rank 1
 answered on 13 Jan 2014
1 answer
178 views
I try to disable radgrid after click on save button of radtoolbar as in this link
http://www.telerik.com/help/aspnet-ajax/grid-enabled-conventions.html
 but it is not working
any help .......... thanks !
Shinu
Top achievements
Rank 2
 answered on 13 Jan 2014
4 answers
154 views

Hello, I am trying to follow this sample

http://www.telerik.com/help/aspnet-ajax/grid-programmatic-creation.html

to create a template grid column in a grid that in my case is contained inside a CompositeControl


First attempt, using the control OnInit event

protected override void OnInit(EventArgs e)
{
base.OnInit(e);
EnsureChildControls();
 
…
 
if (!Page.IsPostBack)
{
    var boundColumn = new GridBoundColumn();
  grid.MasterTableView.Columns.Add(boundColumn);
    boundColumn.DataField = "MyColumn";
GridTemplateColumn templateColumn = new GridTemplateColumn();
grid.MasterTableView.Columns.Add(templateColumn);
templateColumn.ItemTemplate = new    MyTemplate(templateColumnName);
}
}

Result: the InstantiateIn method of the template is called only the first time, but in postbacks not.

Second attempt: subscribing to the page Init event

protected override void OnInit(EventArgs e)
{
base.OnInit(e);
EnsureChildControls();
Page.Init += PageInit;
 
…
 
private void PageInit(object sender, EventArgs e)
{

var boundColumn = new GridBoundColumn();
  boundColumn.DataField = "MyColumn";

grid.MasterTableView.Columns.Add(boundColumn);
 
  GridTemplateColumn templateColumn =
new GridTemplateColumn();
templateColumn.ItemTemplate = new    MyTemplate(templateColumnName);
grid.MasterTableView.Columns.Add(templateColumn);

Result: the template column is correctly created, but the bound one is duplicated on every postback

What's the correct way to programmatically create a template column in a composite control?
Thanks
Igor
Top achievements
Rank 2
 answered on 13 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?