This is a migrated thread and some comments may be shown as answers.
Help with GridDateTimeColumn
6 Answers 79 Views
This is a migrated thread and some comments may be shown as answers.
MARIANO
Top achievements
Rank 1
MARIANO asked on 23 Oct 2013, 04:24 PM
Hello everyone,

I will try to explain what i need to do.

I'm using one GridDateTimeColumn inside of him i've the property PickerType="DatePicker".

It's all working fine, but i need to use a custom text. The DatePicker pop-up text is Open the calendar popup, but i need to change this.

There is anyway to change this text?

Thank you.

6 Answers, 1 is accepted

Sort by
0
Ederson
Top achievements
Rank 1
answered on 23 Oct 2013, 04:49 PM
Did you try ToolTip="Your text"?
0
MARIANO
Top achievements
Rank 1
answered on 23 Oct 2013, 04:53 PM
Yes,
 i got one error: Type 'Telerik.Web.UI.GridDateTimeColumn' does not have a public property named 'ToolTip'.


0
Accepted
Ederson
Top achievements
Rank 1
answered on 23 Oct 2013, 11:47 PM

Try this code in your .cs file...


protected void Page_Load(object sender, EventArgs e)
 
{
 
 RadDatePicker1.DatePopupButton.ToolTip = "YourText";
 
}



I hope that's help!

0
MARIANO
Top achievements
Rank 1
answered on 24 Oct 2013, 10:12 AM
I can't use this because i'm using one GridDateTimeColumn, so i don't have this property.


0
Accepted
Princy
Top achievements
Rank 1
answered on 24 Oct 2013, 11:08 AM
Hi,

I guess you are using a radgrid and you have a DataColumn in it which you want to set the tooltip on filtering.You can access the datepicker in the ItemDatabound event of the radgrid and set toottip as Ederson has shown.PLease try the following:

ASPX:
<telerik:GridDateTimeColumn DataField="OrderDate" HeaderText="OrderDate" UniqueName="OrderDate"
  PickerType="DatePicker" >
</telerik:GridDateTimeColumn>

C#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
{
    if (e.Item is GridFilteringItem)
    {
        GridFilteringItem filter = (GridFilteringItem)e.Item;
        RadDatePicker picker = (RadDatePicker)filter["OrderDate"].Controls[0];
        picker.DatePopupButton.ToolTip = "YourText";
    }
}

Thanks,
Princy
0
MARIANO
Top achievements
Rank 1
answered on 24 Oct 2013, 11:37 AM
Hi Princy,

This worked!

Thank you very much who helped!
Asked by
MARIANO
Top achievements
Rank 1
Answers by
Ederson
Top achievements
Rank 1
MARIANO
Top achievements
Rank 1
Princy
Top achievements
Rank 1
Share this question
or