Hello,
How do I set the height of the actual input box? I have tried the following without success.
div.CustomCssClass .rcbInputCell INPUT.rcbInput
{
height: 25px;
width: 250px;
}
div.CustomCssClass {
height: 35px;
}
Thanks
I would like to know how to customize the "X items checked" text when I set CheckedItemsTexts="FitInInput" and have multiple items checked.
Thanks
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
<
telerik:RadComboBox
ID
=
"FrmReferredBy"
runat
=
"server"
AllowCustomText
=
"false"
CausesValidation
=
"false"
/>
<
asp:RequiredFieldValidator
ID
=
"FrmReferredByValidator"
runat
=
"server"
Text
=
"*"
ControlToValidate
=
"FrmReferredBy"
Display
=
"Dynamic"
SetFocusOnError
=
"true"
/>
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
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?
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:
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>
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();
}