Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
85 views
Hi:
I was getting a LoaderException and I was quite lost, but then I found the

Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1109.40, 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)":"Telerik.Web.UI, Version=2010.3.1109.40, Culture=neutral, PublicKeyToken
=121fae78165ba3d4
I figure out that the Telerik.Web.UI.xml and Telerik.Web.UI.dll were different versions.  Hope this helps someone.
Phil
Phil
Top achievements
Rank 2
 asked on 15 Dec 2011
1 answer
187 views
I have a project that defines the RadGrid in a class file then instantiates it in the aspx or ascx page where needed. I am looking to add inplace editing of the few datacolumns. The template would need to include RadComboBox, RadNumericTextBox, CheckBox ect. Can anyone point me to sample project where this implemented?

Thanks in advance.
Pavlina
Telerik team
 answered on 14 Dec 2011
5 answers
134 views
Hi,

I am trying to calculate the get column value based of the GridItemTemplate ,RadNumericTextBox when I am still in insert mode, like in Blur of the textBox
I am not able to refer to the insert item's other cells based on InsertItem, I am using the latest version.

I tried:
  var dataItem = $find("rgBaseline").get_masterTableView().get_insertItem();
     var value=dataItem.get_element()[0];
     var value = dataItem.get_element("radNumericTextBox1").get_textBoxValue();
    var value=dataItem.get_element("gridColumn1").get_value()
AND 
$find("grid1").get_masterTableView().getCellByColumnUniqueName(row, "radNumericTextBox").get_textBoxValue() //row comes from sender

Please helps, none of these worked.



Elliott
Top achievements
Rank 2
 answered on 14 Dec 2011
1 answer
285 views
Hello
Our ASP.NET (not MVC) website was running fine using framework 3.5.

We upgraded the .net framework to 4.0 yesterday and we started getting the following javascript errors:
http://local.demo.ca/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a1f68db6e-ab92-4c56-8744-13e09bf43565%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.1.413.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3abd09f19b-b595-4ea4-8ab8-449a745bc83c%3a16e4e7cd%3af7645509%3a24ee1bba%3af46195d3%3a19620875%3a874f8ea2%3a490a9d4e%3a58366029%3a39040b5c%3abd8f85e4Failed to load resource: the server responded with a status of 404 (Not Found)

and

Uncaught Error: ASP.NET Ajax client-side framework failed to load.

and

Uncaught ReferenceError: Sys is not defined


How can we fix this?
Do we need to replace the Telerik files in the bin directory to the 4.0 ones?
Do we need to change some settings in the web.config?


When we tried to put the 4.0 dlls in the bin folder we get the following error:

Could not load file or assembly 'Telerik.Web.UI, Version=2011.1.413.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)


Please advise steps.

Syed
Syed
Top achievements
Rank 1
 answered on 14 Dec 2011
2 answers
80 views
I am redoing an existing site to use ASP.Net and Telerik controls.  The owner has lots of links that rely on the default page in IIS.  For example, www.mydomain.com/search/.  In the search folder, I replaced index.asp with my new index.aspx.  The page comes up no problem.  But when the user tries to change pages with the DataPager, the page posts, but does not refresh.  If I manually change the URL to www.mydomain.com/search/index.aspx, then the pager behaves properly. 

The old manual .asp code would handle this without a problem. 

How do I fix this?
Ed Lance
Top achievements
Rank 1
 answered on 14 Dec 2011
1 answer
211 views

We have wrapped the .Net TreeList control for our application. Once the ASP page is loaded and starts execution, we get on error stating that the ClientSettings.ClientEvents handlers are undefined. We have tried declaring the event handlers in the TreeList declaration of the TreeList in the .ascx file and setting the event handlers at run time in the .ascx.vb file.

We tried registering the client scripts which I don’t like having to place an entire function in a string. We have placed the reference function in the .ascx file and in a separate file which is then included in the outer .aspx file.

