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

This is a bit odd.

Vers. Q4 2006
I have a tree view in a usercontrol (a FileFolder Explorer)

Loads fine,..shows dir structure etc.

If I expand a node,..all fine....but
When I expand a node in those just opened,..I get  this Error:
(which is weird,..cos,...I do use 

,

IPostBackEventHandler

and

public void RaisePostBackEvent(string eventArgument)

{

if (eventArgument != null)

{

}

}

Any suggestions , help please 
The Holding page, does do the whole load and reload usercontrol tracking...still that could be responsible, but other user controls in the holding page (Dynamically loaded and ajaxified dynamically) work fine.

TIA
Neal

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.WebControls.RadTreeView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String s) +414

Neal
Top achievements
Rank 1
 answered on 23 Jun 2008
2 answers
763 views
Hello Telerik,

I seem to be getting this error message when I up date my db....

Server Error in '/CWCMATest' Application.

Value of '29/12/1899 12:00:00 AM' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'.
Parameter name: SelectedDate

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentOutOfRangeException: Value of '29/12/1899 12:00:00 AM' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'.
Parameter name: SelectedDate

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentOutOfRangeException: Value of '29/12/1899 12:00:00 AM' is not valid for 'SelectedDate'. 'SelectedDate' should be between 'MinDate' and 'MaxDate'.
Parameter name: SelectedDate]
Telerik.Web.UI.RadDatePicker.set_SelectedDate(Nullable`1 value) +516
Telerik.Web.UI.RadDatePicker.set_DbSelectedDate(Object value) +527
Telerik.Web.UI.GridDateTimeColumnEditor.set_Text(String value) +41
Telerik.Web.UI.GridBoundColumn.OnDataBindColumn(Object sender, EventArgs e) +496
System.Web.UI.Control.OnDataBinding(EventArgs e) +99
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
System.Web.UI.Control.DataBindChildren() +211
System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
System.Web.UI.Control.DataBind() +15
Telerik.Web.UI.GridEditFormItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows) +227
Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group) +815
Telerik.Web.UI.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls) +129
Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +576
Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +416
System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
Telerik.Web.UI.GridTableView.PerformSelect() +4
System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
Telerik.Web.UI.GridTableView.DataBind() +235
Telerik.Web.UI.RadGrid.DataBind() +80
System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() +82
System.Web.UI.WebControls.CompositeDataBoundControl.CreateChildControls() +72
System.Web.UI.Control.EnsureChildControls() +87
Telerik.Web.UI.GridBaseDataList.get_Controls() +15
Telerik.Web.UI.RadAjaxControl.PopulatePlainPanels(Control parent, List`1 list, Control root) +63
Telerik.Web.UI.RadAjaxControl.OnPagePreRender(Object sender, EventArgs e) +1090
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Control.OnPreRender(EventArgs e) +8673094
System.Web.UI.Control.PreRenderRecursiveInternal() +80
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


Version Information: Microsoft .NET Framework Version:2.0.50727.3031; ASP.NET Version:2.0.50727.3031


