Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
32 views

I would like to know how to customize the "X items checked" text when I set CheckedItemsTexts="FitInInput" and have multiple items checked.

Thanks

ghini
Top achievements
Rank 2
 asked on 01 Dec 2023
2 answers
35 views

The following code disables the combobox, but I cannot enable it by unchecking the checkbox again...howcome?

 

   <telerik:RadComboBox Width="100%"  ID="rcb_zorgverzekeraar" runat="server"></telerik:RadComboBox>
                                           
                  <asp:CheckBox ID="chk_verzekeraar" CausesValidation="false" AutoPostBack="true" OnCheckedChanged="chk_verzekeraar_CheckedChanged" Text="Ik weet het niet" runat="server" />

 

 

with:

 

        Protected Sub chk_verzekeraar_CheckedChanged(sender As Object, e As EventArgs)
            rcb_zorgverzekeraar.Enabled = Not chk_verzekeraar.Checked
        End Sub

 

 

Marc

Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 25 Oct 2023
3 answers
262 views
Hey guys,

I'm finishing setting up some validation controls on a page for a client. I'm having some trouble with getting RadComboBox to jump up when validating. I'm using SetFocusOnError="true" and all other element's on the page are functioning correctly including other telerik controls. 

I did find an old forum post with an employee saying that there was an error on telerik's end but, it's from 2007 so it may not be valid anymore.
http://www.telerik.com/community/forums/aspnet/combobox/validation-focus-not-setting-on-combobox.aspx
 

<telerik:RadComboBox ID="FrmReferredBy" runat="server" AllowCustomText="false" CausesValidation="false" /><asp:RequiredFieldValidator ID="FrmReferredByValidator" runat="server" Text="*"  ControlToValidate="FrmReferredBy" Display="Dynamic" SetFocusOnError="true" />

If you have other questions or need more code just let me know. Thanks!

Peace,
Spencer
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 24 Oct 2023
0 answers
27 views

We have a serious issue when using this feature, following code generates attached error. It occurs when scrolling or clicking the "Show more results"

 

                                      <asp:SqlDataSource ID="sds_geneesmiddel" ConnectionString="<%$ connectionstrings:lef %>" SelectCommand="select Left(Naam, 70) as Naam, id from geneesmiddel order by Naam" runat="server"></asp:SqlDataSource>

                                                    <telerik:RadComboBox DataSourceID="sds_geneesmiddel" DataTextField="Naam" DataValueField="id"
                EnableAutomaticLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true"
                ItemsPerRequest="10" Width="100%" Height="150px" Filter="Contains" EmptyMessage="Typ de naam" DropDownAutoWidth="Enabled" ID="rcb_geneesmiddel" runat="server">
                                                  
                                                    </telerik:RadComboBox>

 

This is something I have to solve today, please react urgently.

 

Marc

Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 24 Oct 2023
0 answers
55 views

I'm using version 2022.2.622.45.

If the checkboxes are displayed in the RadComboBox, the NVAD cannot read out the actual items in the combo box, and only give out the sound 'blank'.

Maybe there's special key for the navigation?

Sheng
Top achievements
Rank 1
Iron
Iron
 asked on 28 Sep 2023
0 answers
42 views

I am creating a mobile website using radcomboboxes inside of update controls that are set to autopostback = true.  All of the controls work except on the page's initial load the UI elements are enlarged and look more like buttons.  They are still able to be selected and after the controls postback the elements still do not go back to a normal size. Only after a postback from another control do the UI elements shrink down to a normal size.  

I have tested the radcombobox with checkboxes enabled outside of the update panel and this behavior does not change.  I have a master page that contains jQuery files located in the header, and when I remove one of the js files, the problem disappears with the UI elements disappearing.  Can anyone help me figure out what is preventing the UI elements from rendering properly?

On Load:

   

After postback:

 

 

0 answers
107 views

Hi,

I am updating a JQuery version  3.7.0 on our website. I have gotten many errors.

 

Priyam
Top achievements
Rank 1
 asked on 22 Sep 2023
1 answer
46 views

DLL: Progress Telerik UI ASP NET AJAX Versión 2020.2.617.40

Hi!,
I have a problem with dynamically loading data, and subsequently filtering data from the headers of a radgrid.

The radgrid data is loaded dynamically through the selection of a radcombo with Id "rcb_Views", and this loads a sql server database view into a sql SqlDataSource "eds_Generic" and binds it to the grid.

The problem is that filtering by grid headers also has to be implemented, and it works if the selection in the combo does not change. But when the selection, in order to load a new data view, and regenerate all the data in the radgrid, it gives an error:

"[column] is neither a DataColumn nor a DataRelation for the DefaultView table.

The problem seems clear, and it is that it does not refresh either the model or the data, since the error column belongs to the schema of the model of the previous view, but I have not been able to solve it by changing the data source of the data, doing a rebind, etc. .

Can someone guide me on how I can correct the problem?

