Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
262 views
Hello, I am trying to get my project ported to Mono, (it was working before adding Telerik controls)

I get an error 500 when running it from xsp2 on Suse Linux on Mono 1.6.1 The stack trace is:

System.InvalidCastException: Cannot cast from source type to destination type. 
  at System.Web.UI.ScriptManager.GetCurrent (System.Web.UI.Page page) [0x00000] in <filename unknown>:0  
  at Telerik.Web.UI.RadAjaxControl.OnInit (System.EventArgs e) [0x00000] in <filename unknown>:0  
  at System.Web.UI.Control.InitRecursive (System.Web.UI.Control namingContainer) [0x00000] in <filename unknown>:0  
  at System.Web.UI.Control.InitRecursive (System.Web.UI.Control namingContainer) [0x00000] in <filename unknown>:0  
  at System.Web.UI.Control.InitRecursive (System.Web.UI.Control namingContainer) [0x00000] in <filename unknown>:0  
  at System.Web.UI.Control.InitRecursive (System.Web.UI.Control namingContainer) [0x00000] in <filename unknown>:0  
  at System.Web.UI.Page.InternalProcessRequest () [0x00000] in <filename unknown>:0  
  at System.Web.UI.Page.ProcessRequest (System.Web.HttpContext context) [0x00000] in <filename unknown>:0  

We have the telerik stuff in a master page. The master page is used by all the pages in the project, so I am just trying to load basically just a bare-bones Default.aspx page. The relevant markup in the master page is

<body> 
    <form id="MasterPageForm" runat="server"> 
    <asp:ScriptManager ID="OurScriptManager" runat="server" /> 
 
    <telerik:RadAjaxManager ID="OurRadAjaxManager" runat="server"> 
            <AjaxSettings> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
         
    
         
         <telerik:RadWindowManager ID="OurRadWindowManager" ShowContentDuringLoad="false" VisibleStatusbar="false" 
            ReloadOnShow="true" runat="server"> 
            <Windows> 
                <telerik:RadWindow  runat="server" Title = "Test" ID="RadWindowAddEditGridItem" Behaviors="Close"  
                    NavigateUrl="Dialogs/DialogAddEditGridItem.aspx" Width="600px" Height="500px" VisibleTitlebar="true" OnClientClose="closeRadWindow" >                  
                </telerik:RadWindow>             
            </Windows> 
        </telerik:RadWindowManager> 

Also, I am using the Telerik .Net 2.0 demo assemblies

Also, note that removing all telerik references from the master page's markup makes it so it will compile and work.
Charles Wiebe
Top achievements
Rank 1
 answered on 10 Mar 2010
2 answers
291 views
I have an issue occuring with the RadGrids I use where the header text is shifted left and right when sorting.  The other issue occuring is when I use the onmouseover/out settings and change the row background style and usually when I hover over the last row or first row of the grid there is movement to the left of the item text or in cases of large amounts of text the rows are condensed a bit and moved to the left slightly....any ideas what is making this happen?
Below is my code and if it matters I'm using a master page layout.  Thanks for any help

 

<div class="behindGrid">

 

 

<p class="upperGridCaptionNew">

 

....some text here

 

</p>

 

 

<div class="behindGrid2Middle">

 

 

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false" Gridlines="none"

 

 

OnSelectedIndexChanged="RadGrid1_SelectedIndexChanged" Width="98%" OnSortCommand="RadGrid1_Sorted" OnNeedDataSource="RadGrid1_Reload" PageSize="14" Skin="CustomSkin" EnableEmbeddedSkins="false">

 

 

<PagerStyle AlwaysVisible="true" Mode="NextPrevAndNumeric"/>

 

 

<ClientSettings EnablePostBackOnRowClick="true">

 

 

 

<Selecting AllowRowSelect="true" />

 

 

<ClientEvents OnRowMouseOver="RowMouseOver" OnRowMouseOut="RowMouseOut" />

 

 

</ClientSettings>

 

 

<MasterTableView>

 

 

<Columns>

 

 

<telerik:GridButtonColumn HeaderStyle-HorizontalAlign="Center" DataTextField="GroupSite"

 

 

HeaderText="Group / Site" SortExpression="GroupSite" UniqueName="GroupSite" CommandName="Select">

 

 

</telerik:GridButtonColumn>

 

 

<telerik:GridBoundColumn DataField="GroupSite" HeaderText="GroupSite" SortExpression="GroupSite" UniqueName="GroupSite" Visible="false">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn DataField="Blah" HeaderText="Blah Site" SortExpression="Blah" UniqueName="Blah" Visible="false">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Center" DataField="Status" HeaderText="Status" SortExpression="Status" ItemStyle-HorizontalAlign="Center" UniqueName="Status">

 

 

</telerik:GridBoundColumn>

 

 