Here is he code for the rad grid:

                <Columns> 
                    <telerik:GridEditCommandColumn AutoPostBackOnFilter="True" UniqueName="EditCommandColumn" 
                        ButtonType="ImageButton" CancelImageUrl="~/Images/false.gif" CancelText="" EditImageUrl="~/Images/Edit.gif" 
                        EditText="" FilterImageUrl="~/Images/Filter.gif" InsertImageUrl="~/Images/AddRecord.gif" 
                        InsertText="" UpdateImageUrl="~/Images/true.gif" UpdateText=""> 
                        <ItemStyle Width="50px" /> 
                    </telerik:GridEditCommandColumn> 
                    <telerik:GridBoundColumn DataField="CallID" HeaderText="CallID" 
                        ReadOnly="True" SortExpression="CallID" UniqueName="CallID"  
                        DataType="System.Int32" Visible="false"> 
                    </telerik:GridBoundColumn> 
                    <telerik:GridDropDownColumn DataField="CustomerID" DataSourceID="AccessDataSource7" DropDownControlType="RadComboBox" 
                        HeaderText="Customer Name" ListTextField="Name_Contact" ListValueField="CustomerID" SortExpression="CustomerID" 
                        UniqueName="CustomerID" AutoPostBackOnFilter="True" CurrentFilterFunction="Contains" 
                        Display="False" EditFormColumnIndex="0"> 
                    </telerik:GridDropDownColumn> 
                    <telerik:GridDropDownColumn DataField="Performed_By" DataSourceID="AccessDataSource3" DropDownControlType="RadComboBox" 
                        HeaderText="Performed By" ListTextField="FullName" ListValueField="UserID" SortExpression="Performed_By" 
                        UniqueName="Performed_By" AutoPostBackOnFilter="True" CurrentFilterFunction="Contains" 
                        Display="False" EditFormColumnIndex="0"> 
                    </telerik:GridDropDownColumn> 
                    <telerik:GridDateTimeColumn DataField="Call_Date" HeaderText="Call_Date" SortExpression="Call_Date" 
                        UniqueName="Call_Date" DataFormatString="{0:d}" PickerType="DatePicker" 
                        EditFormColumnIndex="0" DataType="System.DateTime"> 
                    </telerik:GridDateTimeColumn> 
                    <telerik:GridDateTimeColumn DataField="Call_Time" HeaderText="Call_Time" SortExpression="Call_Time" 
                        UniqueName="Call_Time" PickerType="TimePicker" DataFormatString="{0:t}" 
                        EditFormColumnIndex="0" DataType="System.DateTime"> 
                    </telerik:GridDateTimeColumn> 
                    <telerik:GridDropDownColumn DataField="Subject" DataSourceID="AccessDataSource4" DropDownControlType="RadComboBox" 
                        HeaderText="Subject" ListTextField="SubjectType" ListValueField="SubjectID" SortExpression="Subject" 
                        UniqueName="Subject" AutoPostBackOnFilter="True" CurrentFilterFunction="Contains" 
                        Display="False" EditFormColumnIndex="0"> 
                    </telerik:GridDropDownColumn> 
                    <telerik:GridDropDownColumn DataField="Officer_Responsible" DataSourceID="AccessDataSource3" DropDownControlType="RadComboBox" 
                        HeaderText="Officer Responsible" ListTextField="FullName" ListValueField="UserID" SortExpression="Officer_Responsible" 
                        UniqueName="Officer_Responsible" AutoPostBackOnFilter="True" CurrentFilterFunction="Contains" 
                        Display="False" EditFormColumnIndex="0"> 
                    </telerik:GridDropDownColumn> 
                    <telerik:GridDropDownColumn DataField="Action" DataSourceID="AccessDataSource5" DropDownControlType="RadComboBox" 
                        HeaderText="Action" ListTextField="ActionName" ListValueField="Action_ID" SortExpression="Action" 
                        UniqueName="Action" AutoPostBackOnFilter="True" CurrentFilterFunction="Contains" 
                        Display="False" EditFormColumnIndex="0"> 
                    </telerik:GridDropDownColumn> 
                    <telerik:GridHTMLEditorColumn UniqueName="ActionNotes" SortExpression="ActionNotes" HeaderText="ActionNotes" 
                        DataField="ActionNotes"> 
                    </telerik:GridHTMLEditorColumn> 
                    <telerik:GridDropDownColumn DataField="Status" DataSourceID="XmlDataSource1" DropDownControlType="RadComboBox" 
                        HeaderText="Status" ListTextField="Text" ListValueField="Value" SortExpression="Status" 
                        UniqueName="Status" AutoPostBackOnFilter="True" CurrentFilterFunction="Contains" 
                        Display="False" EditFormColumnIndex="0"> 
                    </telerik:GridDropDownColumn> 
<%--                        <MyCol:MyTemplateColumn Datafield="CallbackRequired" Datatype="System.Boolean" Headertext="Complete?" 
                            SortExpression="CallbackRequired" UniqueName="CallbackRequired" EditFormColumnIndex="1"> 
                            <ItemTemplate> 
                                <asp:Image ID="Image5" runat="server" ImageUrl="~/Images/true.gif" Visible='<%# bool.Parse(Eval("Status").ToString()) %>' /> 
                                <asp:Image ID="Image6" runat="server" ImageUrl="~/Images/false.gif" Visible='<%# !bool.Parse(Eval("Status").ToString()) %>' /> 
                            </ItemTemplate> 
                        </MyCol:MyTemplateColumn> 