ASPX

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentMain" runat="Server">
    <section class="section-admin-main">
        <h1 class="page-title">
            <asp:Label ID="lblTitle" runat="server" Text="Informes"></asp:Label>
        </h1>
        <telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="rcb_Views">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rcb_Views"></telerik:AjaxUpdatedControl>
                        <telerik:AjaxUpdatedControl ControlID="RG_DistributorsWithoutParts"></telerik:AjaxUpdatedControl>
                        <telerik:AjaxUpdatedControl ControlID="eds_Generic"></telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>
                <telerik:AjaxSetting AjaxControlID="RG_DistributorsWithoutParts">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="rcb_Views"></telerik:AjaxUpdatedControl>
                        <telerik:AjaxUpdatedControl ControlID="RG_DistributorsWithoutParts"></telerik:AjaxUpdatedControl>
                        <telerik:AjaxUpdatedControl ControlID="eds_Generic"></telerik:AjaxUpdatedControl>
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManagerProxy>
        <div id="div_combo">
            <telerik:RadComboBox ID="rcb_Views" runat="server" MaxHeight="200" Width="315" OnSelectedIndexChanged="rcb_Views_SelectedIndexChanged" DataSourceID="eds_ViewNames"
                DataTextField="description" DataValueField="ViewName" AutoPostBack="true" Label="Seleccione los datos a mostrar: ">
            </telerik:RadComboBox>
        </div>
        <telerik:RadGrid ID="RG_DistributorsWithoutParts" runat="server" Height="500px" AllowPaging="True" ShowFooter="True"
            AllowSorting="True" AutoGenerateColumns="True" ShowStatusBar="True" AllowFilteringByColumn="True" DataSourceID="eds_Generic" 
            OnItemCommand="RG_DistributorsWithoutParts_ItemCommand" CellSpacing="-1" Culture="es-ES" GridLines="Both">
            <GroupingSettings CaseSensitive="false" />
            <MasterTableView Width="100%" CommandItemDisplay="Top" CommandItemSettings-ShowAddNewRecordButton="false" CommandItemSettings-ShowRefreshButton="true" CommandItemSettings-ShowExportToExcelButton="true" PageSize="50">
                <CommandItemSettings ShowAddNewRecordButton="False" ShowExportToExcelButton="True"></CommandItemSettings>
                <Columns>
                </Columns>
            </MasterTableView>
            <ClientSettings>
                <Scrolling AllowScroll="true" UseStaticHeaders="false" SaveScrollPosition="false" />
                <Resizing AllowColumnResize="true" AllowResizeToFit="true" />
            </ClientSettings>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="eds_Generic" runat="server" ConnectionString="<%$ ConnectionStrings:LMSViewsConnString %>" SelectCommand="SELECT * FROM [man_participantes]"></asp:SqlDataSource>
        <asp:SqlDataSource ID="eds_ViewNames" runat="server" ConnectionString="<%$ ConnectionStrings:LMSViewsConnString %>" SelectCommand="SELECT * FROM [v_ViewNames]"></asp:SqlDataSource>
    </section>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="FooterScripts" runat="Server">
    <style type="text/css">
        input[type="checkbox"] {
            -webkit-appearance: checkbox;
        }

        input[type="radio"] {
            -webkit-appearance: radio;
        }
    </style>

    <script type="text/javascript">
        function pageLoad() {
            var grid = $find('<%=RG_DistributorsWithoutParts.ClientID %>');
            var columns = grid.get_masterTableView().get_columns();
                for (var i = 0; i < columns.length; i++) {
                    columns[i].resizeToFit();
                }
        }
    </script>
</asp:Content>
ASPX.CS

protected void Page_Load(object sender, EventArgs e)
{
    (this.Master as BaseMaster).setVisibilityMenu(false);
    this.meth_TranslateGrids(RG_DistributorsWithoutParts);
    if (rcb_Views.SelectedValue != "")
    {
        eds_Generic.SelectCommand = "SELECT * FROM [" + rcb_Views.SelectedValue + "]";
    }

    if (!IsPostBack)
    {
        rcb_Views.DataBind();
        eds_Generic.SelectCommand = "SELECT * FROM [" + rcb_Views.SelectedValue + "]";
        RG_DistributorsWithoutParts.DataBind();
    }
}
protected void rcb_Views_SelectedIndexChanged(object sender, Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs e)
{
    eds_Generic.SelectCommand = "SELECT * FROM [" + rcb_Views.SelectedValue + "]";
    RG_DistributorsWithoutParts.DataBind();
}


Doncho
Telerik team
 answered on 19 Sep 2023
3 answers
5.5K+ views
People, can you help to select radcombo item in server side?
Look in my example

drpActive.SelectedValue = 2;

When I try this example above, RadComboBox does not select the element.

Can you help me to solve this, please?

Best Regards,

Milton Camara
Johnny
Top achievements
Rank 3
Bronze
Iron
Iron
 updated answer on 18 Aug 2023
1 answer
86 views

Hello -

We are using Telerik forms for our internal website. When I download one page with all its components, it is 73 files and 11.2 MB total size. Screen captures attached.

  • 10 axd files (4.4 MB)
  • 8 css files (328 KB)
  • 47 js files (2.7 MB)
  • 7 image files (84 KB)
  • 1 html file (3.7 MB)

Most of our site is made up of similar pages. Our site has an average 500 connections per second. During peak times, the website crawls, with 20-30 seconds to return one page for each user.

We are accessing only text, with about 200 KB of text returned for each request.

It looks like 99.3% of the size of our pages is Telerik related files (mostly axd and js).

What could we be doing wrong? What should we be doing differently to reduce the size or count of Telerik files returned to the client?

Thank you!

Rumen
Telerik team
 updated answer on 28 Jun 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?