Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
169 views
$0Hi$0$0$0$0$0I’m trying to implement a Custom Image Manager for the Editor. I have seen different examples to implement this, unfortunately I don't have the a .AddDialogDefinition() function on my editor! o_O $0$0I just updated to the newest version (2008.2.1001.35), are the examples (http://www.telerik.com/help/aspnet-ajax/addcustomdialogs.html) out of date?$0$0$0$0$0Thank you$0$0$0$0
Softec
Top achievements
Rank 1
 answered on 06 Oct 2008
1 answer
51 views
I need to do multiple grid rows selection in editmode when i click on checkbox in a  grid on client side.

Can anyone help me to do this??

Thanks in advance....

 
Sebastian
Telerik team
 answered on 06 Oct 2008
4 answers
371 views
Hi

I am new with Telerik controls.  They seem simple enough, but I am having an issue with the RadGrid.

When binding data to my RadGrid, I receive this message:
Unable to cast object of type 'Telerik.Web.UI.GridTableRow' to type 'Telerik.Web.UI.GridItem'.

Here is my aspx code:
<telerik:RadGrid ID="ugMessages" runat="server"></telerik:RadGrid> 

Here is my .cs code:
ugMessages.DataSource = ds.Tables[0];  
ugMessages.DataBind(); 

Stack trace:
Server Error in '/pcs' Application.  
--------------------------------------------------------------------------------  
 
Unable to cast object of type 'Telerik.Web.UI.GridTableRow' to type 'Telerik.Web.UI.GridItem'.   
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.InvalidCastException: Unable to cast object of type 'Telerik.Web.UI.GridTableRow' to type 'Telerik.Web.UI.GridItem'.  
 
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:   
 
 
[InvalidCastException: Unable to cast object of type 'Telerik.Web.UI.GridTableRow' to type 'Telerik.Web.UI.GridItem'.]  
   Telerik.Web.UI.GridTableRow.get_ClientID() +86  
   Coolite.Utilities.<>c__DisplayClass1.<FindControlByClientID>b__0(Control c) +37  
   Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +131  
   Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181  
   Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181  
   Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181  
   Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181  
   Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181  
   Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181  
   Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181  
   Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181  
   Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181  
   Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181  
   Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181  
   Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181  
   Coolite.Utilities.ControlUtils.RecurseControls(ControlCollection controls, FindControlDelegate callback) +181  
   Coolite.Utilities.ControlUtils.FindControlByClientID(ControlCollection controls, String clientID) +95  
   Coolite.Utilities.ControlUtils.FindControl(ControlCollection controls, String idOrClientID) +35  
   Coolite.Ext.Web.Window.OnBeforeClientInit(Component sender) +254  
   Coolite.Ext.Web.Component.OnBeforeClientInitHandler() +35  
   Coolite.Ext.Web.Component.OnClientInit() +26  
   Coolite.Ext.Web.WebControl.SetResources() +81  
   Coolite.Ext.Web.WebControl.OnPreRender(EventArgs e) +108  
   System.Web.UI.Control.PreRenderRecursiveInternal() +86  
   System.Web.UI.Control.PreRenderRecursiveInternal() +170  
   System.Web.UI.Control.PreRenderRecursiveInternal() +170  
   System.Web.UI.Control.PreRenderRecursiveInternal() +170  
   System.Web.UI.Control.PreRenderRecursiveInternal() +170  
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2041  
 
   
 
 
--------------------------------------------------------------------------------  
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433  

Any ideas?
Jonathan Miller
Top achievements
Rank 1
 answered on 06 Oct 2008
3 answers
185 views
I am working with grid and i would like to display a Name column as:

Smith, Joe

and sort by last name as well.

I have tried a GridTemplateColumn, which gives me the proper display, but I can't sort.

I have tried GridBoundColumn, which gives me the sort functionality, but i have to display the data in two columns.

How can i use GridBoundColumn to display Datafield="Contact.Lastname, Contact.Firstname"?
Nikolay Rusev
Telerik team
 answered on 06 Oct 2008
2 answers
173 views
I am trying to create a wizard-like interface much like the demo on the Tabs page. I have been able to get tab navigation working fine as well as loading each individual user control. Utilizing the RadAjaxManagerProxy I have been able to get all AJAX working. The only issue I still have is getting my user control to have a button that enables the next tab (located on the main page) and make it visible (along with its associated PageView).

Any suggestions? I've been beating my head against the wall for the better part of four hours now and am at a complete loss.
Paul
Telerik team
 answered on 06 Oct 2008