We have just upgraded to the latest version last week. I’m not sure what version. From Visual Studio, the Telerik About menu doesn’t display version information, just an advertisement.

 

What is the proper method of creating a user control with client side event handlers? We found several similar questions posted, but none of the answers appear to work for this version.

Antonio Stoilkov
Telerik team
 answered on 14 Dec 2011
1 answer
214 views
Hi,

I have a RadBinaryImage control on my aspx page. using to display image.

I have stored my img file in sqldb as nvarbinary(max). I am retrieving the img from db table as byte[] and setting to RadBinaryImage control.

RadBinaryImage1.DataValue = imgsource;

imgsource is byte[].

But its throwing error as below.

Can any one tell me where am going wrong?

Thanks,

Parameter is not valid.

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.ArgumentException: Parameter is not valid.

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.
Antonio Stoilkov
Telerik team
 answered on 14 Dec 2011
4 answers
250 views
Hi,

I have a strange issue.

I have a form that has multiple RadGrids. On a few of these Grids I have a Delete Command which would delete that particular row.

When the delete command is called, the appropriate event is fired and the code is executed correctly. The right row gets deleted from the database. However, when the control refreshes, it results in an empty grid. If I refresh the entire page, the grid will show the correct number of rows.

I've used the delete command on many other forms without this issue. and I'm stuck on what could be the cause.

Anyone else had the issue when the Delete Command is fired that the grid displays no rows, even though the database rows are there?

Thanks
JM
Paul
Top achievements
Rank 1
 answered on 14 Dec 2011
1 answer
37 views
Hello,

There is not any record available in this link.

for more info check attached image.

Thanks,
Jayesh Goyani
Jayesh Goyani
Top achievements
Rank 2
 answered on 14 Dec 2011
1 answer
67 views
I'm having a weird problem with some of the RadGrids I'm using. Certain columns appear all in white and without any controls in them when in edit mode. This happens in IE, Chrome, and Firefox (except the column is yellow in Firefox), and I don't understand why.

You can see 2 pics of the grid attached below. One is in read only mode, and the other is in edit mode. Do notice that I am using inplace editing and making all of the rows editable.

Here's the aspx code (I renamed some column and control names).

<telerik:RadGrid ID="radgrid1" AutoGenerateColumns="False" runat="server"
    GridLines="None" Skin="Office2007" CellSpacing="0" DataSourceID="radgrid1DataSource"
    OnItemInserted="radgrid1_ItemInserted" AllowAutomaticInserts="true"
    OnItemDataBound="radgrid1_ItemDataBound" OnItemCommand="radgrid1_ItemCommand"
    AllowAutomaticDeletes="true" ValidationSettings-EnableValidation="false">
    <MasterTableView DataKeyNames="KeyID" EditMode="InPlace" AllowAutomaticInserts="true"
        AllowAutomaticDeletes="true">
        <Columns>
            <telerik:GridBoundColumn DataField="KeyID" Visible="false" UniqueName="KeyID"
                HeaderText="<%$ Resources:GlobalResources, KeyID %>" />
            <telerik:GridBoundColumn DataField="ProjectID" Visible="false" UniqueName="ProjectID"
                HeaderText="<%$ Resources:GlobalResources, ProjectID %>" />
            <telerik:GridBoundColumn DataField="Name" UniqueName="Name"
                HeaderText="<%$ Resources:GlobalResources, Name%>" />
            <telerik:GridNumericColumn DataField="InitialAmount" NumericType="Number"
                DataFormatString="{0:N}" DecimalDigits="2" UniqueName="InitialAmount"
                HeaderText="<%$ Resources:GlobalResources, InitialAmount%>" />
            <telerik:GridTemplateColumn UniqueName="CurrencyCode" ItemStyle-Width="260px"
                HeaderText="<%$ Resources:GlobalResources, CurrencyCode %>">
                <ItemTemplate>
                    <%# DataBinder.Eval(Container.DataItem, "CurrencyCode") %>
                </ItemTemplate>
                <EditItemTemplate>
                    <cc:CurrencyDropDownList ID="ddlCurrency" runat="server" IsAlertsVisible="false"
                        IsLockVisible="false" IsHistoryVisible="false" IsFieldLabelVisible="false" IsReadOnly="false"
                        IncludeNullValue="false" MyDropDownList-SelectedValue='<%# Bind("CurrencyCode") %>' />
                </EditItemTemplate>
            </telerik:GridTemplateColumn>
             
            <telerik:GridCheckBoxColumn DataField="ToDelete" UniqueName="ToDelete" HeaderText="Delete" />
            <telerik:GridEditCommandColumn ButtonType="PushButton" InsertText="Confirm" EditText="Edit"
                CancelText="Cancel" UniqueName="EditCommandColumn" />
        </Columns>
        <NoRecordsTemplate>
            No Records Found.
        </NoRecordsTemplate>
        <CommandItemTemplate>
            <table cellpadding="5" style="width: 100%">
                <tr>
                    <td align="left">
                        <asp:LinkButton ID="btnAddNewRecord" runat="server" CommandName="InitInsert">
                            <img style="border:0px" alt="" src="../Images/add.png" />Add New Record
                        </asp:LinkButton>
                    </td>
                    <td align="right">
                        <asp:LinkButton ID="btnDeleteSelected" runat="server" CommandName="DeleteSelected"
                            OnClientClick="javascript:return confirm('Delete all selected records?')">
                            <img src="../Images/delete.png" alt="" style="border:0px" />Delete Selected
                        </asp:LinkButton>
                    </td>
                </tr>
            </table>
        </CommandItemTemplate>
    </MasterTableView>
