Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views
I have a problem when press  "Enter" Key on last row of RadGrid Control.... when press "Enter" key on the radgrid control  make postback and the focus be position in the penultimate row and this be open in mode edit------ this is my problem.......... You have any solution.

regards.

Q.
Shinu
Top achievements
Rank 2
 answered on 07 Aug 2009
2 answers
125 views
I'm using a rad grid with 2 rows and the following columns { 2010,2011,2012,2013,2014 }, each column has a Sum Aggregate displayed in the footer and the default mode is edit. Whenever a field (input) value is changed (just edited, without clicking save or cancel) i want to automatically re-calculate the sum's either using javascript or code-behind, however i can not find any event to handle this.

I'd also like to know if there is any possibility to get a running value* in the footer instead of a simple sum.

*running value = adding the sum from the previous year, to the current/next and so on.
Veli
Telerik team
 answered on 07 Aug 2009
1 answer
195 views
Hi community,
    I neeed display html content inside a radrotator template. Imagine i wanto to display this :
<P><FONT color=#ff0000>Changes</FONT></P>
<UL>
<LI dir=ltr style="MARGIN-RIGHT: 0px"><FONT color=#008000>Change 01</FONT></LI>
<LI dir=ltr style="MARGIN-RIGHT: 0px"><FONT color=#0000ff>Change 0w</FONT></LI>
<LI dir=ltr style="MARGIN-RIGHT: 0px">Change 03</LI>
<LI dir=ltr style="MARGIN-RIGHT: 0px">Change 04</LI>
</UL>
The bullets are not displayed. I've tried to make changes in the radrotator css file but with no luck.
The html i want to render is introduced by end-users in a ritch text content editor inside a windows application, and then converted to html.
Can you help me out with this?
Thanks.
Martin
Telerik team
 answered on 07 Aug 2009
1 answer
145 views
HI i want to use ajax confirm button extender in radgrid

i have a template column in which i have a link button
i have set confirm button extender in that template column.
when i click on the button  the confirmbutton extender appears but if i click ok or cancel same action performed.

let me know if i am using  confirm button extender in radgrid then which event of radgrid should i call in order to perform the same.


 i used grdName_ItemCommand.
but it doesnt work when the code written in the grdName_ItemCommand.
executes then confirmbutton apperas please help me
Veli
Telerik team
 answered on 07 Aug 2009
1 answer
158 views
As i have the previous version i am not able to make use of GridImageColumn could you please tell me dynamically how will i add imagecolumn to radgrid?

Thanks a million in advance.
Princy
Top achievements
Rank 2
 answered on 07 Aug 2009
4 answers
165 views
Please let me know why am i not able to access GridImageColumn though i have added "Telerik.web.ui" reference and imported it in my file.


Thanks a million in advance.
Shinu
Top achievements
Rank 2
 answered on 07 Aug 2009
2 answers
65 views
Hi,

         Am using the Telerik radgridview for my application. And i have set Post back to true...If i need Paging and sorting to be done for my gridview, its getting disappeared. So how can i set Paging and Posting in a grid view if Post back is set.

Thanks & Regards,
Vijayaragavan R
Vijayaragavan
Top achievements
Rank 1
 answered on 07 Aug 2009
1 answer
212 views
Can someone help me with this? When I right-click on a grid row to bring up my context menu, the row that I right-click on does not get selected. Is there a way to get the row selected when I right click on it?
Shinu
Top achievements
Rank 2
 answered on 07 Aug 2009
19 answers
1.2K+ views

I am opening a RadWindow from within RadWindow as per the examle.

The second radWindow opens up fine, but it opens in the background of the first window. I have to click on the second window then it comes up on the top.

I tried using setActive, setVisible, show - but none of them make the second window on top of first.

Any idea?
-Piyush
DW Web Team Member
Top achievements
Rank 2
 answered on 07 Aug 2009
9 answers
749 views
Hi,

I have a grid with 3 columns:
Column 1 - an editable GridDateTimeColumn which displays and accepts a date
Column 2 - an editable GridBoundColumn (with GridTextBoxColumnEditor) which displays and accepts a string
Column 3 - a GridEditCommandColumn

In edit mode, I would like to do the following:
Column 1 - to force the user to select the date from the DatePicker only (i.e. to disable the text box)
Column 2 - to restrict the length of the string which can be entered by the user to 60

Can you please show me how to do these?
Can you please also show me how to set the width of the GridTextBoxColumnEditor from the code behind instead of from ASPX?

The web page is available on http://www.gouw.ws/RadGrid

The code is given below:
ASPX
====
<form id="form1" runat="server">
<div>
    <telerik:RadScriptManager ID="radScriptManager" runat="server" />
    <telerik:RadGrid ID="radGrid" AutoGenerateColumns="false" GridLines="Vertical" OnNeedDataSource="radGrid_NeedDataSource" OnUpdateCommand="radGrid_UpdateCommand" runat="server">
        <ClientSettings>
            <Scrolling UseStaticHeaders="true" />
        </ClientSettings>
        <MasterTableView EditMode="InPlace" TableLayout="Fixed">
            <Columns>
                <telerik:GridDateTimeColumn DataField="Date" PickerType="DatePicker" DataFormatString="{0:dd/MM/yyyy}" DataType="System.DateTime" HeaderText="Date" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="13%" ItemStyle-HorizontalAlign="Left" UniqueName="Date" />
                <telerik:GridBoundColumn DataField="Description" ColumnEditorID="gridTextBoxColumnEditor" DataType="System.String" HeaderText="Description" HeaderStyle-HorizontalAlign="Left" HeaderStyle-Width="77%" ItemStyle-HorizontalAlign="Left" UniqueName="Description" />
                <telerik:GridEditCommandColumn ButtonType="LinkButton" HeaderStyle-Width="10%" UniqueName="Edit" />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

    <telerik:GridTextBoxColumnEditor ID="gridTextBoxColumnEditor" TextBoxStyle-Width="920px" runat="server" />
</div>
</form>

C#
==
public partial class Default : System.Web.UI.Page
{
    private List<Datum> _data = null;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (IsPostBack)
        {
            this._data = (List<Datum>)Session["DATA"];
        }
        else
        {
            this._data = Datum.Load();
            Session["DATA"] = this._data;
        }
    }

    protected void radGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
    {
        this.radGrid.DataSource = this._data;
    }

    protected void radGrid_UpdateCommand(object sender, GridCommandEventArgs e)
    {
        if (e.Item is GridEditableItem && e.Item.IsInEditMode)
        {
            GridEditableItem item = e.Item as GridEditableItem;
            ((Datum)(this._data[item.ItemIndex])).Date = ((RadDatePicker)item["Date"].Controls[0]).SelectedDate.Value.Date;
            ((Datum)(this._data[item.ItemIndex])).Description = ((TextBox)item["Description"].Controls[0]).Text;
        }
    }
}

public class Datum
{
    public DateTime Date { get; set; }
    public string Description { get; set; }

    public Datum(DateTime date, string description)
    {
     Date = date;
     Description = description;
    }

    public static List<Datum> Load()
    {
     List<Datum> data = new List<Datum>();
        data.Add(new Datum(DateTime.Now, "This date is today"));
        data.Add(new Datum(DateTime.Now.AddDays(1), "This date is tomorrow"));
        data.Add(new Datum(DateTime.Now.AddDays(2), "This date is the day after tomorrow"));
        return data;
    }
}

Thanks &  regards,
Herman Gouw
Skype: hermangouw
Herman Gouw
Top achievements
Rank 1
 answered on 06 Aug 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?