Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
125 views
im using dataformat property in my Grid as i don't want wrapping in my grid cell [in column created event handler] and for this im setting property as follows:

 

 

if

(e.Column.ColumnType == "GridBoundColumn")

 

{

((

GridBoundColumn)e.Column).DataFormatString = "<nobr>{0}</nobr>";

 

}

But after applying this property grid lines are not displaying properly wherever blank space is coming in a cell.

 

please provide me a solution as i want grid lines also in my grid.

 

Shinu
Top achievements
Rank 2
 answered on 24 Feb 2009
1 answer
511 views
How to call treeview node click event in button click event.
Princy
Top achievements
Rank 2
 answered on 24 Feb 2009
11 answers
495 views
I am attempting to do a simple Javascript calculation in the insert and edit forms of a RadGrid without success either by using RadAjax or the client-side API (both of which I am new to anyway). Basically OnTextChanged of field X I would like to update the value of field Y with the result of a simple formula based on the value in X.

I really don't know where to start though having spent a few hours trying to figure out the Client-side API and then after failing there, looking at how to access those field values using RadAjax and failing even more.

If someone could talk me through the methodology with some pointers as to what methods/properties etc to use, I'd be very grateful as I'm totally stuck despite the apparent simplicity, I can do it in basic Javascript in 5 minutes, but I want to know how to do it properly with the Telerik controls and no hardcoded ClientIDs!!

Here's the my Grid in its simplest form.

  <telerik:GridNumericColumnEditor ID="edtGross" runat="server" NumericTextBox-Type="Currency"> 
    <NumericTextBox ID="tbxGrossAmount" runat="server" /> 
  </telerik:GridNumericColumnEditor> 
  <telerik:GridNumericColumnEditor ID="edtNet" runat="server" NumericTextBox-Type="Currency"> 
    <NumericTextBox ID="tbxNetAmount" runat="server" /> 
  </telerik:GridNumericColumnEditor> 
 
  <telerik:RadGrid ID="grdAccountEntryList" runat="server" Skin="Sunset" DataSourceID="sqlAccountEntryList"> 
    <MasterTableView DataSourceID="sqlAccountEntryList" DataKeyNames="AccountEntryID"  
      AutoGenerateColumns="False" 
      AllowFilteringByColumn="True" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" 
      AllowAutomaticUpdates="True" AllowPaging="True" AllowSorting="True"> 
      <Columns> 
        <telerik:GridNumericColumn NumericType="Currency" DataField="GrossAmount" UniqueName="GrossAmount" HeaderText="Gross" DataType="System.Decimal" 
          Aggregate="Sum" DataFormatString="{0:c2}" ColumnEditorID="edtGross"> 
        </telerik:GridNumericColumn> 
        <telerik:GridNumericColumn NumericType="Currency" DataField="NetAmount" UniqueName="NetAmount" HeaderText="Net" 
          DataFormatString="{0:c2}" Aggregate="Sum" DataType="System.Decimal" ColumnEditorID="edtNet"> 
        </telerik:GridNumericColumn> 
      </Columns> 
    </MasterTableView> 
  </telerik:RadGrid> 

Paul Wood
Top achievements
Rank 1
 answered on 24 Feb 2009
1 answer
100 views
I am unable to see XML in the grid as it is stored in the database.  It shows a long string of characters which I am unable to interperet.  I was wondering if there is any way of displaying the xml inside the grid.
Eric Rosenberger
Top achievements
Rank 1
 answered on 23 Feb 2009
2 answers
150 views
In our application we do not want the FastNavigation for the Rad Calendar. So we had set the FastNavigationNextImage, FastNavigationNextText and other fast navigation properties to be empty.

Today the lates Q3 2008 has been installed in my system and these images are appearing again.

Is there a way to remove the FastNavigation images/buttons?

Because, the EnableNavigation removes all the four navigation buttons.

Thanks,
Leo Paul Clement J.

 

Leo Paul Clement
Top achievements
Rank 1
 answered on 23 Feb 2009
2 answers
118 views
Hi,

Chrome browser can't render properly GridDateTimeColumn.
Therefore , it is essential to set the following property.

FilterControlWidth = "150px"

The following sample has the same(?) problem.
Chrome can't render it properly when it is 'in-forms editing mode'.

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx

Motohiro Isozaki
Top achievements
Rank 2
 answered on 23 Feb 2009
2 answers
330 views
Is there a way to make the filter row of a grid initially hidden?