--%>                  <telerik:GridCheckBoxColumn DataField="CallbackRequired"  
                       DataType="System.Boolean" HeaderText="CallbackRequired"  
                        SortExpression="CallbackRequired" UniqueName="CallbackRequired" EditFormColumnIndex="1"> 
                    </telerik:GridCheckBoxColumn> 
                    <telerik:GridDateTimeColumn DataField="CallbackTime" HeaderText="CallbackTime" SortExpression="CallbackTime" 
                        UniqueName="CallbackTime" DataFormatString="{0:t}" PickerType="TimePicker" 
                        EditFormColumnIndex="1" DataType="System.DateTime"> 
                    </telerik:GridDateTimeColumn> 
                    <telerik:GridDateTimeColumn DataField="CallbackDate" HeaderText="CallbackDate" SortExpression="CallbackDate" 
                        UniqueName="CallbackDate" DataFormatString="{0:d}" PickerType="DatePicker" 
                        EditFormColumnIndex="1" DataType="System.DateTime"> 
                    </telerik:GridDateTimeColumn> 
                    <telerik:GridCheckBoxColumn DataField="CallCompleted" DataType="System.Boolean"  
                        HeaderText="CallCompleted" SortExpression="CallCompleted"  
                        UniqueName="CallCompleted" EditFormColumnIndex="1"> 
                    </telerik:GridCheckBoxColumn> 
                    <telerik:GridDateTimeColumn DataField="Completed_Date" HeaderText="Completed_Date" SortExpression="Completed_Date" 
                        UniqueName="Completed_Date" DataFormatString="{0:d}" PickerType="DatePicker" 
                        EditFormColumnIndex="1" DataType="System.DateTime"> 
                    </telerik:GridDateTimeColumn> 
                    <telerik:GridHTMLEditorColumn UniqueName="Notes" SortExpression="Notes" HeaderText="Notes" 
                        DataField="Notes" EditFormColumnIndex="1"> 
                    </telerik:GridHTMLEditorColumn> 
                    <telerik:GridCheckBoxColumn DataField="Mailout_Requested"  
                        DataType="System.Boolean" HeaderText="Mailout_Requested"  
                        SortExpression="Mailout_Requested" UniqueName="Mailout_Requested" EditFormColumnIndex="1"> 
                    </telerik:GridCheckBoxColumn> 
                    <telerik:GridCheckBoxColumn DataField="MailOutSent" DataType="System.Boolean"  
                        HeaderText="MailOutSent" SortExpression="MailOutSent" UniqueName="MailOutSent" EditFormColumnIndex="1"> 
                    </telerik:GridCheckBoxColumn> 
                    <telerik:GridDateTimeColumn DataField="MailOutDate" HeaderText="MailOutDate" SortExpression="MailOutDate" 
                        UniqueName="MailOutDate" DataFormatString="{0:d}" PickerType="DatePicker" 
                        EditFormColumnIndex="1" DataType="System.DateTime"> 
                    </telerik:GridDateTimeColumn> 
                </Columns> 
  

And at line 53 MyCol (Template column), it throws an excetion at line 56 why is this?




Shinu
Top achievements
Rank 2
 answered on 23 Jun 2008
5 answers
254 views
The height of my Panes in IE goes from declared 100% to some tiny fixed size.

Here is what the page looks like in FF.
FireFox Layout

and here is what the same page looks like in IE6&7
IE Layout

Here is the markup:
<telerik:RadDockLayout runat="server" ID="RadDockLayout1"> 
        <telerik:RadSplitter ID="RadSplitter1" runat="server" Width="100%" Height="100%" 
            Orientation="Horizontal"> 
            <telerik:RadPane ID="RadPane1" runat="server" Scrolling="Y" Height="100%" Width="100%"> 
                <telerik:RadDockZone runat="server" ID="RadDockZone1"> 
                    <telerik:RadDock runat="server" ID="dock1" Width="100%"> 
                        <ContentTemplate> 
                            Dock 1: Hello from zone 1 
                        </ContentTemplate> 
                    </telerik:RadDock> 
                </telerik:RadDockZone> 
            </telerik:RadPane> 
            <telerik:RadSplitBar ID="RadSplitBar1" runat="server" Width="20" Height="100%" /> 
            <telerik:RadPane ID="RadPane2" runat="server" Scrolling="Y" Height="100%" Width="100%"> 
                <telerik:RadSplitter ID="RadSplitter2" runat="server" Width="100%" Height="100%" 
                    Orientation="Vertical"> 
                    <telerik:RadPane ID="RadPane3" runat="server" Scrolling="Y" Height="100%" Width="25%"> 
                        <telerik:RadDockZone ID="RadDockZone2" runat="server"> 
                            <telerik:RadDock runat="server" ID="dock2" Width="100%"> 
                                <ContentTemplate> 
                                    Dock 3: Hello from zone 2 
                                </ContentTemplate> 
                            </telerik:RadDock> 
                            <telerik:RadDock runat="server" ID="RadDock1" Width="100%"> 
                                <ContentTemplate> 
                                    Dock 4: Hello from zone 2 
                                </ContentTemplate> 
                            </telerik:RadDock> 
                        </telerik:RadDockZone> 
                    </telerik:RadPane> 
                    <telerik:RadSplitBar ID="RadSplitBar2" runat="server" Width="20" Height="100%" /> 
                    <telerik:RadPane ID="RadPane4" runat="server" Scrolling="Y" Height="100%" Width="75%"> 
                        <telerik:RadDockZone ID="RadDockZone3" runat="server"> 
                            <telerik:RadDock runat="server" ID="RadDock2" Width="100%"> 
                                <ContentTemplate> 
                                    Dock 5: Hello from zone 3 
                                </ContentTemplate> 
                            </telerik:RadDock> 
                            <telerik:RadDock runat="server" ID="RadDock3" Width="100%"> 
                                <ContentTemplate> 
                                    Dock 6: Hello from zone 3 
                                </ContentTemplate> 
                            </telerik:RadDock> 
                        </telerik:RadDockZone> 
                    </telerik:RadPane> 
                </telerik:RadSplitter> 
            </telerik:RadPane> 
        </telerik:RadSplitter> 
    </telerik:RadDockLayout> 


