Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
190 views
Hello Team,

I have a button inside a RadWindow and I'd like onclick for the RadWindow to close and the mainpage to redirect to another page. Can i achieve this?
This is what I have: 
(Codebehind Radwindow)
protected void btn_NavigateGoogle_Click(object sender, EventArgs e)  
    {  
        InjectScriptLabel.Text = "<script>CloseAndNavigate()</" + "script>";  
    } 
(.ASPX file Radwindow)
  <script type="text/javascript">    
    
            function CloseAndNavigate()  
            {  
                GetRadWindow().close();   
                window.location = Http://www.google.com;           
            }  
      </script> 

<

asp:Button ID="btn_NavigateGoogle" runat="server"

 

 

Text="Close Me" onclick="btn_NavigateGoogle_Click" />

 

<

asp:Label ID="InjectScriptLabel" runat="server" Visible="true"></asp:Label>

 

De window does close onbuttonclick, but it wont redirect.
Any suggestions? I'd appreciate your help

~Guen~
Guenni
Top achievements
Rank 1
 answered on 27 Oct 2008
2 answers
123 views
After starting my web server when I first open a GridHTMLEditorColumn in edit mode the height isn't correct. The controls height is about 3/4 the height of the default font and only ever shows a single row of data no matter how many rows are entered.

Subsequently, if I open the editor the height of the GridHTMLEditorColumn is correct.

I have several RadGrid on separate pages that use the GridHTMLEditorColumn. They all have this same problem. They all work fine after I open any of them the first time.

I'm using the Q2 2008 build, dll's show product version 2008.02.0826.20.

--Mark
marksweat
Top achievements
Rank 1
 answered on 27 Oct 2008
6 answers
159 views
Is there are telerik reporting tool?

I need to display data coming back from an oracle db like this

First Name: Bob
Last Name: Jones
           City: New York
          State: New York

Is this possible? 

thank you
Jerry
Jerry
Top achievements
Rank 1
 answered on 27 Oct 2008
0 answers
83 views

Here's my setup.  Master page with RadAjaxManager and RadScriptManager both on it.  Content page with RadGrid and RadAjaxManagerProxy.

I have setup the RadGrid to use a user control for editing.  All works well without setting up the RadAjaxManagerProxy.  As soon as I setup the AjaxManagerProxy as follows I get a javascript error.

From what I can tell it is coming from Telerik.Web.UI.WebResource_2.axd.  The code highlighted by VS2008 reads: var a=g?new h(g):new h

the variable h is undefined.

If I ignore the error the Rad controls on my user control do not work at all.

Also, I get the exact same behavior if I remove the RadAjaxManagerProxy and instead wrap my grid in a RadAjaxPanel.  So it's not entirely specific to the Proxy.

Any help would be appreciated.



[RadAjaxManagerProxy setup]

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="grdQueue">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="grdQueue"   
                       /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManagerProxy> 

 

 

UPDATE: I downloaded the source and debugged against it.  Everything worked ok.  Realized a new build of Q2 was out.  Upgraded to that and all is well. 

 

 

David
Top achievements
Rank 2
 asked on 27 Oct 2008
11 answers
371 views
Hi,
With the Prometheus version of RadEditor, if there are two consecutive spaces in a sentence, they are preceded with Ã‚.  For example, if I type

test.  test.

and then place this into a database (using the Content property of the editor), when the string is written onto a web page it looks like this:

test.  test.

I tried using the Q3 version of RadEditor and it does not have the same issue, it just replaces one of the spaces with &nbsp; which makes perfect sense.  Can anyone shed some light on this problem.
Ed
Top achievements
Rank 1
 answered on 27 Oct 2008
2 answers
271 views
Hello.

1) I cannot run RadControls for ASPNET AJAX Q2 2008 Live Examples. When i do this, I can see that Development server is starting and then this error:

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 51: 			</codeSubDirectories>
Line 52: 			<assemblies>
Line 53: <add assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>Line 54: 				<add assembly="System.Web.Extensions.Design, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
Line 55: 				<add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

