Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
159 views
I have a Grid with a Group setup. The grid has a CSV export button, uses an SqlDataSource, and is not ajaxified.

When GroupsDefaultExpanded="true" the export has all of the data but when GroupsDefaultExpanded="false" the export is empty.

How can I force the grid to export the data even though it begins with all groups collapsed?
Adam Hewgill
Top achievements
Rank 1
 answered on 16 Nov 2009
3 answers
148 views

While using Combobox with LoadOnDemand with PC-Browser there is no error displayed and all is fine -
when using WindowsMobile-based devices and Opera Mobile 9.7 I get the following error-messages:

Invalid object passed in, ':' or '}' expected.
Unrecognized escape sequence.
Unterminated string passed in.



{"Command":"LOD","Text":"bre","ClientState":{"value":"","text":""."enabled ....

Do you have any idea on what happens here and how to fix this?

Best regards,
Torben
Simon
Telerik team
 answered on 16 Nov 2009
1 answer
148 views
I'm dynamically creating RadDock's within a RadZone (vertically).  In order to add another RadDock in the RadZone, I am dragging a RadTreeNode into the RadDockZone.  The problem I am running into is that if I drop a RadTreeNode on a RadDock that has been dynamically created in the RadDockZone the OnNodeDrop event is not fired. 

I've have verified that OnClientNodeDropping is still called regardless.  The only difference is that the server side event is not fired when dropped on the RadDock, which is in the RadDockZone....but the server side event is fired when dropped directly on the RadDockZone.

Has anyone run into this issue before?
Dimitar Milushev
Telerik team
 answered on 16 Nov 2009
4 answers
176 views
I couldn't find any documentation for upgrading to 2009 Q3.  Do I need to uninstall the previous version first, as I only need the current release?    Are there any gotchas in doing this?  I just want to make absolutely sure before potentially wasting my dev environment
plamen
Top achievements
Rank 1
 answered on 16 Nov 2009
6 answers
368 views
This will crash (however this construction is allowed in standart asp.net grid component):

<telerik:GridTemplateColumn Visible="false">  
    <EditItemTemplate> 
            <asp:DropDownList ID="ddCategory" Runat="server" CssClass="GeneralDropDownList"></asp:DropDownList> 
    </EditItemTemplate> 
</telerik:GridTemplateColumn> 
 

System crashes on Databind with long message
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.  
   at Telerik.Web.UI.GridTemplateColumn.FillValues(IDictionary newValues, GridEditableItem editableItem)  
   at Telerik.Web.UI.GridEditableItem.ExtractValues(IDictionary newValues)  
   at Telerik.Web.UI.GridTableView.ExtractValuesFromItem(IDictionary newValues, GridEditableItem editedItem)  
   at Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group)  
   at Telerik.Web.UI.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls)  
   at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource)  
   at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)  
   at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)  
   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)  
   at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)  
   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()  
   at Telerik.Web.UI.GridTableView.PerformSelect()  
   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()  
   at Telerik.Web.UI.GridTableView.DataBind()  
   at Telerik.Web.UI.RadGrid.DataBind()  
   at System.Web.UI.Control.DataBindChildren()  
   at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)  
   at System.Web.UI.Control.DataBind()  
   at System.Web.UI.Control.DataBindChildren()  
   at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)  
   at System.Web.UI.Control.DataBind()  
   at Telerik.Web.UI.GridItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows)  
   at Telerik.Web.UI.GridItemBuilder.InitializeItem(Int32 dataSourceIndex, String& nextItemHierarchicalIndex, Boolean& itemIsInEditMode)  
   at Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group)  
   at Telerik.Web.UI.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls)  
   at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource)  
   at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)  
   at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)  
   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)  
   at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback)  
   at System.Web.UI.WebControls.DataBoundControl.PerformSelect()  
   at Telerik.Web.UI.GridTableView.PerformSelect()  
   at System.Web.UI.WebControls.BaseDataBoundControl.DataBind()  
   at Telerik.Web.UI.GridTableView.DataBind()  
   at Telerik.Web.UI.RadGrid.DataBind()  
   at Sleza4eEngine.LRMup.controls.components.BFfamily.AttachmentsControl.LoadGrid(Boolean AddNew) in D:\Sleza4e\Job\SourceCode\lrmup\src\LRMup\controls\components\BFfamily\main\AttachmentsControl.ascx.cs:line 71  
   at Sleza4eEngine.LRMup.controls.components.BFfamily.AttachmentsControl.processData(XmlNode dataNode) in D:\Sleza4e\Job\SourceCode\lrmup\src\LRMup\controls\components\BFfamily\main\AttachmentsControl.ascx.cs:line 32  
   at Sleza4eEngine.LRMup.controls.content.file.LoadGroups(Boolean FilePostBack) in D:\Sleza4e\Job\SourceCode\lrmup\src\LRMup\controls\content\file.ascx.cs:line 329  
   at Sleza4eEngine.LRMup.controls.content.file.Page_Load(Object sender, EventArgs e) in D:\Sleza4e\Job\SourceCode\lrmup\src\LRMup\controls\content\file.ascx.cs:line 210  
   at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)  
   at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)  
   at System.EventHandler.Invoke(Object sender, EventArgs e)  
   at System.Web.UI.Control.OnLoad(EventArgs e)  
   at System.Web.UI.Control.LoadRecursive()  
   at System.Web.UI.Control.LoadRecursive()  
   at System.Web.UI.Control.LoadRecursive()  
   at System.Web.UI.Control.LoadRecursive()  
   at System.Web.UI.Control.LoadRecursive()  
   at System.Web.UI.Control.LoadRecursive()  
   at System.Web.UI.Control.LoadRecursive()  
   at System.Web.UI.Control.LoadRecursive()  
   at System.Web.UI.Control.LoadRecursive()  
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
   --- End of inner exception stack trace ---  
   at System.Web.UI.Page.HandleError(Exception e)  
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
   at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)  
   at System.Web.UI.Page.ProcessRequest()  
   at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)  
   at System.Web.UI.Page.ProcessRequest(HttpContext context)  
   at ASP.start_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\a159c958\db1b23ec\App_Web_start.aspx.cdcab7d2.3eyik7my.0.cs:line 0  
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()  
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)  
 


