Ok,
Maybe I am getting confused between when a codeless solution is magic and when you need to use codeless events.
Is there any documentation out there that can help clear this concept up ? If not, I would love to get paid to research and write about that !! It is probably out there and I just dont know where to look ?
I read instructions on the codeless controls that say "put this here, put that there and your good to go !! " But when I run into issues, I see various forums giving answers that lead back to using events. It is great that
telerik tools have an event for almost everything that happens in a codeless solution, the question becomes when to use the events and when to ask telerik support for help because a codeless solution is working out ?
My thinking is that using the events rather than figuring out some codeless problems come on a case by case basis. However, is there any ryme or reasoning about when it is more pratical to use codeless events ?
Sometimes I think just using the codeless solution events for everything almost always gaurantees faster success and gives more control over the functioning of a Control.
I am new to the telerik RAD Controls, and I want to use the
product as intended, toward the intended effiency. I want to get good at using all of the RAD controls and I know this will take time, so, is there any documentaiton on when to use the codeless solution events ? where ? and especially why ?
For example, when using the LinqDataSource whereparameters. Some scenerios allow me to use it codelessly, while others need a little event help. I know this is a very general example, but those who have run into things like parameter issues know what I mean because I have seen dozens of post from several forums from people seeking answers.
It could be that the only answer is obvious, that is, codeless solution events are there to use if and when you need them. If thats the only answer, then thats fine.
And finally, is there any documentation that speaks to the limitations and advantagous of the various datasource contols when used with telerik ?
TELERIK, all and all, your product is great. The litany of events give tremendous flexibility. Because of all the events, I can find many ways to develop my applications !!!
thanks,
David

