Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
76 views
Hello,
I'm trying to use the Grid and enabling Scrolling.
I have this settings for scrolling:

<Scrolling ScrollHeight="120px" AllowScroll="true" UseStaticHeaders="true" />

As you can see in the attachment file, I have a "white margin" on the grid header.
if I analize the page with Firebug I see that for the <div> with class rgHeaderDiv is added a right margin of 16px.
I've tried to remove this margin with jQuery, but it seems that this margin is added dinamically and so in some cases I have that this margin is still applied.

Is there a way to fix this issue and remove this margin?
Thanks,
Alessandro
Shinu
Top achievements
Rank 2
 answered on 06 Jul 2012
15 answers
311 views
I've noticed some weird behavior with the AJAX grid control in Chrome. Whenever I bind a datasource that contains one or more date fields to the grid. Those date fields are automatically set to a ridiculously large width (over 39000px). Browsing to the same page in FireFox the date columns are displayed as you'd expect. Bug?

Grid control version: 2010.3.1215.40
Chrome version: 8.0.552.224
FireFox version: 3.6.10
Andrey
Telerik team
 answered on 06 Jul 2012
0 answers
81 views
I've got a radgrid which is full width of it's parent element.
When I apply filtering to my radgrid, it seems like the radgrid doesn't adjust to make room for the filter buttons, as the the right most filter button is placed partially outside of the radgrid.
see this example picture (I've removed all text such as column names and values)

My grid is created programatically. Could I be enabling the filtering at the 
This is basically the OnInit method:

protected override void OnInit(EventArgs e)
{
radGrid = new RadGrid();
radGrid.ID = "myGrid";
radGrid.NeedDataSource += new GridNeedDataSourceEventHandler(_grid_NeedDataSource);
radGrid.MasterTableView.AllowFilteringByColumn = true;
radGrid.MasterTableView.EnableHeaderContextFilterMenu = true;
radGrid.Skin = "Windows7";
radGrid.EnableEmbeddedSkins = true;
radGrid.Width = Unit.Percentage(100);

radGrid_AddColumnsToGrid(); 
}
DrKawashima
Top achievements
Rank 1
 asked on 06 Jul 2012
10 answers
276 views
Your controls suffer from the well known issue with about:blank and https and IE..
I.e you need to STOP generating about:blank as this will cause IE to display mixed content popups with https..
This happens on RadMenu, which have been testing, but suspect is a general defect..

Search of google will show you how to fix..

Cat Cheshire
Top achievements
Rank 1
 answered on 06 Jul 2012
4 answers
374 views
Hi All,

My requirement is to export the grid data into excell sheet and promt user to save this excell file on the click of a radgrid toolbar button.
I have made my set ups for this feature to work at my end like mentioned below :-

1) Added a new GridToolBar button "Export".
    
<telerik:RadToolBarButton Text="Excel" ImageUrl="~/Images/excel.png" CommandName="ExportToExcel" Value="Export" />

2) On page load i have added the code like below :-

if (!Page.IsPostBack)
           {
               rgMyGrid.ExportSettings.ExportOnlyData = true;
               rgMyGrid.MasterTableView.UseAllDataFields = true;
               rgMyGrid.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML;
               rgMyGrid.ExportSettings.IgnorePaging = true;
               rgMyGrid.ExportSettings.FileName = "CropList";
               rgMyGrid.ExportSettings.OpenInNewWindow = true;
           }
3) Handling the button click of the grid to export the data to Excell file, used code as below :
Ex :-
protected void rtbCommand_ButtonClick(object sender, RadToolBarEventArgs e)
       {
           if (e.Item.Value == "Export")
           {
               ExportGrid();
           }
       }
The ExportGrid method is as below :
protected void ExportGrid()
       {
               rgMyGrid.ExportSettings.ExportOnlyData = true;
               rgMyGrid.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML;
               rgMyGrid.ExportSettings.IgnorePaging = true;
               rgMyGrid.ExportSettings.FileName = "CropList";
               rgMyGrid.ExportSettings.OpenInNewWindow = true;
               rgMyGrid.MasterTableView.ExportToExcel();               
           
       }

Still it does not seems to be working rather it makes the toolbar to disappear when click on the EXPORT button. :-(

Is this the right way i am going through or need to change the coding any way ?
Please help me in this regard. Thanks in advance.
Les
Top achievements
Rank 1
 answered on 06 Jul 2012
1 answer
78 views
Hi,

How can I have a combobox which us allow to check items only in order. ie it should not allow to check 2nd item if 1st is not checked.

Thanks
Shinu
Top achievements
Rank 2
 answered on 06 Jul 2012
1 answer
82 views
I hav a grid that loads a detail table when clicking the expand icons.  This is working fine.  The problem is that when I click the icon to collapse, it reloads the detail table.  I have the ViewStateMode set to Enabled on that page.  I do have several of the grids on the page and each is in its own RadAjaxPanel.

Any ideas?
Tsvetoslav
Telerik team
 answered on 06 Jul 2012
1 answer
87 views
Hello,

I am not sure the best way of asking this without it getting to be a book of explanation.  I need to have the grid be able to have a template all via code to allow me to add columns on the fly.  ( I want the user to simply hit a plus button next to the grid or contained within the grid that adds the column to the end of the grid)  The column header needs to contain a dropdown as well that would get filled upon creation.  

When I commit this data to the database I will need to be able to read the value from the dropdown as that is a foreign key on the underlying table.  

Any help or examples would be appreciated.  

Thanks.
Marin
Telerik team
 answered on 06 Jul 2012
1 answer
122 views
Hi,

I've been creating some graphs using the new Telerik HtmlChart control and have had some issues when trying to allocate a DataLabelField to the X-axis. I have ensured that the table headings have no spaces in them as I read that may be a problem.

I am using :

RadHtmlChart1.PlotArea.XAxis.DataLabelsField = "PriorityID"

The data is displayed in the graph correctly but any attempt to set the x axis is not being applied. The SQL I use provides a column of int (1-12) under the "PriorityID" column heading and a count column of int next to it for the actual data points.

Also on a similar vein is an issue based around legends. Again the data is being populated but unfortunately displaying a legend that is not being shown correctly. It seems to appear as a line of colours but very small and missing any labels to explain the data. I have included a picture to demonstrate the issue.

Both these issues are causing serious problems despite the actual graphing of the data being produced, as both limit the relevance of the data shown. Is this due to a shortcoming of the initial version of the control? Or possibly a mismatch between the mappings to take the axis/ legend data out of the datatable?

Thanks in advance,

Tom
Marin Bratanov
Telerik team
 answered on 06 Jul 2012
0 answers
80 views
I have two grid bound columns (numerator) and (denominator) in the telerik grid. Now I am applying Aggregate="Sum " on both the columns.So at the grid footer level it is showing Sum:2100 and Sum:3000 in the grid footer level for both numerator and denominator columns respectively.Now when I am dragging a particular column on the group panel(means we are grouping by that column),then we are getting the above calculation at each group level in group  footer.Now I need to access those group footers in such a way that in the third hidden column's group footer it gives me calculation of 2100/3000.So is it possible to access group footers??    
Anuj
Top achievements
Rank 1
 asked on 06 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?