Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
109 views

Hi

I am using the following to pass some values to a javascript function on the RadTimepickers onkeypress event. But unfortunatly the object.Value seems to be undefined.

ASPX
This is inside a Grids footer.
                                            <FooterTemplate>
                                                <telerik:RadTimePicker ID="footerRadInsStartTime" runat="server" Onkeypress="return validatenumber(event, this, 'int');">
                                                </telerik:RadTimePicker>
                                            </FooterTemplate>


function validatenumber(event, obj, type)
{

            var code = (event.which) ? event.which : event.keyCode;
            var character = String.fromCharCode(code);  

            var afterDecimal = obj.value.indexOf('.');     // This is where it has the null value
blah blah
...
....
}

obj.value is always null. Any help to overcome. I cannot use $find because the control is inside the Grid.


Shinu
Top achievements
Rank 2
 answered on 24 Feb 2009
1 answer
176 views
I'm playing radgrid with client side data binding and client side history management. I can successfully add, retrieve filter expressions from history point and bind data to radgrid from client side. What I would like to do is, filling filter textboxes with retrieved values from history point, and make menu highlighted with filterexpressions. Here is my sample code:

function RadGrid1_Command(sender, args) {
                            args.set_cancel(true);
                            var command = args.get_commandName();
                            var tableView = $find("<%= RadGrid1.ClientID %>").get_masterTableView();
                            var filterExpressions = tableView.get_filterExpressions();
                            var dyanmicLinqQuery = filterExpressions.toDynamicLinq();
                            PageMethods.GetData(dyanmicLinqQuery , updateGrid, callFailed);
                            if (command == "Filter") {
                                var State = { fex: dyanmicLinqQuery }
                                Sys.Application.addHistoryPoint(State, "Filter : " + dyanmicLinqQuery);
                            }

function onStateChanged(sender, e) {
                            var filterex = e.get_state().fex || '';
                            PageMethods.GetData(filterex , updateGrid, callFailed);
}
                               
Thanks in advance
Yavor
Telerik team
 answered on 24 Feb 2009
1 answer
106 views
hi telerik,
i was using telerik rad window , Q3 2007 and now changed to Q3 2008.
the issue im fascing now is,
when i am opening a rad window, its taking more time to open than the previos version. (i put the reload on show property is true. other wise the window is not refresing).
is this ( reload on show ) is the problem..?
do i need to set any other property to solve this.?

and one more issue is after closing the rad window, the parant window is taking time to get activated.
once we close the window , is the parant windowe is reloading..?
can i avoid this reloading..?

ultimatly in the new version i feel Rad window is mutch slower,. can you suggest any solution for this to make it little faster.

thank. & Regards
kks
Fiko
Telerik team
 answered on 24 Feb 2009
1 answer
92 views
In our project we had an issue with the RadGrid event method. The event method was not triggered although a postback did occur. Apparantly this was due to the following code:

   GridBoundColumn boundColumn = new GridBoundColumn();
   boundColumn.DataField = "CustomerID";
   boundColumn.HeaderText =
"CustomerID";
   RadGrid1.MasterTableView.Columns.Add(boundColumn);               

The problem was that the .DataField and .HeaderText properties were set BEFORE the GridBoundColumn object was added to the MasterTableView columns collection. According to the documentation of the RadGrid (http://www.telerik.com/help/aspnet-ajax/grdprogrammaticcreation.html): "Columns and detail table should be added to the corresponding collection first, before the values for their properties are set. This is important because no ViewState is managed for the object before it has been added to the corresponding collection.". However, this requirement is rather unorthodox and differs from other equivalent web controls. And that this would result in that event methods will not be triggered is not easy to identify. At least, the documentation should be more clear on this issue and the methods and properties should have comments regarding this requirement.

Christer Lundhag

Rosen
Telerik team
 answered on 24 Feb 2009
0 answers
96 views
Hi

I am using Updatepanel. now clicked on My Grid Button and it display the RadUpload Control and then i will Upload the File and Grid is Bind and then i will edit record at that time RadUpload control lost its Skin File.

It is Really very urgent
See Below Image


Thanks Advance
Hiren andharia
Hiren
Top achievements
Rank 1
 asked on 24 Feb 2009
3 answers
143 views
Hello,

I have a small problem working with dock.

I have a dock layout and I am adding docks dynamically like on the demo website.
I also load the dock content dynamically (like on the demo website again).
The problem is that the control has several textboxes with validators.

When I press the button it does postback, but has CausesValidation set to true.

The validation works when I statically load the control.
All controls have unique id's, loaded on Init to preserve postbacks etc.

How to solve this ?
Petio Petkov
Telerik team
 answered on 24 Feb 2009
1 answer
183 views
Hi
     I implemented the projects Asp.Net with Telerik. My one of the Module include the  Different Contact Types. Each Contact Types  to have User control. When i Edit the Rad Grid in that time must be show the related contact types user control. Let me know how can i implemented the funcationality ...

Regards
G. Manikandang
Princy
Top achievements
Rank 2
 answered on 24 Feb 2009
1 answer
312 views
I have a hierarchical grid with one detail table within each row of a Master Table.
I have GridbuttonColumns on the master table rows and detail table rows for selecting rows, and an event hooked to OnItemCommand.
In Code behind (C#) for the ItemCommand post back, how do I get the key of the detail row they selected, plus the key of that row's parent in the master table?

Thanks!
Princy
Top achievements
Rank 2
 answered on 24 Feb 2009
5 answers
189 views
I have a master detail grid.  I am trying to modify the footer in the detail grid view, but the FindControl is returning nothing.
Protected Sub invoiceHeaderGrid_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs) 
    If TypeOf e.Item Is GridDataItem Then 
        Dim _item As GridDataItem = e.Item 
        If (_item.OwnerTableView.Name = "InvoiceDetails") Then 
            Dim _ftrItem As GridFooterItem = _ 
                DirectCast(_item.OwnerTableView.GetItems(GridItemType.Footer)(0), GridFooterItem) 
       End If 
   End If 
End Sub 
 

Princy
Top achievements
Rank 2
 answered on 24 Feb 2009
1 answer
123 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
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?