I've searched and seen this several times before but I'm just stumped. I know i've got to be missing something simple.
Here's my scenario. I have 4 RadTextBoxes in a Panel along with a Search button and a Reset button. I have EmptyText values set for each of them. What I'd like is to have the Search button Disabled until someone enters at least one character into at least one of the TextBoxes (we allow partial matches). We had it working before sort of, until the EmptyText values were set. Like I said, I know i'm missing something stupid but here's the basic code:
Javascript:
function formValidation(oEvent) {
oEvent = oEvent || window.event;
var txtField = oEvent.target || oEvent.srcElement;
var ShouldEnabled = true;
if (document.getElementById("ctl00_Body_uxMemberFirstName").value.length == 0 || document.getElementById("ctl00_Body_uxMemberFirstName").value.length != 17)
{ ShouldEnable = false; }
if (document.getElementById("ctl00_Body_uxMemberLastName").value.length == 0 || document.getElementById("ctl00_Body_uxMemberLastName").value.length != 16)
{ ShouldEnable = false; }
if (document.getElementById("ctl00_Body_uxMemberId").value.length == 0 || document.getElementById("ctl00_Body_uxMemberId").value.length != 15)
{ ShouldEnable = false; }
if (document.getElementById("ctl00_Body_uxMemberId").value.length == 0 || document.getElementById("ctl00_Body_uxMemberId").value.length != 25)
{ ShouldEnable = false; }
if (ShouldEnabled) { document.getElementById("ctl00_Body_uxSearch_input").disabled = false; }
else { document.getElementById("ctl00_Body_uxSearch_input").disabled = true; }
}
---------------
window.onload = function () {
var txtMemberFirstName = document.getElementById("ctl00_Body_uxMemberFirstName");
var txtMemberLastName = document.getElementById("ctl00_Body_uxMemberLastName");
var txtMemberId = document.getElementById("ctl00_Body_uxMemberId");
var txtMemberOldId = document.getElementById("ctl00_Body_uxMemberId");
var ShouldEnabled = false;
document.getElementById("ctl00_Body_uxSearch_input").disabled = true;
txtMemberFirstName.onkeyup = formValidation;
txtMemberLastName.onkeyup = formValidation;
txtMemberId.onkeyup = formValidation;
txtMemberOldId.onkeyup = formValidation;
}
----------------------Then the code for the Telerik controls is:
<telerik:RadButton ID="uxSearch" runat="server" Text="Search" Width="55px" OnClick="uxSearch_Click"
ToolTip="Search" TabIndex="13" ValidationGroup="SearchMember" OnClientClicked="validateInput" />
I've set the uxSearch's Enabled property to False at Page load and on Pre-Render on a whim, set it inline in the code above, and everything else I can think of. I've tried it in multiple browsers and verified that the properties are set correctly via the debugger. I actually want to use similar behavior throughout the app with RibbonButtons but need to start here. We have code in the code behind that'll stop the search from happening if there aren't values in. I wasn't here for it but from what i understand, I 'broke' the code when I entered the EmptyText values for each of the relevant textbox controls which I believe was being handled with the validateinput method (not shown here b/c I don't think it's relevant).
Again, this has to be very common functionality and I'm not a UI guy (in fact my field is Data Science so doing UI stuff is way out of my league. No one else was able to get any traction though on any of the other items even though this one supposedly worked before so I was hoping to solve it here and use the same logic throughout. i beg your indulgence if this is such a newbie question and honestly, I did spend quite a while searching and trying things . I'm attaching the relevant files if that could help (although I'm certainly not asking anyone to debug my code). I just have a nagging suspicion I'm overlooking something really small and being new to Javascript I'm sure that's the case. Any help would be greatly appreciated.
On the menu control you can ".Target" on a RadMenuItem.
How do I do that for a navigation control?
I have a few items that I want to open into a new tab rather than redirecting.
Thanks

Hello,
Is there in your opinion a way to make Magic Zoom Plus (https://www.magictoolbox.com/voila/) working with BinaryImage (images stored in a database) ?
It should be great to get them run together or at last having a close functionality with BinaryImage.
Thanks for your reply,
Herve

Hi,
I am not sure if this is a job for the RadButton or a checkbox but I want to know if it is possible to have a control styled like the iPhone's On/Off slider button?
Hai.
I have a problem regarding passing parameter from radwindow template field to sqldatasource. here is eg. given below. but its not working.
here is a scenario (A)
<div>
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:AdventureWorksConnectionString %>"
SelectCommand="SELECT * FROM [SalesPerson] WHERE ([TerritoryID] = @TerritoryID)">
<SelectParameters>
<asp:ControlParameter ControlID="TextBox1" Name="TerritoryID"
PropertyName="Text" Type="Int32" />
</SelectParameters>
</asp:SqlDataSource>
<br />
<telerik:RadWindow ID="RadWindow1" runat="server">
<ContentTemplate>
<asp:TextBox ID="TextBox1" runat="server" Height="21px"
Width="60px"></asp:TextBox>
</ContentTemplate>
</telerik:RadWindow>
</div>
datasource does not recorgnised the textbox1. because of that field under radwindow template.
would any one help me how to recorgnise that textbox1 in sqldatasource parameter.
with regard
Rama
Hi I have a RadGrid that is inside of a UserControl, and is used inside of an aspx page that contains a RadPanelBar. When the user clicks the RadPanlBar buttons the gird is displayed. I have to use a filter on my grid, but I only want the filter to display if a certain RadPanelBar button is clicked. I have the following code in my RadPanlBar ItemClick event.
protected void CategoriesPanelBar_ItemClick(object sender, RadPanelBarEventArgs e)
{
e.Item.Selected = true;
if (e.Item.Expanded || e.Item.Items.Count == 0)
{
// This is a leaf we select the parent and this child only
if (e.Item.Items.Count == 0)
{
createDiscountGridControl.SelectedParentCategory = ((RadPanelItem)e.Item.Parent).Value;
createDiscountGridControl.SelectedCategory = e.Item.Value;
}
else
{
createDiscountGridControl.SelectedParentCategory = e.Item.Value;
createDiscountGridControl.SelectedCategory = null;
}
createDiscountGridControl.Rebind();
//createFilter(int.Parse(e.Item.Value));
if (e.Item.Value == "319")
{
Controls.DiscountGrid userControl = createDiscountGridControl;
var rg = ((RadGrid)userControl.FindControl("RadGridDiscounts"));
GridColumn column = rg.MasterTableView.GetColumnSafe("ProductName");
column.CurrentFilterFunction = GridKnownFunction.Contains;
column.CurrentFilterValue = "Product_Name";
rg.AllowFilteringByColumn = true;
rg.MasterTableView.Rebind();
}
}
}
This line is the button that when clicked should show the grid.
if (e.Item.Value == "319")
I'm getting a null reference exception on the line
GridColumn column = rg.MasterTableView.GetColumnSafe("ProductName");
column is coming back null. It's like it can't find the column inside of the Grid. Here is the code for my RadGrid UserControl. The column in question has a unique name of ProductName.
<telerik:RadGrid ID="RadGridDiscounts" runat="server" ShowStatusBar="true"
AllowFilteringByColumn="true" AllowMultiRowSelection="false" AutoGenerateColumns="false"
OnNeedDataSource="RadGridDiscounts_NeedDataSource" OnPreRender="RadGridDiscounts_PreRender"
OnItemDataBound="RadGridDiscounts_ItemDataBound" Skin="Web20" ClientSettings-AllowExpandCollapse="true" OnInit="RadGridDiscounts_Init" OnDetailTableDataBind="RadGridDiscounts_DetailTableDataBind" OnItemCreated="RadGridDiscounts_ItemCreated">
<PagerStyle Mode="NumericPages" />
<MasterTableView DataKeyNames="Category_ID" AllowMultiColumnSorting="true" HierarchyLoadMode="Client" DataMember="Categories">
<DetailTables>
<telerik:GridTableView DataKeyNames="Product_ID" Name="Products" HierarchyLoadMode="Client" DataMember="Products">
<ColumnGroups>
<telerik:GridColumnGroup HeaderText="Parent" Name="Parent" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
<telerik:GridColumnGroup HeaderText="Account" Name="Discount" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
<telerik:GridColumnGroup HeaderText="Margin" Name="Margin" HeaderStyle-HorizontalAlign="Center"></telerik:GridColumnGroup>
</ColumnGroups>
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="Category_ID" MasterKeyField="Category_ID" />
</ParentTableRelation>
<%--Detail Table For Second Spiff--%>
<DetailTables>
<telerik:GridTableView HierarchyLoadMode="Client" Name="SecondSpiffs" DataMember="SecondSpiffs" runat="server" >
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="SpiffProductID" MasterKeyField="Product_ID"></telerik:GridRelationFields>
</ParentTableRelation>
<Columns>
<telerik:GridBoundColumn UniqueName="SpiffSplitProductID" HeaderText="Spiff Product ID" DataField="SpiffSplitProductID"></telerik:GridBoundColumn>
<telerik:GridBoundColumn HeaderText="Spiff Product Name" DataField="SpiffProductName" UniqueName="Attribute" AllowFiltering="true">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="Lock Discount" UniqueName="LockDiscount" AllowFiltering="false">
<ItemTemplate>
<asp:CheckBox ID="chkLockDiscount" runat="server" Checked='<%# Eval("Lock_Discount") %>'/>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Approved To Sell" AllowFiltering="false">
<ItemTemplate>
<asp:CheckBox ID="chkStatus" runat="server" Checked='<%# Eval("ApprovedToSell_Flg") %>'/>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Parent Spiff" AllowFiltering="false">
<ItemTemplate>
<asp:Label ID="ParentSpiff" runat="server" Text='<%# Eval("ParentSpiffAmount") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Discount" AllowFiltering="false">
<ItemTemplate>
<asp:TextBox ID="ChildSpiff" runat="server" Columns="7" Text='<%# Eval("ChildSpiffAmount") %>' ></asp:TextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn Display="false">
<ItemTemplate>
<asp:Label id="SpiffOrder" runat="server" Text='<%# Eval("Order") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn UniqueName="SpiffSplitMappingID" Display="false" DataField="SpiffSplitMappingID" />
<telerik:GridBoundColumn UniqueName="SpiffProductID" Display="false" DataField="SpiffProductID" />
<telerik:GridBoundColumn UniqueName="SpiffSplitID" Display="false" DataField="SpiffSplitID" />
<telerik:GridCheckBoxColumn DataField="Lock_Discount" UniqueName="hfDiscountLock" Display="false" />
</Columns>
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridBoundColumn SortExpression="Product_ID" HeaderText="Product ID" DataField="Product_ID" AllowFiltering="false" />
<%--<telerik:GridBoundColumn SortExpression="Product_Name" HeaderText="Product Name" DataField="Product_Name" UniqueName="ProductName" AllowFiltering="true" CurrentFilterFunction="Contains" ShowFilterIcon="true" AutoPostBackOnFilter="true">
</telerik:GridBoundColumn>--%>
<telerik:GridBoundColumn SortExpression="Product_Name" HeaderText="Product Name" DataField="Product_Name" UniqueName="ProductName">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="Approved To Sell" AllowFiltering="false">
<ItemTemplate>
<asp:CheckBox ID="chkApprovedToSell" runat="server" Checked='<%# CheckApprovedToSellFlag(Container.DataItem) %>' />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Lock Discount" UniqueName="LockDiscount" AllowFiltering="false">
<ItemTemplate>
<asp:CheckBox ID="chkLockDiscount" runat="server" Checked='<%# Eval("Lock_Discount") %>' />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Discount" ColumnGroupName="Parent" ItemStyle-Width="120px" AllowFiltering="false">
<ItemTemplate>
<asp:Label ID="txtParentDiscount" runat="server" Text='<%# DiscountFormat(Container.DataItem, "parent") %>'>
</asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Price" ColumnGroupName="Parent" ItemStyle-Width="120px" AllowFiltering="false">
<ItemTemplate>
<asp:Label ID="txtParentPrice" runat="server" Text='<%# FinalPriceFormat(Container.DataItem, "parent") %>'>
</asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Discount" ColumnGroupName="Discount" ItemStyle-Width="120px" AllowFiltering="false">
<ItemTemplate>
<asp:TextBox ID="txtAccountDiscount" runat="server" Text='<%# DiscountFormat(Container.DataItem, "account") %>' Width="80%"></asp:TextBox>
<asp:Label ID="lblNewProduct" runat="server" Font-Bold="true" ForeColor="Red" Font-Size="Large"></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Price" ColumnGroupName="Discount" ItemStyle-Width="120px" AllowFiltering="false">
<ItemTemplate>
<asp:TextBox ID="txtAccountPrice" runat="server" Text='<%# FinalPriceFormat(Container.DataItem, "account") %>' Width="80%" Enabled="<%# PriceEnable(Container.DataItem) %>"></asp:TextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Discount" UniqueName="Margin" ColumnGroupName="Margin" ItemStyle-Width="120px" AllowFiltering="false">
<ItemTemplate>
<asp:Label ID="txtMargin" runat="server" Text='<%# DiscountFormat(Container.DataItem, "margin") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Amount" ColumnGroupName="Margin" ItemStyle-Width="120px" AllowFiltering="false">
<ItemTemplate>
<asp:Label ID="txtMarginPrice" runat="server" Text='<%# FinalPriceFormat(Container.DataItem, "margin") %>'></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Discount Type" AllowFiltering="false">
<ItemTemplate>
<asp:RadioButton ID="rbDollar" runat="server" Text="$" GroupName="DiscountType" AutoPostBack="false" Checked='<%#CheckDollarDiscountType(Container.DataItem)%>' Enabled="false"/>
<asp:RadioButton ID="rbPercent" runat="server" Text="%" GroupName="DiscountType" AutoPostBack="false" Checked='<%#CheckPercentDiscountType(Container.DataItem)%>' Enabled="false"/>
<asp:HiddenField ID="hfProductID" runat="server" Value='<%# Eval("Product_ID") %>' />
<asp:HiddenField ID="hfDiscountLock" runat="server" Value='<%# Eval("Lock_Discount") %>' />
<asp:HiddenField ID="hfBasePrice" runat="server" Value='<%# Eval("Base_Price") %>' />
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</telerik:GridTableView>
</DetailTables>
<Columns>
<telerik:GridBoundColumn SortExpression="Parent_ID" HeaderText="Parent_ID" DataField="Parent_ID" Visible="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="Category_Name" HeaderText="Category" HeaderButtonType="TextButton" DataField="Category_Name" Visible="false"></telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="Carrier_Name" HeaderText="Product Category" HeaderButtonType="TextButton" DataField="Carrier_Name" AllowFiltering="false"></telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="Parent Discount" Visible="true" AllowFiltering="false">
<ItemTemplate>
<asp:label ID="lblCarrierParentAccountDiscount" runat="server" Text="" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Apply Approved To Sell To All" Visible="true" AllowFiltering="false">
<ItemTemplate>
<asp:CheckBox ID="chkCarrierApprovedToSell" runat="server" Text="" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Discount" Visible="true" AllowFiltering="false">
<ItemTemplate>
<asp:TextBox ID="txtCarrierAccountDiscount" runat="server"></asp:TextBox>
<asp:Label ID="txtCarrierNewProduct" runat="server" BorderStyle="None" Font-Bold="true" ForeColor="Red" Font-Size="Large"></asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<ClientSettings>
</ClientSettings>
</telerik:RadGrid>

Hi Team,
Good evening.
We are using RAD Editor of Telerik .We are
facing some issue on “RealFontSizes” tag while retrieving font size
dropdown .
Below is the code which we are using to get the size in “pt”
<RealFontSizes>
<telerik:EditorRealFontSize Value="12pt" />
<telerik:EditorRealFontSize Value="26pt" />
<telerik:EditorRealFontSize
Value="36pt" />
</RealFontSizes>
But we are facing below issue while running in IE browser
:
When we are selecting any size from dropdown ,its coming as in “ pt”
as shown in the attached "radeditior_fnt_pt_ select.png" file.
But when we select any size eg. (26pt as above) it is
displaying it as in “pixel “ after the selection as shown in the attached "radeditior_fnt_px_dsply" file.
It will be if you can provide any solution on this ,so that
if I will select “26pt” it should show me “26 pt”.
Thanks and Regards,
Swetalana