Source File: C:\Program Files (x86)\Telerik\RadControls for ASPNET AJAX Q2 2008\Live Demos\web.config    Line: 53

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Version Information: Microsoft .NET Framework...

2) thi second problem is that also shortcut "Open Sample Web Site in Visual Studio" does nothing.

My configuration is Vista 64 bit. VS 2008. Thank you very much. Tom
tomas
Top achievements
Rank 1
 answered on 27 Oct 2008
1 answer
112 views
Dear Support,
I have an application which I 'm using telerik ajax.
In my default page I have a Panel which has many links, a tab page and a multipage controls (RAD).
What I need is that when I click on Panel items, a new tab adds to my TabControl and a page shows in that tab using PageView.

Link to problem image:
http://www.tabatabaei.info/csharpsamples/prob.gif

How can I accomplish this using Rad Controls?
Masoud Tabatabaei
http://csharptuning.blogspot.com
Serrin
Top achievements
Rank 1
 answered on 27 Oct 2008
1 answer
142 views
does anyone know why I get this complier error ?

Error 167 Metadata file 'c:\Program Files\Telerik\RadControls for ASPNET AJAX Q2 2008\Bin35\Telerik.Web.UI.dll' could not be opened -- 'Not enough storage is available to process this command. ' 
Serrin
Top achievements
Rank 1
 answered on 27 Oct 2008
3 answers
195 views
We have a radgrid that with AllowAutomaticDeletes set to true.

However, we DO NOT SET AutoGenerateDeleteColumn to true.  This is because we want a delete image that displays a confirmation box.  We cannot find any way to do this with a DeleteColumn.

To get around that, we use a GridButtonColumn.  This works OK but, the problem is that clicking on the button also counts as a rowclick, which we currently use to send the user to a new page using OnItemCommand.

What is the best way to have a DeleteColumn/ButtonColumn display a confirmation box, but still allow the rest of the row to be clicked for edit purposes?
tom
Top achievements
Rank 1
 answered on 27 Oct 2008
2 answers
164 views
Greetings,

I have a grid that has only three entries in it with three columns, with 2 visible and the 3rd hidden.  One of my columns is a template that has a label in the Item Template, and a textbox and validator to validate the textbox in the Edit Template.  I have set the grid up to use validation, and I am only doing editing for this grid.  Here is the code for the grid.