<telerik:GridBoundColumn HeaderStyle-HorizontalAlign="Center" DataField="Items" HeaderText="Items" SortExpression="Items" UniqueName="Items">

 

 

</telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

</telerik:RadGrid>

 

 

</div>

 

 

<div class="behindGridBottom"></div>

 

 

</div>

 


function

 

RowMouseOver(sender, eventArgs)

 

{

$get(eventArgs.get_id()).className =

"RowMouseOver";

 

}

 

function RowMouseOut(sender, eventArgs)

 

{

$get(eventArgs.get_id()).className =

"RowMouseOut";

 

}



.RowMouseOver

 

TD

 

{

 

 

border-bottom:solid 1px silver;

 

 

background-color:#E4E5D7;

 

 

color:#B45F04 !important;

 

 

padding-top:0px;

 

 

padding-bottom:0px;

 

 

border-top:solid 1px silver;

 

 

text-align:center;

 

}

 

 

.RowMouseOver A

 

{

 

background-repeat:repeat-x;

 

 

background-color:Transparent;

 

 

color:#B45F04 !important;

 

 

text-align:center;

 

 

 

 

}

 

 

.RowMouseOut

 

{

 

 

background: #f7f7f7;

 

 

background-image:url('Images/rowUnHover.png');

 

 

background-position:center top;

 

 

background-repeat: no-repeat;

 

 

text-align:center;

 

}

Erik
Top achievements
Rank 1
 answered on 10 Mar 2010
3 answers
140 views
Hi,

We have used RadCombobox with LoadOnDemand and ShowMoreResult feature. But we are facing issue in navigating items of with Keyboard.
We are able to Open Drop down with "Alt" + ArrowKeys but after getting data we are not able to navigate items using arrow keys.