Now i realize this layout has nested splitters, but this problem occurs even with just a single splitter.

The world would be a better place if everyone used FF, but until then we will need to support IE.


Tsvetie
Telerik team
 answered on 23 Jun 2008
2 answers
262 views
Hi

Since i update to the newest Component, i can't use this method:
RadGrid1.SelectedIndex !!!

What is the newer Property for RadGrid SelectedIndex ??

best regards
Sebastian
Telerik team
 answered on 23 Jun 2008
1 answer
177 views
Hi,

Here is the scenario I am having trouble with. I have a page with multiple RadAjaxPanels each with its own info. Each panel has a link which opens a RadWindow that contains a form. Once the user hits submit on this form the window closes and calls the OnClientCloseX() javascript function as per the HelpDesk example (muliple functions for each of the panels). Each of the panels have their own codebehind to handle the ajax request which would update their panel data. However the 

$find("<%= RadAjaxPanel1.ClientID %>").ajaxRequest(-1);

line causes the error shown on the bottom of the post. If I replace the line with

$find("ctl00_LeftPanel_RadAjaxPanel1").ajaxRequest(-1);

then the panel gets updated using Ajax correctly. This is the code that is generated by the ClientID request. What do I need to change to avoid the error and not have to enter the ID manually for all of the panels. The result is at the bottom of the post.


The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).]
System.Web.UI.ControlCollection.AddAt(Int32 index, Control child) +2108094
Telerik.Web.UI.RadAjaxControl.MoveUpdatePanel(Control initiator, Control updated) +110
Telerik.Web.UI.RadAjaxControl.PerformRender() +418
Telerik.Web.UI.RadAjaxControl.OnPageRender(HtmlTextWriter writer, Control page) +1222
Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +87
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +98
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +20
System.Web.UI.Page.Render(HtmlTextWriter writer) +26
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2558
Konstantin Petkov
Telerik team
 answered on 23 Jun 2008
1 answer
93 views
Hi,

I'm using Telerik Chart control.
I would like to set a strings values (instead of double values) in X axis.

Does anyone know how to do it?

Any help would be appreciate.

Thanks,
Yossi
Vladimir Milev
Telerik team
 answered on 23 Jun 2008
1 answer
97 views
I need a column in my grid that includes a folder name in server. User has to select server's folders in editing grid. does anyone have a solution for this ? Can I use telerik's components to make this. celection can me made by combobox, tree or any other way. important thing is showing folders to users and make user to select it. then I will write selection to tectbox and save it to db.

best regards.
Shinu
Top achievements
Rank 2
 answered on 23 Jun 2008
1 answer
140 views
I am using radgrid with action column which has two links, Info and Edit.
If we click info link it opens a radtooltip manager where i am binding a usercontrol to show all user details in labels

But we click Edit link it opens another tooltip manager where i am binding a another usercontrol to show all user details in textboxes where user can edit their contents and save it

The 'info' Tooltip manager is working right which shows user details corresponding to grid row.

But the 'Edit' Tooltip manager is not showing properly, the actual problem is when we open a 'Edit' tooltip say for the first row of the grid, it shows all relevant details of the first row user in the tooltip, but when i click the third user edit link it also shows the same first row user's details not the third user's details.
When i reload the same page, and i click the thrid row for the first time after reloading  it's showing the third row details correctly, but when i click the first row link it's showing the same third row details not the first row details

My Doubt is can we have two tooltip manager in same row of the grid linked to two different controls. If yes, why 'info' tooltip working not the 'edit' tooltip not working properly.

can you help regarding this


Yavor
Telerik team
 answered on 23 Jun 2008
1 answer
67 views
When I turn the border visibility to false (Appearance/Border/Visible=false) I still see a few pixels in the upper left corner.  I am not convinced that the pixels are remnants of the border but it would be nice to be able to get rid of them.  I have the chart and page backgound color set to white.  Any ideas?
Vladimir Milev
Telerik team
 answered on 23 Jun 2008
5 answers
389 views
Hi

I have a RequiredValidator attached to a RadTextBox in an Popup Edit FormTemplate to do Insert. When I click X (top right corner) to close the popup window, the form does the validation and raises error if the field is empty. This is not what I would like to happen.

How do I either (1) get rid of / hide the X button or make it behave like a Cancel LinkButton. The bottom line is it should not do validation upon cancelation.

Please help.
Thanks
Sebastian
Telerik team
 answered on 23 Jun 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?