Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
221 views
I have been trying to get the RadGrid to Export my multi table view into excel.  If I don't try and do multiple tables it exports fine.  I think I have finally gotten AJAX turned off and it is trying to export and I get an error that there is no ContractID which I think is because there isn't a child row for that parent and when I make sure that all the parent rows have child rows I get.

I have try catch blocks in every code block I have and this is never trapped.  I am going to have to switch to a different set of controls from another vendor if I can't make this work by end of day tomorrow.  

Thanks,

John

 

Server Error in '/' Application.

Syntax error: Missing operand before '=' operator.

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.Data.SyntaxErrorException: Syntax error: Missing operand before '=' operator.

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:

[SyntaxErrorException: Syntax error: Missing operand before '=' operator.]
   System.Data.ExpressionParser.Parse() +4821928
   System.Data.DataExpression..ctor(DataTable table, String expression, Type type) +121
   System.Data.DataView.set_RowFilter(String value) +153
   System.Data.LinqDataView.set_RowFilter(String value) +53
   Telerik.Web.UI.GridEnumerableFromDataView.PerformTransformation() +372
   Telerik.Web.UI.GridEnumerableFromDataView.TransformEnumerable() +21
   Telerik.Web.UI.GridTableView.GetEnumerator(Boolean useDataSource, GridEnumerableBase resolvedDataSource, ArrayList dataKeysArray) +105
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +187
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +544
   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.GridTableView.BindClone(GridTableView clone) +59
   Telerik.Web.UI.GridItemBuilder.BindDetailTable(GridDataItem parentItem, GridTableView cloned) +58
   Telerik.Web.UI.GridItemBuilder.BindDetailTables(GridDataItem parentItem, GridNestedViewItem detailItem) +144
   Telerik.Web.UI.GridItemBuilder.CreateItems(GridGroupingContext group) +1181
   Telerik.Web.UI.GridTableView.CreateItems(IEnumerator enumerator, GridColumn[] columns, ControlCollection controls) +129
   Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource) +593
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +544
   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
   Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +2120
   Telerik.Web.UI.RadGrid.RebindForExport() +107
   Telerik.Web.UI.Grid.Export.TableViewExporter.PrepareForExport() +160
   Telerik.Web.UI.Grid.Export.TableViewExporter.page_PreRender(Object sender, EventArgs e) +5
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.OnPreRender(EventArgs e) +8682870
   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.3082; ASP.NET Version:2.0.50727.3082
John
Top achievements
Rank 2
 answered on 19 Aug 2009
2 answers
75 views
Hi,

I need help...

this is my code in aspx:

        <telerik:RadMenu ID="RadMenu1" runat="server">
            <Items>
                <telerik:RadMenuItem>
                    <ItemTemplate>
                        <b>Skin:</b>
                        <telerik:RadSkinManager ID="RadSkinManager1" runat="server" Skin="Hay" ShowChooser="True">
                        </telerik:RadSkinManager>
                    </ItemTemplate>
                </telerik:RadMenuItem>
            </Items>
        </telerik:RadMenu>

i need take the value into in RadSkinManager1.Skin...

I try this code into CS;
        Session["skinid"] = ((RadSkinManager)RadMenu1.FindControl("RadSkinManager1")).Skin;

Object reference not set to an instance of an object.


But dont't work, if i run CTRL+F5 in my screen show...


Line 13: 		{
Line 14: 			
Line 15: Session["skinid"] = ((RadSkinManager)RadMenu1.FindControl("RadSkinManager1")).Skin; Line 16: }


My question is ?

How get de value (Skin) the component RadSkinManager, but this component into in ITEMTAMPLATE for radmenu...

ps. sorry dont write very well my english, but i realy need this code my friendly's

tanks and best regards

José Luiz Brazil
Jose Luiz Borges
Top achievements
Rank 2
 answered on 19 Aug 2009
1 answer
90 views
I've been digging for a post on doing jquery or jquery-like transitions when a form template is opened and closed.  Rather than having the form suddenly appear or disappear, I'd like to see the form slide into place.

Has anyone used an approach successfully on this?  Given the wireup inside of of the asp.net ajax grid, is this possible?


Yavor
Telerik team
 answered on 19 Aug 2009
13 answers
850 views
After the Q2 2008 SP2 release of RadControls for ASP.NET AJAX we received several messages from customers who upgraded to the service pack and got a clientside javascript error from the RadFormDecorator saying
"_a.deleteRule is null or not an object".

Upon further research we were able to determine that the problem comes from using RadFormDecorator and RadStyleSheetManager on the same page.

The error is caused by new code in the RadFormDecorator that has to do with eliminating the short flicker when a page loads. Up until SP2  RadFormDecorator the user would shortly see the default browser elements before those were replaced with their decorated counterparts. Eliminating this flicker was the most common request that came back as feedback from customers. Unfortunately, it is an extremely tricky thing to do - as the way the RadFormDecorator functions is to decorate elements on the clientside, rather than do server-side processing.