In telerik Rad Grid for Child grid (heriarchial grid),Add Template will be displayed in between the Header templete and List of Items as shown in the below link
| <telerik:RadGrid ID="radGridUsers" runat="server" |
| AllowAutomaticDeletes="false" |
| AllowAutomaticInserts="false" |
| AllowAutomaticUpdates="false" |
| AllowCustomPaging="false" |
| AllowMultiRowSelection="true" |
| AllowPaging="true" |
| AllowSorting="true" |
| AutoGenerateColumns="false" |
| AutoGenerateDeleteColumn="false" |
| AutoGenerateEditColumn="false" |
| GroupingEnabled="false" |
| PageSize="20" |
| ShowFooter="false" |
| ShowGroupPanel="false" |
| ShowHeader="true" |
| ShowStatusBar="false" |
| Skin="Vista" |
| style="width:auto" |
| > |
| <ClientSettings AllowColumnHide="false" AllowColumnsReorder="false" AllowDragToGroup="false" AllowExpandCollapse="false" AllowRowHide="false" AllowRowsDragDrop="false" EnablePostBackOnRowClick="false" EnableRowHoverStyle="true" ReorderColumnsOnClient="true"> |
| <ClientEvents /> |
| <ClientMessages /> |
| <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" /> |
| <Resizing AllowColumnResize="true" AllowRowResize="false" ClipCellContentOnResize="true" EnableRealTimeResize="true" ResizeGridOnColumnResize="false" /> |
| <Scrolling AllowScroll="false" /> |
| </ClientSettings> |
| <MasterTableView ClientDataKeyNames="Username"> |
| <Columns> |
| <telerik:GridClientSelectColumn CommandName="Select" DataType="System.Boolean"> |
| <HeaderStyle Width="20" /> |
| <ItemStyle Width="20" /> |
| </telerik:GridClientSelectColumn> |
| <telerik:GridTemplateColumn HeaderText="Status" UniqueName="userIcon"> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn DataField="Username" AllowSorting="true" AllowFiltering="false" |
| DataType="System.String" Display="true" HeaderText="Username" ReadOnly="true" Resizable="true" ShowSortIcon="true" UniqueName="Username"></telerik:GridBoundColumn> |
| <telerik:GridTemplateColumn UniqueName="windowsAccount" HeaderText="Windows Account"> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn DataField="FirstName" AllowSorting="true" AllowFiltering="false" |
| DataType="System.String" Display="true" HeaderText="First Name" ReadOnly="true" Resizable="true" ShowSortIcon="true" UniqueName="Username"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="LastName" AllowSorting="true" AllowFiltering="false" |
| DataType="System.String" Display="true" HeaderText="Last Name" ReadOnly="true" Resizable="true" ShowSortIcon="true" UniqueName="Username"></telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Position" AllowSorting="true" AllowFiltering="false" |
| DataType="System.String" Display="true" HeaderText="Position" ReadOnly="true" Resizable="true" ShowSortIcon="true" UniqueName="Username"></telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| </telerik:RadGrid> |
var _5=Sys.WebForms.PageRequestManager.getInstance();
_5.remove_pageLoaded(this._pageLoadedHandler);
this._pageLoadedHandler=null;
The dispose method does not check to see whether this._pageLoadedHandler exists and is not null. If the window is immediately refreshed (perhaps user clicks a link very quickly, or http-refresh or some other client redirect is used), the page loaded handler will not have been set.
If believe a simple if test would fix the bug, such as:
if (this._pageLoadedHandler) {
var _5=Sys.WebForms.PageRequestManager.getInstance();
_5.remove_pageLoaded(this._pageLoadedHandler);
this._pageLoadedHandler=null;
}
Thanks for looking into this.
David
Hi,
I have been working with the telerik r.a.d. window ASP.NET control recently. I am facing a javascript error when I try to close the radwindow. Please read the paragraph below to get a clear picture of the requirement and design.
I have a my default.aspx page which is the landing page and has a dhtml menu , upon selection of a menu item I open a radwindow (lets call it rw1). On click of a image on the rw1 window I have to open another radwindow (lest call it rw2) and there is a haze/gray screen in the backround so that the user cannot work on the default.aspx page or the rw1 window. From rw2 I have to open a third radwindow (lets call it rw3). Both the windows ( i.e., rw2 and rw3) have 2 buttons “apply” and “cancel”. From rw3 when the user clicks on apply the values are passed to the rw2 window and a listbox and a few labels are refreshed.
Note – I am not using OnClientClose handler to refresh the controls on rw2. I am doing it by accessing the controls via the radwindow manager which is on the dafault.aspx page.
var oManager = parent.GetRadWindowManager() ;
//window name here is the rw2 window name which is being passed in the query string when the rw3 window is opened.
var oWnd = oManager.GetWindowByName( windowName ) ;
//gets the outer div of the listbox, from which I can get the items
var oList = oWnd.GetContentFrame().contentWindow.$find('listname');
Now after the controls in rw2 are refreshed I have to close the rw3 window , the code that I use is below.
getRadWindow().Close();
function getRadWindow()
{
var oWindow = null;
if (window.radWindow) oWindow = window.radWindow;
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz az well)
return oWindow;
}
This works absolutely fine for me the controls get refreshed and the window closes. The problem is the cancel button implementation. On the cancel click I just have to close the radwindow (rw3 or rw2 as both have cancel buttons).
I tried by using
getRadWindow().Close();
This throws a script error in the following piece of code at location colored red:
case Sys.Browser.InternetExplorer:
Sys.UI.DomElement.getLocation = function Sys$UI$DomElement$getLocation(element) {
/// <param name="element" domElement="true"></param>
/// <returns type="Sys.UI.Point"></returns>
var e = Function._validateParams(arguments, [
{name: "element", domElement: true}
]);
if (e) throw e;
if (element.self || element.nodeType === 9) return new Sys.UI.Point(0,0);
var clientRects = element.getClientRects();
if (!clientRects || !clientRects.length) {
return new Sys.UI.Point(0,0);
}
var w = element.ownerDocument.parentWindow;
var offsetL = w.screenLeft - top.screenLeft - top.document.documentElement.scrollLeft + 2;
var offsetT = w.screenTop - top.screenTop - top.document.documentElement.scrollTop + 2;
var f = w.frameElement || null;
if (f) {
var fstyle = f.currentStyle;
offsetL += (f.frameBorder || 1) * 2 +
(parseInt(fstyle.paddingLeft) || 0) +
(parseInt(fstyle.borderLeftWidth) || 0) -
element.ownerDocument.documentElement.scrollLeft;
offsetT += (f.frameBorder || 1) * 2 +
(parseInt(fstyle.paddingTop) || 0) +
(parseInt(fstyle.borderTopWidth) || 0) -
element.ownerDocument.documentElement.scrollTop;
}
var clientRect = clientRects[0];
return new Sys.UI.Point(
clientRect.left - offsetL,
clientRect.top - offsetT);
}
break;
The above snippet is from the ScriptResource.axd file (is it a telerik specific file?). The lines that throw the error are marked in red. The error message is “unspecified error”. I suppose this is not a microsoft specific file as it has many switch cases for different browsers.
This error comes only on IE. I tested with firefox and it works fine there. This is a showstopper in IE for me. Please help.