That took some time to me to find the reason of the problem (my current grid is quite complex)
User just need to add empty ItemTemplate. However, it was not easy to find the reason

<telerik:GridTemplateColumn Visible="false">  
<ItemTemplate> 
</ItemTemplate>   
    <EditItemTemplate> 
            <asp:DropDownList ID="ddCategory" Runat="server" CssClass="GeneralDropDownList"></asp:DropDownList> 
    </EditItemTemplate> 
</telerik:GridTemplateColumn> 
 

Pavel
Telerik team
 answered on 16 Nov 2009
5 answers
274 views
hi, i just downloaded your controls and they look wonderful, so i will make tests to finalize my decision to purchase.

i am trying to do the following,i dont want to use radgrid edit functions,  i want to add a rad grid with records and i want to click edit button then it will show form view with the records data so i can update or insert a new record, my questions are

-what is the best approach to make edit button?

-best way to pass the record id to the form view without page refresh?

-i want when i click edit to hide the grid and show the form view and vise versa when i update the record to hide form view and show grid view so should i add to the button click even a command to make grid.visible = false and form view.visible = true and vise versa ? or should i do that through java script to change the css class for each ?

-when i finish the edit and go back to hte grid i want the edited row grid to be highlighted ?

- best approch to ajexefy the whole process?

thx in advanced

Monish
Top achievements
Rank 1
 answered on 16 Nov 2009
5 answers
243 views
We have a RadComboBox with EnableLoadOnDemand set to true which can potentially contain angle brackets and such. The RadComboBox shows this information with no difficulty even though it does not appear to be HtmlEncoded. When an event fires and the system does a postback, we get an HttpRequestValidationException. If I HtmlEncode the item text before I populate the combobox, I see the encoding rather than the encoded character. I.e., I see &amp; rather than an ampersand. I realize I can globally disable request validation but that is far from an ideal solution. Where do I need to HtmlEncode the text so that it displays properly and does not throw an exception on submitting the page?
Simon
Telerik team
 answered on 16 Nov 2009