I am using a grid with filtering. I have a checkbox on my page that will show/hide the filter row via javascript call - all working fine. I just want the filter row to be initially hidden until the user clicks the checkbox to show it.

Would love to be able to set the initial visilbility state of the filter row server-side as the page initially loads or declaritvely in the page markup.

I am using RadGrid for ASP.NET AJAX - 2008.3

Thanks for your help... Russ
Russ
Top achievements
Rank 1
 answered on 23 Feb 2009
5 answers
201 views
When the grid contains a large number of columns such that there is horizontal scrolling, and there are no records present, the scrolling does not scroll all the way to the right of the header.

ASPX

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <asp:ScriptManager ID="ScriptManager1" runat="server" /> 
    <div> 
        <telerik:RadGrid runat="server" ID="grid"  > 
                    <MasterTableView  AutoGenerateColumns="false" >  
                <Columns>  
                    <telerik:GridBoundColumn DataField="col1" HeaderText="Col1" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col2" HeaderText="Col2" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col1" HeaderText="Col3" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col2" HeaderText="Col4" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col1" HeaderText="Col5" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col2" HeaderText="Col6" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col1" HeaderText="Col7" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col2" HeaderText="Col8" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col1" HeaderText="Col9" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col2" HeaderText="Col10" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col1" HeaderText="Col11" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col2" HeaderText="Col12" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col1" HeaderText="Col13" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col2" HeaderText="Col14" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col1" HeaderText="Col15" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col2" HeaderText="Col16" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col1" HeaderText="Col17" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                    <telerik:GridBoundColumn DataField="col2" HeaderText="Col18" HeaderStyle-Width="100px"></telerik:GridBoundColumn>  
                </Columns>  
                 
            </MasterTableView>  
             
        <ClientSettings> 
            <Resizing AllowColumnResize="true" /> 
            <Scrolling AllowScroll="true" UseStaticHeaders="true" /> 
        </ClientSettings> 
        </telerik:RadGrid> 
         
    </div> 
 
</form> 
</body> 
</html> 
 

C#

using System; 
using System.Data; 
using System.Configuration; 
using System.Web; 
using System.Web.Security; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using System.Web.UI.WebControls.WebParts; 
using System.Web.UI.HtmlControls; 
using System.Net; 
using System.Collections.Generic; 
using Telerik.Web.UI; 
 
public partial class _Default : System.Web.UI.Page  
{ 
    protected override void OnLoad(EventArgs e) 
    { 
        base.OnLoad(e); 
        BindData(); 
    } 
 
    private void BindData() 
    { 
        DataTable table = new DataTable(); 
        table.Columns.Add("col1"); 
        table.Columns.Add("col2"); 
         
        grid.DataSource = table; 
        grid.DataBind(); 
    } 
 
} 

When you first load the page, you cannot scroll all the way to the right to see the end of column 18.  On my resolution I get to the middle of Col16.

Note that as soon as you resize a column the header is resized so that the scrolling works perfectly. 

I also tried a couple of different skins but the all show the same behaviour.

Is there a size not being set properly on the initial load?

Thanks,

Stephen


Rosen
Telerik team
 answered on 23 Feb 2009
3 answers
194 views
Hello everybody,

  I have two problems with dependent GridDropDownColumns in my project.
I have to Lists in my RadGrid. The second list  has to display a sub-set of data, which is based on the selection in the first list

For this problem I found a nearly working solution in the Post under this Link.
This Post refers to a Demo on the Telerik page: Demo

If I realize it like in the demo, it works fine in all rows except the last one. Here the second list is not refreshed, even if all relevant events were fired like in all other rows. This Problem occurs in the Telerik Demo, too.

The second problem is, that it didn't work on insert either.

The technical stuff:
I Use RadControls for ASPNET AJAX Q3 2008 with VS 2008 SP1 under WinXP SP3.

With a bit more searching I found a second demo from Telerik with the same problem:
http://demos.telerik.com/aspnet-ajax/Grid/Examples/Programming/AccessingCellsAndRows/DefaultCS.aspx
This one has RadComboBoxes instead of DropDownLists for the GridDropDownColumns like my coding.



Greetings
  Thomas
Daniel
Telerik team
 answered on 23 Feb 2009
1 answer
100 views
Hello, I have "App_GlobalResources" and all resource files copied there, but the editor still showing string name not value. for example at the bottom of box "StaticticsWords" instead "Words:". none of them showing properly. can anyone help me with this? Thanks. 
Rumen
Telerik team
 answered on 23 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?