Pending Review
Last Updated: 05 Dec 2022 16:50 by UXWorks

Hello,

I can't tell you how long we've racked our brains trying to figure this issue out. We are using the Bootstrap theme for RadListView and are doing drag and drop. We've been getting a "This is an invalid webresource request. " error when first dragging an item on the page.

I just came across this article which provided me some new guidance:
https://feedback.telerik.com/aspnet-ajax/1586960-windows7-and-vista-skins-generate-application-error-when-using-editor-control

And we decrypted the querystring of the WebResource request and it is looking for this:

pTelerik.Web.UI.Skins|Telerik.Web.UI.Skins.Bootstrap.ListView.drag.gif

When we change our RadListView skin to "Default" or "Black", this drag and drop error is gone so there clearly must be a broken link/reference for that image because we also see the little drag and drop cross overlaying the items we are dragging.

Thank you,

Curtis

Pending Review
Last Updated: 05 Dec 2022 11:00 by Mario

Hi,

currently the only way to set the translation for the "All" option that is created through the enabled "EnableAllOptionInPagerComboBox" property is to set the translation in the "RadGrid1_ItemDataBound" method, which is described here: Localization on RadGrid: Paging Option All

It's a workaround for a missing localisation. By setting the translation in the RadGrid1_ItemDataBound method the if-statement is being checked for every row processed, which is not good for performance.

Could you please make it possible to set the translation with a property and have the default value set in the resource file of the grid?

Thank you.

Pending Review
Last Updated: 25 Sep 2022 01:59 by Nick
Created by: Nick
Comments: 0
Category: SearchBox
Type: Feature Request
0

I want to be able to let a user choose "Landlords", "Tenants", "Owners" and search for a name. The data for the search box comes from different tables.

<asp:SqlDataSource ID="SqlDataSourceTenants" runat="server"

                           ConnectionString="<%$ ConnectionStrings:ProjectConnectionString %>"
                           SelectCommand="SELECT Id,TenantEntityName as EntityName FROM TenantEntities"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSourceLandlords" runat="server"
                           ConnectionString="<%$ ConnectionStrings:ProjectConnectionString %>"
                           SelectCommand="SELECT Id, LandlordEntityName as EntityName FROM LandlordEntities"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSourceOwners" runat="server"
                           ConnectionString="<%$ ConnectionStrings:ProjectConnectionString %>"
                           SelectCommand="SELECT Id,OwnerEntityName As EntityName FROM OwnerEntities"></asp:SqlDataSource> 

I would like to set the DatasourceId on the RadSearchBox to one of the above when the SearchContext changes. I have worked out how to get the selected searchcontext text via an Ajax Request.

     function OnClientLoad(sender, args) {
                    var context = sender.get_searchContext();
                    var $ = $telerik.$;
                    $(context).on({
                        "selectedIndexChanged": function (event) {
                            var searchbox = $find("<%=RadSearchBox1.ClientID%>");

                // this is the search context dropdown selectedIndexChanged event handler 
                            var ajaxManager = $find("<%=RadAjaxManager1.ClientID%>");
                            ajaxManager.ajaxRequest(context.get_selectedItem().get_text());
            }
        });
                }

 

I cannot work out how to change the datasource at runtime (I get datasource not found when I run the following code).

    Protected Sub RadAjaxManager1_OnAjaxRequest(sender As Object, e As AjaxRequestEventArgs)
        if not isnothing(radsearchbox1.datasource)
            select Case e.Argument
                Case "Tenants"
                    RadSearchBox1.DataSource = sqldatasourcetenants
                    RadSearchBox1.databind
                Case "Landlords"
                    RadSearchBox1.DataSource = sqldatasourcelandlords
                    RadSearchBox1.databind
                Case "Owners"
                    RadSearchBox1.DataSource = sqldatasourceowners
                    RadSearchBox1.databind
            End Select
        End If
    End Sub

In the OnSearch Event I just need to get the type of entity (which I could get from checking the Id of the bound datasource) and the Id of the entity:

Protected Sub RadSearchBox1_OnSearch(sender As Object, e As SearchBoxEventArgs)
        If e.DataItem IsNot Nothing Then
            Dim dataItem = DirectCast(e.DataItem, Dictionary(Of String, Object))
            Dim thisId As String = dataItem("Id").ToString()
            Dim thisEntityName As String = dataItem("EntityName").ToString()
            ' Lookup in database and redirect to the relevant data view / edit page
        End If
    End Sub

 

Surely this is a common request and deserves consideration?