Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
95 views
i installed your software. in the upload control user can select a picture and can modufy the input which is show the path, which setting can make this disabled, can not let user to modify the path. Thank you!
Paul
Telerik team
 answered on 10 Jan 2009
1 answer
288 views

I just changed the dll file, and I got this error now. Here is my webconfig file : http://www.x-it.be/webconfig.zip

 

Server Error in '/' Application.

Could not load file or assembly 'Telerik.Web.UI, Version=2008.3.1105.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

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.FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=2008.3.1105.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

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 'Telerik.Web.UI, Version=2008.3.1105.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' could not be loaded.

=== Pre-bind state information ===
LOG: User = NT AUTHORITY\NETWORK SERVICE
LOG: DisplayName = Telerik.Web.UI, Version=2008.3.1105.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4
 (Fully-specified)
LOG: Appbase = file:///D:/Projecten/Asp.Net/Ondernemerschap/
LOG: Initial PrivatePath = D:\Projecten\Asp.Net\Ondernemerschap\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: D:\Projecten\Asp.Net\Ondernemerschap\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\Aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v2.0.50727\config\machine.config.
LOG: Post-policy reference: Telerik.Web.UI, Version=2008.3.1105.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/9885d5ea/c376c09c/Telerik.Web.UI.DLL.
LOG: Attempting download of new URL file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/Temporary ASP.NET Files/root/9885d5ea/c376c09c/Telerik.Web.UI/Telerik.Web.UI.DLL.
LOG: Attempting download of new URL file:///D:/Projecten/Asp.Net/Ondernemerschap/bin/Telerik.Web.UI.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Build Number
ERR: Failed to complete setup of assembly (hr = 0x80131040). Probing terminated.

Stack Trace:

[FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=2008.3.1105.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
   System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
   System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +416
   System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +166
   System.Reflection.Assembly.Load(String assemblyString) +35
   System.Web.UI.AssemblyCache.Load(String assemblyName) +99
   System.Web.UI.ScriptManager.RemoveDuplicates(List`1 scripts) +540
   System.Web.UI.ScriptManager.RegisterScripts() +395
   System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +200
   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +11032446
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3672

 


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

Paul
Telerik team
 answered on 10 Jan 2009
1 answer
147 views
The default behaviour for RadDock's with resizeable=true is to allow resizing when the user grabs the bottom, right, or bottom-right of the window. Is there an option to allow the window to be resized by grabbing the top, left, or other corners (like the RadWindow object)?

Thanks!
Jay
Vyrban
Top achievements
Rank 1
 answered on 10 Jan 2009
3 answers
149 views
I am displaying some lengthy text in a bound grid column.  This data was entered via a RadEditor, so it is formatted.  When selecting the row, repeating icons are being displayed across the row -- things like filter icons and up/down arrows.  They do not appear when the row is not selected -- the text looks just fine.  I have no idea where these icons are coming from or how to remove them.  Has anyone seen an issue like this?

I think this issue has to do with the height of the selected row.  As a temporary measure, I changed the bound column to a template column and am showing the text inside of an asp Panel with auto scrollbars turned on.  I've also allowed the end user to resize the row so they can shorten it to where the icon rows are not displaying, but they can still scroll through the text. 

A better solution would be to set a maximum row height so the row displays initially at a height that does not cause the problem without requiring all of the additional rows to be way to high.  Is there a way to specify a maximum row height, or to check row height when binding data and set it programmatically?
Dimo
Telerik team
 answered on 10 Jan 2009
1 answer
199 views
Hi,
 I am have a UserControl I am using to edit / create records in a RadGrid. This control has a child rad grid in it that will allow users to add / modify related items. These child items need a reference to the parent object (this will be an ID column in the releveant database table).  There is no problem when the parent record already exsists( as i have the parent record ID to use in the child ecord insert) but when i add a new record and the user control is in insert mode there is no ID available. What I want to be able to do is  trigger the creation of the parent record, retreive the parent record ID and keep the usercontrol open but now in edit mode so that the child grid can be filled in.  The creation of the parent record wopuld be on a control event (dropdownlist.slectedindexchanged for example).

The effect I am looking for is as if I did the following actions;

1. add new parent record and fill in data
2. Click insert button and commit parent record to database (thereby creating the parent records ID)
3. Open the parent record for edit
4. add items to child grid (databound to SQL Datasource)

The only other option I can think of is to add records to the grid and then pass back to the parent record creation routine, but i'm not sure how to set up a radgrid to do this.

Thanks in advance for any help you can give me.

Chris
Sebastian
Telerik team
 answered on 10 Jan 2009
1 answer
130 views
1. Without the formdecorator it is possible to press tab to set the focus on a button in a web form and press the space bar or enter to press that highlighted button. When the form decorator is added you cannot see which button has focus (was using Web20 skin) but most importantly pressing enter or space bar does not press the button.

2. The .focus method which doesnt work anymore is really frustrating and the advertised solution of using a slight delay is not very pretty. This is also the 'Cant move focus to the control because its invisible, not enabled..." javascript error at times.

Its a nice control but it simply breaks too many things.
Georgi Tunev
Telerik team
 answered on 10 Jan 2009
1 answer
135 views

Hi All

I have a RadComboBox and RadTextInput that provide pararmeters for a SQLDataSource control.  A RadGrid then pulls it's data from the SQLDataSource.  The first time I load the page, I can choose an item in the combobox, enter some text, and the RadGrid binds to the datasource and displays the data fine. 

If I then select something else in the combobox, or enter different text in the textinput fields and autopostback, then RadGrid will refresh BUT it continues to display the original data.  It seems either the RadGrid is not refreshing itself from the datasource, or my input fields aren't updating the datasource properly.

Any ideas?  Code follows...

Thanks
Mark

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
 
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">  
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="radddlLocation_id">  
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="SQL_Locations" /> 
                        <telerik:AjaxUpdatedControl ControlID="radddlProvider_no" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                <telerik:AjaxSetting AjaxControlID="btnFetchPatients">  
                    <updatedcontrols> 
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                    </updatedcontrols> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:RadAjaxManager> 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
            Width="75px">  
            <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border: 0px;" /> 
        </telerik:RadAjaxLoadingPanel> 
          
        <h2>IMACAM Image Upload</h2> 
          
        <asp:Label ID="lblStatus" runat="server" Text="Label" ForeColor="Maroon"   
            Visible="False" Font-Bold="True"></asp:Label> 
        <br /> 
          
        <strong>1&nbsp; Select Location</strong> 
        <br /> 
        <telerik:RadComboBox ID="radddlLocation_id" runat="server" AppendDataBoundItems="True" 
            DataSourceID="SQL_Locations" DataTextField="name" DataValueField="LocationId" 
            Skin="Office2007" OnSelectedIndexChanged="radddlLocation_id_SelectedIndexChanged" 
            Width="250px" MarkFirstMatch="True" NoWrap="True" Text="Select location"   
            AutoPostBack="True">  
            <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </telerik:RadComboBox> 
        <asp:SqlDataSource ID="SQL_Locations" runat="server" ConnectionString="<%$ ConnectionStrings:OmateSQLConnectionString %>" 
              
            SelectCommand="SELECT location_city + ', ' + LocDisplayName AS name, LocationId FROM Location ORDER BY location_city">  
        </asp:SqlDataSource> 
        <br /> 
        <br /> 
        <strong>2&nbsp; Select Provider</strong><br /> 
        <telerik:RadComboBox ID="radddlProvider_no" Runat="server"   
            DataSourceID="SQL_Providers" DataTextField="fullname"   
            DataValueField="provider_no" MarkFirstMatch="True" NoWrap="True"   
            onselectedindexchanged="radddlProvider_no_SelectedIndexChanged"   
            Skin="Office2007" Width="250px">  
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
        </telerik:RadComboBox> 
        <asp:SqlDataSource ID="SQL_Providers" runat="server"   
            ConnectionString="<%$ ConnectionStrings:OmateSQLConnectionString %>"   
            SelectCommand="SELECT [provider_no], [provider_last_name] + ' ' + [provider_first_name] AS [fullname] FROM [provider] WHERE ([default_Location] = @default_Location) ORDER BY [fullname]">  
            <SelectParameters> 
                <asp:ControlParameter ControlID="radddlLocation_id" Name="default_Location"   
                    PropertyName="SelectedValue" Type="Int32" /> 
            </SelectParameters> 
        </asp:SqlDataSource> 
        <br /> 
        <br /> 
          
        <strong>3&nbsp; Select Patient</strong><br /> 
        <telerik:RadTextBox ID="radtxtFirstName" runat="server" EmptyMessage="Enter Firstname" 
            Skin="Office2007" Width="125px">  
        </telerik:RadTextBox> 
        &nbsp;<telerik:RadTextBox ID="radtxtLastName" runat="server" EmptyMessage="Enter Lastname" 
            Skin="Office2007" Width="125px">  
        </telerik:RadTextBox> 
        &nbsp;<asp:Button ID="btnFetchPatients" runat="server" Height="26px" Text="Go &gt;&gt;" /> 
        <br /> 
        <br /> 
          
        <telerik:RadGrid ID="RadGrid1" runat="server" 
            AllowSorting="True" AutoGenerateColumns="False"   
            DataSourceID="SQL_Patients" GridLines="None" HorizontalAlign="Left"   
            PageSize="5" Skin="Office2007" Width="500px" Height="170px"   
            onselectedindexchanged="RadGrid1_SelectedIndexChanged">  
            <HeaderContextMenu EnableTheming="True" Skin="Hay">  
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
            </HeaderContextMenu> 
            <MasterTableView DataSourceID="SQL_Patients" datakeynames="Patient_no"   
                nomasterrecordstext="Patient record not found.  Please check the name and location specified.">  
                <RowIndicatorColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </RowIndicatorColumn> 
                <ExpandCollapseColumn> 
                    <HeaderStyle Width="20px"></HeaderStyle> 
                </ExpandCollapseColumn> 
                <Columns> 
                    <telerik:GridButtonColumn ButtonType="PushButton" CommandName="Select" Text="Select" 
                        UniqueName="Select">  
                    </telerik:GridButtonColumn> 
                    <telerik:GridBoundColumn DataField="first_name" HeaderText="First Name" SortExpression="first_name" 
                        UniqueName="first_name">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="last_name" HeaderText="Last Name" SortExpression="last_name" 
                        UniqueName="last_name">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="Patient_no" HeaderText="Patient Number"   
                        SortExpression="Patient_no" UniqueName="Patient_no">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="ss_no" HeaderText="SSN" SortExpression="ss_no" 
                        UniqueName="ss_no">  
                    </telerik:GridBoundColumn> 
                    <telerik:GridBoundColumn DataField="locdisplayname" HeaderText="Location"   
                        SortExpression="locdisplayname" UniqueName="Location">  
                    </telerik:GridBoundColumn> 
                </Columns> 
            </MasterTableView> 
            <ClientSettings> 
                <Scrolling AllowScroll="True" UseStaticHeaders="True" /> 
            </ClientSettings> 
            <FilterMenu EnableTheming="True" Skin="Hay">  
                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
            </FilterMenu> 
        </telerik:RadGrid> 
          
        <asp:SqlDataSource ID="SQL_Patients" runat="server" ConnectionString="<%$ ConnectionStrings:OmateSQLConnectionString %>" 
              
            SelectCommand="SELECT patient.ss_no, patient.first_name, patient.last_name, patient.suffix, Location.location_city, patient.patient_no, Location.LocDisplayName FROM patient INNER JOIN Location ON patient.LocationID = Location.LocationId WHERE (patient.first_name = @first_name) AND (patient.last_name = @last_name) AND (patient.locationid = @location_id)  
ORDER BY Location.LocDisplayName"> 
            <SelectParameters> 
                <asp:ControlParameter ControlID="radtxtFirstName" Name="first_name" PropertyName="Text" 
                    Type="String" /> 
                <asp:ControlParameter ControlID="radtxtLastName" Name="last_name" PropertyName="Text" 
                    Type="String" /> 
                <asp:ControlParameter ControlID="radddlLocation_id" Name="location_id"   
                    PropertyName="SelectedValue" /> 
            </SelectParameters> 
        </asp:SqlDataSource> 
        <br /> 
        <br /> 

 

 

 

Yavor
Telerik team
 answered on 10 Jan 2009
1 answer
132 views
I add controls to the tree at runtime, the tree renders fine, but I don't see the controls listed in the XML, I need to expose them, as I just want to store the xml in the database.

The Output from getXML....
 
<?xml version="1.0" encoding="utf-16"?>
<Tree AllowNodeEditing="True" CheckChildNodes="True" MultipleSelect="True" EnableDragAndDrop="True" EnableDragAndDropBetweenNodes="True" OnClientNodeEdited="OnClientNodeEditedHandler" OnClientNodeDropped="OnClientNodeDropped" OnClientNodeDragging="OnClientNodeDragging" AppendDataBoundItems="True" Skin="Outlook" EnableAjaxSkinRendering="False">
  <Node Text="root1" Expanded="True" />
  <Node Text="root2" Expanded="True" />
  <Node Text="root3" Expanded="True" />
  <Node Text="root4" Value="Templated" Expanded="True" />
</Tree>

the code:

 

protected void Page_Load(object sender, EventArgs e)

 {

 

if (!Page.IsPostBack)

 

 

 {

 

    this.RadTreeView1.AppendDataBoundItems = true;

 

 

    this.RadTreeView1.PersistLoadOnDemandNodes = true

 

    this.RadTreeView1.Nodes.Add(new RadTreeNode("root1"));

 

 

    this.RadTreeView1.Nodes.Add(new RadTreeNode("root2"));

 

 

    this.RadTreeView1.Nodes.Add(new RadTreeNode("root3"));

 

 

    RadTreeNode root4 = new RadTreeNode("root4");

 

 

    TextBox textbox1 = new TextBox();

 

    root4.Controls.Add(textbox1);

    root4.Value =

"Templated";

    this.RadTreeView1.Nodes.Add(root4);

    this. RadTreeView1.DataBind();

 

 

}

 

 

Atanas Korchev
Telerik team
 answered on 10 Jan 2009
5 answers
136 views
Using RadChart control, works fine in most environments... However.

In production our webserver is served through a load balancer onto two machines.  The RadChart control seems to only be working half the time.  Suspect what's happening is that the RadChart control makes a call to the server, generates the chart image and places it on one of the machines, but the control makes the image request in a seperate call, and thus does not always get the same machine.

Does RadChart have support for deploying to a multi-system front end?
Mike
Top achievements
Rank 1
 answered on 10 Jan 2009
5 answers
190 views
Hi,

We have a couple of problems where the column widths are changing after callbacks. I'll try to explain one of then here.

Data and columns are created dynamicly (in the Init() method) and we are not using any fixed widths for localisation reason. In a page we have a RadMultiPage containing several views and every view can change data/grid on the other. This is what we do to recreate the error;

1) Load page. Grid in first view is ok
2) Go to second view
3) Go to first view, Grid is ok
4) Go to  second view again
5) Do something that forces a callback
6) Go to first view, Grid not ok (horizontal scrollbar is gone and columns is compressed)

We are using paging, static headers and is allowing scrolling on the client

Iana Tsolova
Telerik team
 answered on 10 Jan 2009
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?