Hello,
I have a RadGrid with GridNumericColumn and EditMode="Batch"
Here is column definition
<telerik:GridNumericColumn DataField="CheckAmount" UniqueName="CheckAmount" HeaderText="Check Amount ($)" DataFormatString="{0:C2}" DecimalDigits="2" NumericType="Number" ColumnEditorID="NumericEditor" ItemStyle-HorizontalAlign="Right"></telerik:GridNumericColumn>
Here is column editor definition
<telerik:GridNumericColumnEditor runat="server" ID="NumericEditor">
<NumericTextBox runat="server" NumberFormat-DecimalDigits="2" DataFormatString="{0:C2}" NumberFormat-GroupSeparator="" MinValue="0.00" MaxValue="99999999.99" IncrementSettings-InterceptArrowKeys="false" IncrementSettings-InterceptMouseWheel="false"></NumericTextBox>
</telerik:GridNumericColumnEditor>
Currently, when I edit a number two zeroes are automatically added after a decimal point, for example, 1234 gets converted to 1234.00. I would like to implement functionality when user can type in "cents" and amount gets converted to "dollars.cents", for example 1234 should be converted to 12.34. Could you please suggest how to implement it?
And to expand my original question, I also need to deny entering of empty and negative amounts preferably with validation messages instead of out of range auto correct. Is it possible to achieve with GridNumericColumn/GridNumericColumnEditor or do I need to use GridTempateColumn with EditItemTemplate?
Thanks,
Olga
Hello
I have a asp:button with event "onClientClick" calling radAlert. The idea being if no checkbox from a list is selected, then I show error message saying no checkbox selected. If something is checked, then I show an alert warning side effects of performing this action to users.
Using normal windows alert my code worked fine. I changed it to radAlert and I get the following error when button click method returns true. any ideas why? Thanks
Please note I have included script manager tag in site master and noticed that skinManager made no difference.
Telerik.Web.UI is version 2020.3.915.45
error:
Uncaught TypeError: Cannot read properties of null (reading 'click')
at Sys.UI.DomEvent._removeHandler (ScriptResource.axd?d=l-HRKS2UdUh-FV8pLZQt_8PO1KoV-nv3gFy0dGRtji95LKfVBi92Y5fapUBBxhFsoFd78m3hPynnuWeinQLEFSTurV2yHCVYQ4Yb8UUeyxc0W4nob0uNxUaSqn5y-HKGhZWdur9WRfeM3AuWWX3uN_SRx5d9J5ymT9svRP3TrhY1&t=49337fe8:5:58766)
at Sys.UI.DomEvent.removeHandler (ScriptResource.axd?d=l-HRKS2UdUh-FV8pLZQt_8PO1KoV-nv3gFy0dGRtji95LKfVBi92Y5fapUBBxhFsoFd78m3hPynnuWeinQLEFSTurV2yHCVYQ4Yb8UUeyxc0W4nob0uNxUaSqn5y-HKGhZWdur9WRfeM3AuWWX3uN_SRx5d9J5ymT9svRP3TrhY1&t=49337fe8:5:58674)
at ......
my code:
The asp:button looks like this:
<asp:Button Text="Baseline Permissions" runat="server" ID="btnRemapTitlesToRoles" OnClientClick="return hasTitlesSelectedForRemap();" OnClick="btnRemapTitlesToRoles_Click" CssClass="btn" />
<script type="text/javascript">
(function (global, undefined) {
var demo = {};
global.$dialogsDemo = demo;
Sys.Application.add_load(function () {
//attach a handler to radio buttons to update global variable holding image url
$telerik.$('input:radio').bind('click', function () {
demo.imgUrl = $telerik.$(this).val();
});
});
global.alertCallBackFn = alertCallBackFn;
function alertCallBackFn(arg) {
// empty place holders
return true;
}
})(window);
// this is the method called by asp:button
function hasTitlesSelectedForRemap() {
var isAnyTitleChecked = $('#' + '<%= titlesGridView.ClientID %>' + ' input:checkbox').is(":checked");
var message = '';
var title = '';
if (!isAnyTitleChecked) {
message = 'Please select titles first';
title = 'selection missing';
}
else {
message = 'Baselining permissions will reset permissions for all users of selected titles. Please proceed with caution.';
title = 'Remap warning';
}
radalert(message, 330, 180, title, alertCallBackFn, $dialogsDemo.imgUrl);
return isAnyTitleChecked;
}
function selectAllRolesForTitles(sender) {
var isChecked = sender.checked;
$('#' + '<%= titlesGridView.ClientID %>' + ' input:checkbox').each(function () {
$(this).prop("checked", isChecked);
});
}
</script>
<radCLB:CallbackDropDownList runat="server" ID="OrgPropertyStateList" Width="209px" OnSelectedIndexChanged="OrgPropertyStateList_SelectedIndexChanged" AutoPostBack="True" ControlsToUpdate="pnlSearches;EmploymentTypeSection;divApplicantSalarySelection;divPropertyCitySelection;divPropertyCountySelection" ClientEvents-OnRequestSent="ValidateDateOfBirthAllowedForState">
Hi, I'm trying to put focus on filter input in DropdownTree control when dropdown is opened but I can't get it. I've tryed with some code like this but without success:
JS:
function SetFilterFocus(sender,argEvent){
sender.get_filterElement().focus();
}
ASP.NET
<telerik:RadDropDownTree CssClass="RadComboBox_Metro" Skin="Metro" runat="server" ID="ddt_centro" AutoPostBack="true" Width="90%" TabIndex="3" DataTextField="FMODES" DataFieldID="FMOFAM" TextMode="Default" DataFieldParentID="FMOZU1" OnClientEntryAdding="OnClientEntryAdding" ExpandNodeOnSingleClick="true" CheckNodeOnClick="true" EnableFiltering="true" OnClientDropDownOpened="SetFilterFocus">
<FilterSettings Filter="Contains" Highlight="Matches" MinFilterLength="3" />
<DropDownSettings CssClass="RadComboBox_Metro" Height="300px" CloseDropDownOnSelection="true" />
</telerik:RadDropDownTree>
Is it possible to do this?
Thanks
How can i make a popup on a layer click with information (name,etc...).
On Telerik Radmap Asp.net
Hey all, l was wondering how I would go about removing these huge gaps on my <li> upon export. I'm placing dynamic values from state. I attached the before and after images.
</li>
</ol>
If I attempt to ajaxify an asp.net textbox using RadAjaxManager, obviously, a div with a RadAjaxPanel class surround the div with the "form-floating" class.
When that situation occurs the placeholder duplicates 11px above the current one. In addition, when you put the cursor in the textbox field, the floating label doesn't "float". It remains where it is and conflicts with the newly entered text in the textbox.
Any suggestions?
Dana
I have a grid. It has a MasterTableView and a DetailTables with a GridTableView that has a CommandItemTemplate. In the DetailTableDataBind event I need to hide a button when certain conditions apply. I can't for the life of me figure out how to access these buttons. I can get to the buttons in the MasterTableView's CommandItemTemplate, but not the Detail Table.
Anyone know how to access these little buggers? VB.NET if at all possible...please and thank you. if you need for me to post my grid structure I can.
Hi Team,
As I am trying use Radalert box to show the validation messages from javascript function. (Earlier we were using normal alert for validation messages).
I am able to get the radalert pop up but unable to see the messages on it as its blank box.
Please advise me on this.
Thanks in Advance
Vijaykumar
Code :
if (grid.get_masterTableView().get_selectedItems()[0] != undefined) {
As I can see it in debugger mode the line is executing without any error and even I can see the pop up box with my css .