We were able to workaround the flickering problem by using a css style to hide input elements, and then show them back after they are decorated. However, the hack relies on the
RadFormDecorator being able to find its own CSS file on the client and modify it. Unfortunately, when using RadStyleSheetManager all CSS files are combined into one single file, thus causing the RadFormDecorator to fail. This is a logical error that was not detected during our tests - and unfortunately there is no workaround for the time being.

We are working on ensuring that the
RadFormDecorator and  RadStyleSheetManager will work properly and the problem will be corrected in a matter of days. For the time being the only way around it is to not use  RadStyleSheetManager together with RadFormDecorator.


============================================
Update:

We found that the RadFormDecorator live examples will not work properly in Firefox if loaded through the web project of the RadControls installation (see the screenshot). If loaded directly via the provided Start menu shortcut (see the screenshot) one will not experience this problem. The RadFormDecorator will function properly in all developer projects and applications as well (except for if RadStyleSheetManager is used - see above)

=============================================
Update #2:

Two new issues were reported with the RadFormDecorator new page initialization and page layout mechanism in certain scenarios.
We have prepared solutions and workarounds for all reported issues. Attached is a simple page that provides the workarounds (two of those are pure CSS and one is javascript that needs to be pasted on the page without the need to modify anything else).


=============================================
Update #3:

An issue was reported with some of RadGrid inputs (such as the "previous page", and "next page" buttons) not visible when the RadFormDecorator is used. The problem comes from the fact that these inputs have no value/text and their look is styled completely using CSS. The "solutions" page was updated to provide a workaround for this scenario as well. As of the next official update, the RadFormDecorator will be modified to not style inputs that have a className/CssClass set. We assume that the presence of a classname would mean that the developer provides separate styling for the input that should not be changed by the RadFormDecorator. Instead, only "unstyled" inputs will be decorated.

=============================================
Update #4:

All problems discussed in this forum thread are fixed in the "Futures" release which is available from the Downloads section in your Client.net account.

There is a new problem however with INPUT elements that become invisible on the page when RadFormDecorator is used in MasterPage / ContentPage scenario. This problem is a side effect from a new approach that we tried to eliminate the initial flickering of the skinned controls.

The good news is that we will fix this problem as well for the Q2 release in 2 weeks. The new solution will be based on the original implementation of the "anti-flickering" fix which had problems when used with RadStyleSheetManager. Now we will make some changes in both products and from Q2 everything will work as expected.
For the time being there is a workaround that you can use in case you stumble upon this problem. What you need to do is to add the following code on the page:
<%@ Page Language="csharp" AutoEventWireup="true" MasterPageFile="./MasterPage.master" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"
    <asp:ScriptManager ID="ScriptManager1" runat="server"
    </asp:ScriptManager> 
     
    <script runat=server language=csharp>     
    public void OnPreRender(object sender, System.EventArgs args) 
    { 
        int last = RadFormDecorator1.Controls.Count -1;             
        RadFormDecorator1.Controls[last].ID = RadFormDecorator1.ID + "_hiddenInputsStyle";                                     
    } 
    </script> 
     
    <telerik:RadFormDecorator OnPreRender="OnPreRender" ID="RadFormDecorator1" runat="server" /> 
          
    <telerik:RadComboBox ID="cmbLeerling" runat="server" AutoPostBack="True" CausesValidation="False" 
        Skin="Outlook" Width="200px" AllowCustomText="True" MarkFirstMatch="True"
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
    </telerik:RadComboBox> 
 
</asp:Content> 




Georgi Tunev
Telerik team
 answered on 19 Aug 2009
3 answers
147 views

Hi,

Whenusing the RADScheduler I would like to add the user information in the subject sectionof the Inline Edit and the detail window as default.

Forexample when I login as a user and I am trying to set up an appointment Ishould be able to see my Name in the subject box as default.

Thanks

Sabrish

sabarishbabu
Top achievements
Rank 1
 answered on 19 Aug 2009
1 answer
135 views
I am trying to use the radListbox control and am experiencing some weird UI issues. There is a black box to the left of each item in the list box. It disappears when i hover over the item and then reappears when i move off the item. I have the listbox in the edittemplate of a rad grid.