3 answers
160 views
Is there anyway to resize a raddock while its docked inside of a raddockzone?$0$0$0$0Thanks in advance$0
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 06 Oct 2008
1 answer
166 views
Hi,

I have a RadGrid which is allowing client-side collapsing/expanding along with client-side row selecting.  I am using the Gray theme and have the grid set up as a self referencing hierarchical grid.

With that said my problem is that not all my rows need the collapse/expand icon to appear and your default functionality is to hide the icon.  The problem is that when a cell is empty in IE it doesn't draw border lines around it so the end result is funny looking if I select that table row.

The CSS you have set by default with the Gray theme has the border color set as white and if its a selected row the border is then black.  However, the empty cell will still just display a white border so you end up with a very inconsistent look.

Is there any way to tell the grid to put in an &nbsp instead of nothing into this cell when the image is not required so that the top/bottom border correctly displays around the cell?

Thanks
Dimo
Telerik team
 answered on 06 Oct 2008
1 answer
113 views
Hi everyone,
  Is there any way to use the Rad Grid in order to get the same functionality as showed at http://blogs.msdn.com/performancepoint/archive/2007/07/20/strategy-maps-in-performancepoint-server.aspx ? Notice that Actual and Target headers are fixed and the master-detail behavior is only applied in the first column.

Thanks in advance.

Marco
Sebastian
Telerik team
 answered on 06 Oct 2008
1 answer
104 views
Hi, I have been trying to figure out the best way to use a radwindow to edit a grid record (manually) and then refresh the grid only when an update has been made. I have searched and found examples that do not use master pages and these work fine. However, because I am using a master page it doesn't seem to work. I have tried various things that I found throughout the forum and can't get it to work. The last post I saw said to try and find the ajax manager on the master page - but I don't know how to tie this into the other parts. Is it possible to get a full example of how to use a grid in master pages and radwindow for editing while using ajax manager? Thanks in advance. 
Sebastian
Telerik team
 answered on 06 Oct 2008
1 answer
141 views
Hello
'm doing some testing with panelbar and I find this problem.

I have a panelbar "deputy code", like this example 
http://demos.telerik.com/aspnet/prometheus/Panelbar/Examples/ApplicationScenarios/AccessingNestedControls/DefaultVB.aspx
where the first page I have to validate a code into a textbox, and verify that the information typed in there is true, otherwise we can show an error report on a label.
as I do, to the extent possible without a postback but using ajax on the same page.

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
            <telerik:RadPanelBar runat="server" ID="RadPanelBar1" Skin="Outlook"
                ExpandMode="SingleExpandedItem" Width="500px">
                <Items>
                    <telerik:RadPanelItem Expanded="True" Text="Paso 1: Codigo de Seguridaed" runat="server" Selected="true">
                        <Items>
                            <telerik:RadPanelItem Value="Codigo_Seguridad" runat="server">
                                <ItemTemplate>
                                    <div style="background-color: #D8E8FF">
                                        <ul class="formList" id="accountInfo">
                                            <li>
                                                <asp:Label runat="server" AssociatedControlID="txt_codseguridad" CssClass = "labels" ID="nameLabel" >Codigo de Seguridad:</asp:Label>
                                                <asp:TextBox ID="txt_codseguridad" CssClass="textInput" runat="server" ValidationGroup="Codigoseguridad" Width="200px" AutoCompleteType="None">
                                                </asp:TextBox>
                                                <asp:RequiredFieldValidator runat="server" ID="accountValidator" ValidationGroup="Codigoseguridad"
                                                ControlToValidate="txt_codseguridad" ErrorMessage="Codigo de Seguridad Requerido" Text="*"></asp:RequiredFieldValidator>
                                            </li>
                                            <li>
                                                <br />
                                                <asp:Label runat="server" Visible="false" CssClass = "labels_error" ID="lbl_Error" Text="" >
                                                </asp:Label>
                                            </li>
                                           
                                        </ul>
                                        <asp:Button runat="server" ID="nextButton" OnClick="validarcodigo_Click" Text="Siguiente" CssClass="nextButton" ValidationGroup="Codigoseguridad" />
                                        <br />
                                    </div>   
                                </ItemTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                                       </ItemTemplate>
                            </telerik:RadPanelItem>
                        </Items>
                    </telerik:RadPanelItem>
                </Items>
                <CollapseAnimation Duration="100" Type="None" />
                <ExpandAnimation Duration="100" Type="None" />
            </telerik:RadPanelBar>

I access the controls like this in the same example, but not as assigning the control "lbl_error" some value and you can update and display executed after the procedure.

thanks

Alex

     

Paul
Telerik team
 answered on 06 Oct 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?