</telerik:RadGrid>


Here's some of the only relevant C# code (i.e. relevant to the ToDelete column and the grid itself):

protected void Page_Load(object sender, EventArgs e)
        {
            if (this.IsInEditMode)
            {
                for (int i = 0; i < this.radgrid1.PageSize; i++)
                {
                    this.radgrid1.EditIndexes.Add(i);
                }
 
                this.radgrid1.Columns.FindByUniqueName("ToDelete").Visible = true;
                this.radgrid1.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.Bottom;
            }
            else
            {
                this.radgrid1.Columns.FindByUniqueName("ToDelete").Visible = false;
                this.radgrid1.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.None;
            }
        }
 
protected void radgrid1_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e != null)
            {
                if (e.Item is GridDataItem && !e.Item.IsInEditMode)
                {
                    GridDataItem item = e.Item as GridDataItem;
                    Button editButton = (Button)item.Controls[item.Controls.Count - 1].Controls[0];
                    editButton.Visible = false;
                }
                else if (e.Item is GridDataInsertItem && e.Item.IsInEditMode)
                {
                    GridDataInsertItem item = e.Item as GridDataInsertItem;
                    Button insertButton = (Button)item.Controls[item.Controls.Count - 1].Controls[0];
                    Button cancelButton = (Button)item.Controls[item.Controls.Count - 1].Controls[2];
                    insertButton.Visible = true;
                    cancelButton.Visible = true;
                }
                else if (e.Item is GridDataItem && e.Item.IsInEditMode)
                {
                    GridEditableItem item = e.Item as GridEditableItem;
                    Button editButton = (Button)item.Controls[item.Controls.Count - 1].Controls[0];
                    Button cancelButton = (Button)item.Controls[item.Controls.Count - 1].Controls[2];
                    editButton.Visible = false;
                    cancelButton.Visible = false;
                }
            }
        }


Basically, when I'm in readonly mode, I hide the ToDelete column, the Edit/Update/Cancel buttons and I do not display the commanditem controls.

In Edit mode, I display the ToDelete column and hide the Edit/Update/Cancel buttons. On the other hand, I display the command item controls.

Any help?

Thanks.
Pavlina
Telerik team
 answered on 14 Dec 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?