Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
291 views
I am using a RadDatePicker within a custom control. What I need to do is to trigger an event when the date changes. So I've added an OnTextChanged even on the DateInput.  And I've set AutoPostBack = TRUE, but I never seem to get the textChanged event to fire. Additionally, the text doesn't actually get updated  in the datepickers date input until I pick a date, and then put my cursor back into the control again.

But if I remove this event and AutoPostBack setting the text box is updated, but how can I caputre this event?

I need the custom control (which contains the radDatePicker) to raise an event on the container page/control based on teh change of selected date in the datepicker -- either when the user picks a date on the calendar popup, or manually enters a date in the text dateinput field.

I also tried using onSelectedDateChanged even of teh DatePicker, but again, if I set AutoPostBack = true this is causing the dateinput text field not be correctly updated.
SamJ
Top achievements
Rank 1
 answered on 20 Feb 2009
1 answer
272 views
I am using a RadDatePicker within a custom control. What I need to do is to trigger an event when the date changes. So I've added an OnTextChanged even on the DateInput.  And I've set AutoPostBack = TRUE, but I never seem to get the textChanged event to fire. Additionally, the text doesn't actually get updated  in the datepickers date input until I pick a date, and then put my cursor back into the control again.

But if I remove this event and AutoPostBack setting the text box is updated, but how can I caputre this event?

I need the custom control (which contains the radDatePicker) to raise an event on the container page/control based on teh change of selected date in the datepicker -- either when the user picks a date on the calendar popup, or manually enters a date in the text dateinput field.

I also tried using onSelectedDateChanged even of teh DatePicker, but again, if I set AutoPostBack = true this is causing the dateinput text field not be correctly updated.

Thanks!
Debbie
SamJ
Top achievements
Rank 1
 answered on 20 Feb 2009
2 answers
385 views
I have assigned a GridNumericColumnEditor to a GridNumericColumn as follows:

<telerik:GridNumericColumn DataField="PaymentAmount" DataType="System.Decimal"   HeaderText="Payment Amount" UniqueName="PaymentAmount" DataFormatString="{0:C2}" NumericType="Currency" ColumnEditorID="GridCurrencyColumnEditor">  
</telerik:GridNumericColumn> 
 

I have defined the GridNumericColumnEditor as follows:

<telerik:GridNumericColumnEditor ID="GridCurrencyColumnEditor" runat="server">  
        <NumericTextBox Culture="English (United States)" LabelCssClass="" InvalidStyleDuration="100" 
            Type="Currency" runat="server">  
            <NumberFormat AllowRounding="True" KeepNotRoundedValue="False" DecimalDigits="2"></NumberFormat> 
        </NumericTextBox> 
</telerik:GridNumericColumnEditor> 

 

While in edit mode, the currency fields are not being displayed with two decimal places.  If I enter 1,234 I get $1,234 displayed when I am expecting to get $1,234.00.  If I enter 1,234.1234 I get $1,234.1234 displayed when I am expecting to get $1,234.12.

While in display mode, the formatting works properly based on the DataFormatString attribute in the GridNumericColumn.
 
Am I doing something wrong with the number formatting?

Al

alo
Top achievements
Rank 1
 answered on 20 Feb 2009
0 answers
69 views
I'm using your treeview in this web page.

Imagine the user is editing the Description TextBox.  He changes the value to something else and then immediately clicks on another node in the treeview.  In the TextChanged event handler of the TextBox I update the treeview node's Text property.  It *appears* to change it but then when the postback occurs and the NodeClick event handler for the TreeView runs, the change seems to have disappeared.

Why would this be?

Robert

Robert
Top achievements
Rank 1
 asked on 20 Feb 2009
4 answers
160 views
Hi,

I have a created a Hierarchy grid in code behind with NestedViewTemplate. In the template I have radtextbox,checkbox,radcombo .
 My problem is how to assign and reterive data from them in code behind and the data is coming from database.
please help me......


regards
Sathies
sathies
Top achievements
Rank 1
 answered on 20 Feb 2009
2 answers
147 views
ok...here's my deal...i've got a grid that in edit mode uses a Template...i do something while in edit mode that causes an ajaxrequest which fires a custom method...

while executing that custom method i can do a GridEditableItem edititem = (GridEditableItem)this.rgCustomDiagnosis.EditItems[0];
and have a tie to the current editable record...

but i can't for the life of me figure out how to find a textbox in the edit template...

edititem.findcontrol("txtCoreCode")  just returns a null

help please

thanks
Shinu
Top achievements
Rank 2
 answered on 20 Feb 2009
5 answers
425 views
Is there a way to show custom messages in the RadGrid statusbar?  If any CRUD operation fails or any exceptions occur I would like to show a message of my choice to the user.

Thanks
Shinu
Top achievements
Rank 2
 answered on 20 Feb 2009
1 answer
162 views
Hello,

I want the entire list of rows, for the underlying data, bound to the RadGrid in edit mode.  I'm trying to create an Excel like interface and I wanted the RadGrid for the client-side binding.  Can this work, and can the RadGrid do what I want?  I figured I manually loop through each row, access the underlying control, and update my data objects...

Thanks.
Princy
Top achievements
Rank 2
 answered on 20 Feb 2009
1 answer
136 views
 Hi All

Which one is the best way to localize Radgrid for Brazilian Portuguese language?

Thanks in advance

Gilberto
Shinu
Top achievements
Rank 2
 answered on 20 Feb 2009
1 answer
266 views
I have two sections on my page:  a set of controls on the top of the page that specify various controls for searching data, and a RadGrid below it that shows the results. 

Inside the CommandItemTemplate of the RadGrid, I have a checkbox.

In an eventhandler not directly related to the grid itself (a button click) I need to get a reference to the Checkbox inside the command item template, but I can't seem to find the right way to get a reference. 

Any suggestions?  Here's a couple of snippets of different ways I tried to get a reference from the button click event. 
The inner part of the for loop doesn't get hit because when inside the button click event handler, the if Item si GridCommandItem is always false. 

<CommandItemTemplate> 
    <asp:CheckBox ID="chkMyCheckBox" Style="float: left" runat="server" Text="My Checkbox" TextAlign="Right" AutoPostBack="true" OnCheckChanged="chkMyCheckBox_CheckChanged" /> 
</CommandItemTemplate> 
 
Dim chk as CheckBox = DirectCast(dgMyGrid.FindControl("chkMyCheckBox"),CheckBox) 
 
 
            For Each Item As GridItem In dgMyGrid.Items 
                If Item Is GetType(Telerik.Web.UI.GridCommandItem) Then 
                    Dim CommandItem As GridCommandItem = DirectCast(Item, GridCommandItem) 
                    Dim Header As GridTHead = DirectCast(CommandItem.NamingContainer, GridTHead) 
                    Dim chk1 As CheckBox = DirectCast(Header.FindControl("chkMyCheckBox"), CheckBox) 
                    Dim chk2 As CheckBox = DirectCast(CommandItem.FindControl("chkMyCheckBox"), CheckBox) 
                End If 
            Next 
 

Princy
Top achievements
Rank 2
 answered on 20 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?