Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
169 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
272 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
74 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
78 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
210 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
132 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
6 answers
420 views
Hi,
       How can i Set the column width in percentage in Export Pdf. I could set the column width in pixels and also it is worked in pdf file.
But i need to set the width in % because my all of the column widths are measured in %.

I used the same way of fixing the width in pixels but in % it is not working..

-Thanks
Daniel
Telerik team
 answered on 10 Mar 2010
7 answers
392 views
The error below is showing when using the Radgrid.
The server has Medium Trust Level. Others component such as Tabstrip is working.
The telerik version is "2009.2.826.35".
We have also add the line to the web.config:
 

<

 

add assembly="Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121FAE78165BA3D4"/>
<httpHandlers>
<add path="Telerik.Web.UI.WebResource.axd" verb="*"

 

 

 

 

 

type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2009.2.826.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"

 

 

 

validate="false" />

 

 

</

 

httpHandlers>

 

 

 

 

 

 

 

 

 
 
Could not load file or assembly 'System, Version=1.0.7.30072, Culture=neutralPublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.   
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.IO.FileNotFoundException: Could not load file or assembly 'System, Version=1.0.7.30072, Culture=neutralPublicKeyToken=c5687fc88969c44d' or one of its dependencies. The system cannot find the file specified.  
 
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.    
 
Assembly Load Trace: The following information can be helpful to determine why the assembly 'System, Version=1.0.7.30072, Culture=neutralPublicKeyToken=c5687fc88969c44d' could not be loaded.  
 
Pavlina
Telerik team
 answered on 10 Mar 2010
1 answer
110 views
Hello,

could you please tell me how to customize the aspect
of CheckBoxes width RadFormDecorator (Q3 2009)?
 
Thank you
 
Alberto Bresesti
Svetlina Anati
Telerik team
 answered on 10 Mar 2010
1 answer
124 views
We might use any culture in our system and we are allowed to override the DateTime formats for it.

for example en-GB usually the shortdate format gives 25/02/2010 but we might override it with MM/dd/yyyy for example which gives 02/25/2010 a US style format.

This seems to work when the DateInput.ReadOnly is set to false but doesn't seem to work when ReadOnly is set to true.

Any ideas?

Martin
Martin
Telerik team
 answered on 10 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?