<telerik:RadGrid ID="grdTopics" runat="server" AutoGenerateColumns="False" GridLines="None" AllowPaging="false" AllowSorting="false" ShowFooter="false" ShowHeader="true"  > 
                <ClientSettings AllowExpandCollapse="true"></ClientSettings> 
                <MasterTableView Name="Topics" EditMode="InPlace" DataKeyNames="ID" HierarchyLoadMode="Client" NoMasterRecordsText="There are no Topics." NoDetailRecordsText="There are no Topics.">  
                      
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </RowIndicatorColumn> 
 
                    <ExpandCollapseColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </ExpandCollapseColumn> 
                    <Columns> 
                          
                                                  
                         <telerik:GridTemplateColumn HeaderText="Moderators" UniqueName="Moderators">                      
                             <ItemTemplate> 
                                 <asp:Label ID="lblTopics_View_Moderators" runat="server"></asp:Label> 
                             </ItemTemplate> 
                             <EditItemTemplate> 
                                <telerik:RadListBox ID="lstTopics_Edit_Moderators" runat="server" CheckBoxes="true" DataKeyField="ID" DataTextField="Name"   ></telerik:RadListBox> 
                             </EditItemTemplate> 
                        </telerik:GridTemplateColumn> 
                          
                        <telerik:GridTemplateColumn HeaderText="" UniqueName="Edit Topic">  
                             <ItemTemplate> 
                                <asp:ImageButton ID="btnTopics_View_EditTopic" runat="server" ImageUrl="~/DesktopModules/BAOffice/images/edit.gif" AlternateText="Edit Topic" CommandName="TOPICS_EDIT" CausesValidation="false" /> 
                            </ItemTemplate> 
                            <EditItemTemplate> 
                                <asp:ImageButton ID="btnTopics_Edit_SaveTopic" runat="server" ImageUrl="~/DesktopModules/BAOffice/images/save.gif" AlternateText="Save Topic" CommandName="TOPICS_SAVE" CausesValidation="false" /> 
                            </EditItemTemplate> 
                        </telerik:GridTemplateColumn> 
                          
                        <telerik:GridTemplateColumn HeaderText="" UniqueName="Delete Topic">  
                             <ItemTemplate> 
                                <asp:ImageButton ID="btnTopics_View_DeleteTopic" runat="server" ImageUrl="~/DesktopModules/BAOffice/images/delete.gif" AlternateText="Delete Topic" CommandName="TOPICS_DELETE"  CausesValidation="false"  OnClientClick="return ConfirmDelete();"/>  
                            </ItemTemplate> 
                            <EditItemTemplate> 
                                <asp:ImageButton ID="btnTopics_Edit_CancelTopic" runat="server" ImageUrl="~/DesktopModules/BAOffice/images/cancel.gif" AlternateText="Cancel" CommandName="TOPICS_CANCEL" CausesValidation="false" /> 
                            </EditItemTemplate> 
                        </telerik:GridTemplateColumn> 
                          
                        <telerik:GridTemplateColumn HeaderText="" UniqueName="Move Topic Up">  
                             <ItemTemplate> 
                                <asp:ImageButton ID="btnTopics_View_MoveUp" runat="server" ImageUrl="~/DesktopModules/BAOffice/images/action_up.gif" AlternateText="Move Topic Up" CommandName="TOPICS_MOVEUP" CausesValidation="false" /> 
                            </ItemTemplate> 
                            <EditItemTemplate> 
                                <asp:Image ID="imgTopics_Edit_MoveUpSpacer" runat="server" ImageUrl="~/DesktopModules/BAOffice/images/spacer.gif" /> 
                            </EditItemTemplate> 
                        </telerik:GridTemplateColumn> 
                          
                         <telerik:GridTemplateColumn HeaderText="" UniqueName="Move Topic Down">  
                             <ItemTemplate> 
                                <asp:ImageButton ID="btnTopics_View_MoveDown" runat="server" ImageUrl="~/DesktopModules/BAOffice/images/action_down.gif" AlternateText="Move Topic Down" CommandName="TOPICS_MOVEDOWN" CausesValidation="false" /> 
                            </ItemTemplate> 
                            <EditItemTemplate> 
                                <asp:Image ID="imgTopics_Edit_MoveDownSpacer" runat="server" ImageUrl="~/DesktopModules/BAOffice/images/spacer.gif" /> 
                            </EditItemTemplate> 
                        </telerik:GridTemplateColumn> 
                    </Columns> 
                      
                      
                </MasterTableView> 
            </telerik:RadGrid> 


How do i get rid of them? If there is a way to show you an image, i can send you a screenshot of what it looks like.
Dave
Top achievements
Rank 1
 answered on 19 Aug 2009
6 answers
235 views
Hi,

1.I want to change the look of the Day view of Rad Schedular as Horizontal time display

2.I want to show the Scheduler like as bellow
 8AM 9Am 10Am 11Am 12PM 1pm ...
Room1 <-User-1---> <-----Usre-2---------->

Room2 <--------User-3-------------------------->
 .
 .
 .

Thanks
Sabarish
sabarishbabu
Top achievements
Rank 1
 answered on 19 Aug 2009
6 answers
144 views
Hi,
I have a bar code scanner that sends an "enter" as the last char. I like to use it for inserting data in a grid. The behavior i need is that the enter should work like the tab key works.
Benny
Top achievements
Rank 1
 answered on 19 Aug 2009
1 answer
111 views
How can I hide and show grid columns with UniqueName in client?
Daniel
Telerik team
 answered on 19 Aug 2009
1 answer
95 views
i am using color picker on my page but i dont want to use scipt manager
so that i am getting error
is it posible to use color picker with out scriptmanager
Svetlina Anati
Telerik team
 answered on 19 Aug 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?