Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 views
Hi, All:

I copied from an example at telerik.com:

<

rad:GridTemplateColumn HeaderText="DateIn" DataField="DateIn" SortExpression="DateIn">
<EditItemTemplate>
<rad:RadDateTimePicker ID="RadDateTimePicker1" runat="server" Culture="English (United States)" DbSelectedDate='<%# Bind("DateIn", "{0:D}") %>' SharedCalendarID="" MinDate="01-01-1900"> <DateInput runat="server" />
</rad:RadDateTimePicker>
</EditItemTemplate>

But this won't compile: "Cannot convert type 'string' to 'System.DateTime'".

Please help.

Stanley

Missing User
 answered on 28 Aug 2008
3 answers
141 views
Hi All,

I am using master/content page in my application.
In master page i added
 RadAjaxScriptmanager, RadAjaxManager, RadAjaxLoadingPanel

In content page i added RadAjaxManagerProxy .

1>In Content page i user RadTabStript,RadMultiPage.
2>In pageview i added Radgrid.

Issue 

1>On tab click i want to show loading panel on radgrid..
  
2>RadAjaxManagerProxy  does not support AjaxtRequest Method.
How can i add ajaxsetting from codebehind.

thanks
 
Veli
Telerik team
 answered on 28 Aug 2008
4 answers
81 views
Problem when trying to call a control method (code behind) inside GridTemplateColumn.

I created a class that implements ITemplate. Here I have a control that is instantiated inside the InstantiateIn() method. In that control I register a listener for the TextChanged event e set the AutoPostBack property of the control to TRUE.

In a radgrid, I created a GridTemplateColumn and set the ItemTemplate and the EditItemTemplate properties of the grid.

The grid shows properly, but when I change the text of the GridTemplateColumn control, a ajax call is done (the OnInit method of the page at server-side is called) but the TextChanged event at server-side isn't called.




Sebastian
Telerik team
 answered on 28 Aug 2008
4 answers
410 views
All

I have been looking at and trying all of the posts showing client-side scripting to get RadGrid selecteditems collection but cannot seem to get there. My code always seems to fail after getting the grid object.

Below is what i have tried. Anyone see where I am going wrong?

//THIS
var grid = window["<%=gvList.ClientID%>"];
// OR THIS
var grid = $find("<%=gvList.ClientID%>");
if (grid)

    // ALWAYS SUCCEEDS
    alert("found grid"); }
    // FAILS HERE, error object does not support this method or property
    var masterTable = grid.get_masterTableView();
    if (masterTable) 
    { 
        alert("found masterTable"); 
        var gridSelectedItems = masterTable.get_selectedItems(); 
    }
}
Daniel
Telerik team
 answered on 28 Aug 2008
1 answer
188 views
Hi All,

I am opening radwindow on button click

Previously it woking finely.
But not it give me the javascript error as

Microsoft JScript runtime error: 'this._windows.length' is null or not an object

How can i sovle this error?
Thanks
Sophy
Telerik team
 answered on 28 Aug 2008
5 answers
182 views
i am trying to change grid style to new one(i created it)
but didnt success althoug i follow the steps in tutorial
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Styles/HeaderFooterPagerStyles/DefaultCS.aspx
and 
http://www.telerik.com/help/aspnet-ajax/grdcreatingnewskins.html

please help me in this,

best regards,
Ahmad
Dimo
Telerik team
 answered on 28 Aug 2008
1 answer
163 views

Hi

I'm using a customised version of the TreeView Default skin and would like to add an image (bullet) to only the deepest nodes (nodes which cannot be expanded or collapsed) and was wondering how I could do this? Thanks.

Kind Regards

Yana
Telerik team
 answered on 28 Aug 2008
6 answers
196 views
The tooltip gets stuck on the first page of the grid.  When I scroll it doesn't update the tooltip.  How can I get the tooltip to display the correct information?

I have the following:

 Protected Sub RadToolTipManager1_AjaxUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs)
        Me.UpdateToolTip(e.Value, e.UpdatePanel)
    End Sub

    Sub UpdateToolTip(ByVal elementID As String, ByVal panel As UpdatePanel)
        Dim ctrl As Control = Page.LoadControl("~\UserControls\StaffProfile.ascx")
        panel.ContentTemplateContainer.Controls.Add(ctrl)
        Dim details As StaffProfile = DirectCast(ctrl, StaffProfile)
        details.UserID = CType(elementID, Integer)
    End Sub

 Protected Sub StaffGrid_PageIndexChanged(ByVal source As Object, ByVal e As Telerik.Web.UI.GridPageChangedEventArgs) Handles StaffGrid.PageIndexChanged
        RadToolTipManager1.TargetControls.Clear()
    End Sub
Maria Ilieva
Telerik team
 answered on 28 Aug 2008
1 answer
113 views
I need to provide custom arguments to the StoreFile method in my overridden FileBrowserContentProvider. How do I do that? The arguments should differ per editor instance.

Stig
Rumen
Telerik team
 answered on 28 Aug 2008
1 answer
189 views
I posted this earlier today, received a response from telerik and responded back. Now I can't find the thread so here goes again. First of all I'm desperate as I've spent two days trying to solve this. I just want to set the value of a RadDatePicker field to blank or null using javascript when a user clicks a corresponding asp CheckBox.

For ASP controls the following works:

document.getElementById(

'txtInsName').value = '';

In the reply I received earlier, I was told to include a "Register..." statement and then code such as rdDatePicker.clear() would work.

I'm using VB and have not used javascript before with telerik controls.

Thanks

Paul
Telerik team
 answered on 28 Aug 2008
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?