<telerik:RadGrid ID="rgdStatusList" runat="server" AllowPaging="True" AllowSorting="True" 
        AutoGenerateColumns="False" DataSourceID="odsGetStatusList" GridLines="None" 
        OnNeedDataSource="rgdStatusList_NeedDataSource" ShowGroupPanel="false" 
        OnItemCommand="rgdStatusList_ItemCommand" ShowStatusBar="True"   
        AllowMultiRowSelection="true" PageSize="30" OnItemDataBound="rgdStatusList_ItemDataBound" 
        onprerender="rgdStatusList_PreRender" OnInsertCommand="rgdStatusList_InsertCommand" Width="275px" 
        OnPageIndexChanged="rgdStatusList_PageIndexChanged" OnDeleteCommand="rgdStatusList_DeleteCommand">  
        <ValidationSettings EnableValidation="true" /> 
        <MasterTableView DataKeyNames="StatusID" DataSourceID="odsGetStatusList" CommandItemDisplay="Top" 
        EditMode="InPlace">  
        <PagerStyle Mode="NextPrevNumericAndAdvanced" Position="TopAndBottom" /> 
            <CommandItemTemplate> 
                <telerik:RadToolBar ID="rtbToolBar" OnButtonClick="rtbToolBar_ButtonClick" runat="server" 
                    OnClientButtonClicking="onToolBarClientButtonClicking">  
                    <Items> 
                        <telerik:RadToolBarButton Text="Add Status" SkinID="AddBtn" CommandName="InitInsert" ToolTip="Add Status Code" 
                            Visible='<%# !rgdStatusList.MasterTableView.IsItemInserted %>'>  
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton Text="Save Status" SkinID="AddBtn" CommandName="PerformInsert" ToolTip="Save Status" 
                            Visible='<%# rgdStatusList.MasterTableView.IsItemInserted %>' ValidationGroup="validate">  
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton Text="Cancel" SkinID="CancelBtn" CommandName="CancelAll" ToolTip="Cancel" 
                            Visible='<%# rgdStatusList.MasterTableView.IsItemInserted %>'>  
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton Text="Delete Status" SkinID="DeleteBtn" CommandName="DeleteSelected" ToolTip="Delete Status Code" 
                            Visible='<%# !rgdStatusList.MasterTableView.IsItemInserted %>'>  
                        </telerik:RadToolBarButton> 
                        <telerik:RadToolBarButton Text="Set Defaults" SkinID="SetDefaultsBtn" CommandName="SetDefaults" ToolTip="Set Defaults">  
                        </telerik:RadToolBarButton> 
                    </Items> 
                </telerik:RadToolBar> 
            </CommandItemTemplate> 
            <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
            <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
            <Columns> 
                <telerik:GridBoundColumn DataField="StatusID" DataType="System.Int32"   
                    HeaderText="Status ID" SortExpression="StatusID" UniqueName="StatusID" ReadOnly="true" 
                    Visible="false">  
                </telerik:GridBoundColumn> 
                <telerik:GridTemplateColumn DataField="StatusDescription" HeaderText="Status Name" 
                    SortExpression="StatusDescription" UniqueName="StatusDescription" EditFormColumnIndex="1">  
                    <ItemTemplate> 
                        <asp:Label ID="lblStatusDesc" runat="server" 
                            Text='<%# DataBinder.Eval(Container, "DataItem.StatusDescription")%>'>  
                        </asp:Label> 
                    </ItemTemplate> 
                    <EditItemTemplate> 
                        <telerik:RadTextBox ID="txtStatusDesc" runat="server" Text="" Width="200" MaxLength="26">  
                        </telerik:RadTextBox> 
                        <br /> 
                        <asp:RequiredFieldValidator ID="rfvStatusDesc" runat="server" ControlToValidate="txtStatusDesc" 
                            ErrorMessage="You cannot have a blank Status Description." SetFocusOnError="true" 
                            ValidationGroup="validate" Display="Dynamic">  
                        </asp:RequiredFieldValidator> 
                    </EditItemTemplate> 
                </telerik:GridTemplateColumn> 
                <telerik:GridTemplateColumn UniqueName="Active" DataField="Active" SortExpression="Active" 
                    HeaderText="Type" EditFormColumnIndex="1">  
                <ItemTemplate> 
                    <asp:Label ID="lblStatusType" runat="server" Text='<%# TypeStatus(DataBinder.Eval(Container, "DataItem.Active"))%>'>  
                    </asp:Label> 
                </ItemTemplate> 
                <EditItemTemplate> 
                    <asp:CheckBox ID="chkActive" runat="server" ToolTip="Click to set this Status to an Active Type" /> 
                </EditItemTemplate> 
                </telerik:GridTemplateColumn> 
            </Columns> 
            <EditFormSettings ColumnNumber="2">                  
            </EditFormSettings> 
        </MasterTableView> 
        <ClientSettings> 
            <Selecting AllowRowSelect="true" /> 
        </ClientSettings> 
        <FilterMenu EnableTheming="True">  
        <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </FilterMenu> 
        <StatusBarSettings ReadyText="Ready" /> 
        <ValidationSettings CommandsToValidate="PerformInsert" /> 
    </telerik:RadGrid> 

Anyways, when I start editing, the validator functions properly.  Then when I try to save what is in the textbox when something is in it, I get this error:

Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate
during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type
and position of the controls added during the initial request.

There are no controls being added or taken off, and for the life of me, I can't figure out what it's talking about.  If someone could help me, I'd be very appreciative.  Thanks.

~ Chad
Chad Johnson
Top achievements
Rank 1
 answered on 27 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?