We have bind dropdown in ItemRequest event by giving Datasource and Databind method. And then we have Added Default Item i.e. "Please Select" using "Insert" method i.e. ddl.Items.Insert(0, new RadComboboxItem("Please Select", " "); and Also one more item at index 1 which is required.

We are able to select Items which we have inserted but not able to navigate items whihc has been bind using Datasource.

Kindly suggest where we have done mistake.

Thanks and Regards,
Chanda Malukani.
Simon
Telerik team
 answered on 10 Mar 2010
5 answers
251 views
I am using the TitleBarTemplate to display a link button and Image.  The problem I am having is getting the control to be centered vertically in the Dock Title bar.

<TitlebarTemplate> 
  <div class="RadDock_McpsPurple_TitlePanel"> 
    <asp:LinkButton runat="server" ID="ProfDevTitleLinkButton" CssClass="RadDock_McpsPurple_TitleLink"></asp:LinkButton> 
    <asp:Image runat="server" ID="ProfDevMoreImage" CssClass="RadDock_McpsPurple_MoreCommand" /> 
  </div> 
</TitlebarTemplate>    

Tim DiPaula
Top achievements
Rank 1
 answered on 10 Mar 2010
1 answer
178 views
Hello,

Telerik RadComboBox of EnableScreenBoundaryDetection is not working for Iframe with 4000px fixed height, it is at the bottom of the screen.

Regards,
Chanda
Simon
Telerik team
 answered on 10 Mar 2010
5 answers
279 views
I am trying to insert data into a radgrid that is nested inside another radgrid.  The problem I am having is getting the ID from the master table. the solution I tried looks like this:

 protected void ImagesLDS_Inserting(object sender, LinqDataSourceInsertEventArgs e)
    {
        Image i = (Image)e.NewObject;
        i.ItemID = Convert.ToInt32(ItemGrid.MasterTableView.DataKeyValues[0]["ItemID"]);
    }

I thought this was working, but it seems ItemGrid.MasterTableView.DataKeyValues[0]["ItemID"] is always equal to 1.

Here is the markup for the grids:
<telerik:RadGrid ID="ItemGrid" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True" 
                AllowAutomaticUpdates="True" AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" 
                DataSourceID="ItemsLDS" GridLines="None" Skin="WebBlue" AllowPaging="True"> 
                <MasterTableView AutoGenerateColumns="False" DataKeyNames="ItemID" DataSourceID="ItemsLDS" 
                    CommandItemDisplay="Top"> 
                    <RowIndicatorColumn> 
                        <HeaderStyle Width="20px"></HeaderStyle> 
                    </RowIndicatorColumn> 
                    <NestedViewTemplate> 
                        <asp:Label ID="Label1" runat="server" Text='<%# Eval("ItemID") %>' Visible="False"></asp:Label> 
                        <asp:LinqDataSource ID="ImagesLDS" runat="server" ContextTypeName="CatalystDataContext" 
                            TableName="Images" Where="ItemID == @ItemID" EnableDelete="True" EnableInsert="True" 
                            EnableUpdate="True" OnInserting="ImagesLDS_Inserting"> 
                            <WhereParameters> 
                                <asp:ControlParameter ControlID="Label1" Name="ItemID" PropertyName="Text" Type="Int32" /> 
                            </WhereParameters> 
                        </asp:LinqDataSource>                         
                        <table> 
                            <tr> 
                                <td valign="top"> 
                                    <telerik:RadGrid ID="ImagesGrid" runat="server" DataSourceID="ImagesLDS" GridLines="None" 
                                        AllowAutomaticDeletes="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True" 
                                        AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" HorizontalAlign="Left" 
                                        Skin="WebBlue"> 
                                        <MasterTableView DataSourceID="ImagesLDS" AutoGenerateColumns="False" DataKeyNames="ImageID" 
                                            CommandItemDisplay="Bottom" EditMode="InPlace"> 
                                            <RowIndicatorColumn> 
                                                <HeaderStyle Width="20px" /> 
                                            </RowIndicatorColumn> 
                                            <ExpandCollapseColumn> 
                                                <HeaderStyle Width="20px" /> 
                                            </ExpandCollapseColumn> 
                                            <CommandItemSettings AddNewRecordText="Add New Image" /> 
                                            <Columns> 
                                                <telerik:GridBoundColumn DataField="ImageID" DataType="System.Int32" HeaderText="ImageID" 
                                                    ReadOnly="True" SortExpression="ImageID" UniqueName="ImageID" Visible="False"> 
                                                </telerik:GridBoundColumn> 
                                                <telerik:GridBoundColumn DataField="ItemID" DataType="System.Int32" HeaderText="ItemID" 
                                                    SortExpression="ItemID" UniqueName="ItemID" Visible="False"> 
                                                </telerik:GridBoundColumn> 
                                                <telerik:GridTemplateColumn DataField="ImageURL" HeaderText="Image" SortExpression="ImageURL" 
                                                    UniqueName="ImageURL"> 
                                                    <EditItemTemplate> 
                                                        <asp:TextBox ID="ImageURLTextBox" runat="server" Text='<%# Bind("ImageURL") %>'></asp:TextBox> 
                                                    </EditItemTemplate> 
                                                    <ItemTemplate> 
                                                        <asp:Image ID="Image1" runat="server" AlternateText='<%# Eval("Description") %>' 
                                                            Height="50px" ImageAlign="AbsMiddle" ImageUrl='<%# Eval("ImageURL") %>' Width="50px" /> 
                                                    </ItemTemplate> 
                                                </telerik:GridTemplateColumn> 
                                                <telerik:GridBoundColumn DataField="Description" HeaderText="Alt. Text" SortExpression="Description" 
                                                    UniqueName="Description"> 
                                                </telerik:GridBoundColumn> 
                                            </Columns> 
                                        </MasterTableView> 
                                    </telerik:RadGrid> 
                                </td> 
                                 
                            </tr> 
                        </table> 
                    </NestedViewTemplate> 

There are other grids and LinqDataSources that have the dame issue. I would like to use the Label1 but I am not sure how to access it.


Ken Miller
Top achievements
Rank 1
 answered on 10 Mar 2010
0 answers
80 views
I'm using the RadUpload control for uploading files in my ASP.Net app, and it works great.
For Downloading, the only thing I have to use is the standard ASP.Net control, since no 3rd party controls appear to exist.
With the standard Download control, downloading even a 40 meg file, I get the error message "insufficient system resources exist to complete the requested service".

I've checked the server, and the RAM, hard drive and CPU on the server are all quiet when the request is made. I've made the request from several different computers, both inside and out of the firewall.

I don't understand what's causing this error message or how to fix it?

Has anyone encountered this problem before?

Is it possible to use the RadUpload control to do downloads?
Ledcor Development Team
Top achievements
Rank 1
 asked on 10 Mar 2010
1 answer
82 views
I have several textboxes and comboboxes in an UpdatePanel all with AuotPostBack set.  In teh TextChanged sub I do some processing tehn want to conditionally set focus to a comb box.  I do this by calling ScriptManager1.SetFocus(cbotype_1.ClientID).  When I do this then the text is not selected (highlighted) the same as it would have been by the user tabbing into the control.  Any ideas how I can do this with server side code if possible?

Regards
David
Simon
Telerik team
 answered on 10 Mar 2010
16 answers
219 views
Hi I have been playing around with the Scheduler its a pretty cool control I would like to be able to display more than just the title and description when you select an appointment is it possible to include an additional filed from te database that would show in the appointment window?

thks

M
Dimitar Milushev
Telerik team
 answered on 10 Mar 2010
1 answer
137 views
I am trying to find a way to remove the refresh icon that appears on every event in the scheduler. I am sure there is a simple way to do it, is there an option to remove it?
robertw102
Top achievements
Rank 1
 answered on 10 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?