2 answers
174 views
I'd like to know if it's possible to use a RadCombobox within an XMLHttpPanel. 

My attempts thus far yield the following error:

"XMLHttpPanel Callback Loading error: 
  Exception=Script control 'cmbo2' is not a registered script control.  Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl"

My code looks like this:

<%@ Page Language="VB" %> 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/tr/xhtml11/DTD/xhtml11.dtd"> 
 
<script runat="server">  
    Protected Overrides Sub OnPreRender(ByVal e As EventArgs)  
        MyBase.OnPreRender(e)  
        ScriptManager1.RegisterScriptControl(Of RadComboBox)(cmbo2)  
    End Sub  
      
    Protected Sub XmlHttpPanel_ServiceRequest(ByVal sender As Object, ByVal e As RadXmlHttpPanelEventArgs)  
        Dim val As String = e.Value  
 
        'Simulate a longer process  
        System.Threading.Thread.Sleep(1000)  
 
        cmbo2.Items.Clear()  
        lbl1.Text = Now 
    End Sub  
      
</script> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
    <head id="Head1">  
        <title></title>  
          
        <script language="javascript" type="text/javascript">  
            function cmboChanged(sender, args) {  
                var panel = $find("<%=RadXmlHttpPanel1.ClientID%>");  
                panel.set_value("");  
            }  
        </script>                  
                  
    </head> 
    <body> 
    <form id="form1" method="post" runat="server">  
        <telerik:RadScriptManager runat="server" ID="ScriptManager1" /> 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"></telerik:RadAjaxLoadingPanel> 
          
        <telerik:RadComboBox runat="server" ID="cmbo1" OnClientSelectedIndexChanged="cmboChanged" > 
            <Items> 
                <telerik:RadComboBoxItem Text="1" Value="1" /> 
                <telerik:RadComboBoxItem Text="2" Value="2" /> 
                <telerik:RadComboBoxItem Text="3" Value="3" /> 
                <telerik:RadComboBoxItem Text="4" Value="4" /> 
            </Items> 
        </telerik:RadComboBox> 
 
        <telerik:RadXmlHttpPanel   
            ID="RadXmlHttpPanel1" runat="server"   
            LoadingPanelID="RadAjaxLoadingPanel1" 
            OnServiceRequest="XmlHttpPanel_ServiceRequest">  
            <telerik:RadComboBox runat="server" ID="cmbo2" > 
                <Items> 
                    <telerik:RadComboBoxItem Text="1" Value="1" /> 
                    <telerik:RadComboBoxItem Text="2" Value="2" /> 
                    <telerik:RadComboBoxItem Text="3" Value="3" /> 
                    <telerik:RadComboBoxItem Text="4" Value="4" /> 
                </Items> 
            </telerik:RadComboBox>      
              
            <asp:Label runat="server" id="lbl1" /> 
                          
        </telerik:RadXmlHttpPanel> 
 
        </form> 
    </body> 
</html> 
 
 
Pero
Telerik team
 answered on 16 Nov 2009
1 answer
184 views
I'm not sure what is firing this event but in certain cases where you double click or single click the titlebar, the dock will tries to reposition itself again in the dockzone.
In certain extreme cases, it will move to another dockzone.
I would like to remove this behavior from the dock as my layout is fixed.
Thanks.
Pero
Telerik team
 answered on 16 Nov 2009
1 answer
94 views
I need to export a subset of documents from a grid.  Here is the flow:

1. User Clicks export
2. A popup window displays with date fields (To and From)
3. User populates fields and clicks "Go"
4. Only the rows within the user entered dates are exported
5.  The grid on the screen is unchanged

I don't want to filter the grid on the screen.  I would like to apply the filter only in the code behind while filtering. Is this possible?

Thanks.

- Adam L
Pavlina
Telerik team
 answered on 16 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?