I have an editor with multiple custom dialogs with different sizes. The issue i have found is when I first open one dialog with size X the browser remember the size when I open another custom dialog with size Y.
Works like expected in other browsers and versions of IE (11/Edge)
Any clue or hotfix?
Using version: 2017.3.913
i wont show all 24 hrs on (show24hrs button click) but its show me the business hrs like 8AM to 6PM
please refer the screenshot one ping.
here is my aspx code
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ScheduleAppointment.aspx.cs" Inherits="iCRA_UI.FieldTech.ScheduleAppointment" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="lib/qsf.js"></script>
<link href="lib/qsf.css" rel="stylesheet" />
<script src="poupup.js"></script>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
<telerik:RadWindowManager RenderMode="Lightweight" ID="RadWindowManager1" runat="server" EnableShadow="true">
</telerik:RadWindowManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadScheduler1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="ConfigurationPanel1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1">
<div class="demo-container no-bg">
<telerik:RadScheduler RenderMode="Lightweight" runat="server" ID="RadScheduler1" GroupBy="Speaker" CustomAttributeNames="Completed" GroupingDirection="Horizontal"
OnNavigationCommand="RadScheduler1_NavigationCommand"
AppointmentStyleMode="Default" DataSourceID="EventsDataSource" DataKeyField="ID"
FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" DataSubjectField="Description" RowHeight="40px" EnableTimeZonesEditing="true"
DataStartField="StartTime" DataEndField="EndTime" DataRecurrenceField="RecurrenceRule"
SelectedView="DayView" DataRecurrenceParentKeyField="RecurrenceParentID" AllowInsert="true" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentDelete="RadScheduler1_AppointmentDelete" OnAppointmentInsert="RadScheduler1_AppointmentInsert" OnResourceHeaderCreated="RadScheduler1_ResourceHeaderCreated"
OverflowBehavior="Auto">
<AdvancedForm Modal="true"></AdvancedForm>
<MonthView UserSelectable="true"></MonthView>
<TimelineView />
<ResourceHeaderTemplate>
<asp:Panel ID="ResourceImageWrapper" runat="server" CssClass="ResCustomClass">
<asp:Image ID="SpeakerImage" runat="server" AlternateText='<%= Eval("Text") %>'></asp:Image>
</asp:Panel>
</ResourceHeaderTemplate>
<ResourceTypes>
<telerik:ResourceType KeyField="UserID" Name="Speaker" TextField="Fullname" ForeignKeyField="UserID"
DataSourceID="SpeakersDataSource1"></telerik:ResourceType>
</ResourceTypes>
<ResourceStyles>
<telerik:ResourceStyleMapping Type="Speaker" Key="1" BackColor="#eb901b"></telerik:ResourceStyleMapping>
<telerik:ResourceStyleMapping Type="Speaker" Key="2" BackColor="#8fd21b"></telerik:ResourceStyleMapping>
<telerik:ResourceStyleMapping Type="Speaker" Key="3" BackColor="#278ce9"></telerik:ResourceStyleMapping>
<telerik:ResourceStyleMapping Type="Speaker" Key="4" BackColor="#f14db2"></telerik:ResourceStyleMapping>
</ResourceStyles>
<TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>
<AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
</telerik:RadScheduler>
</div>
</telerik:RadAjaxPanel>
<asp:SqlDataSource ID="SpeakersDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:SQL %>" SelectCommand="SELECT * FROM [user_view]"
>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SpeakersDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:myConnectionString %>" SelectCommand="SELECT * FROM [sp_view]"></asp:SqlDataSource>
<asp:SqlDataSource ID="EventsDataSource" runat="server"
ConnectionString="<%$ ConnectionStrings:myConnectionString %>"
SelectCommand="SELECT * FROM [sp_view]" InsertCommand="INSERT INTO [sp_view] ([Description], [StartTime], [EndTime], [SpeakerID]) VALUES (@Description, @Start, @End, @SpeakerID)"
UpdateCommand="UPDATE [sp_view] SET [Description] = @Description, [Start] = @Start, [End] = @End, [RoomID] = @RoomID, [RecurrenceRule] = @RecurrenceRule, [RecurrenceParentID] = @RecurrenceParentID, [UserID] = @SpeakerID WHERE [UserID] = @ID"
DeleteCommand="DELETE FROM [sp_view] WHERE [UserID] = @ID">
<DeleteParameters>
<asp:Parameter Name="ID" Type="Int32"></asp:Parameter>
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="Description" Type="String"></asp:Parameter>
<asp:Parameter Name="Start" Type="DateTime"></asp:Parameter>
<asp:Parameter Name="End" Type="DateTime"></asp:Parameter>
<asp:Parameter Name="RoomID" Type="Int32" DefaultValue="1"></asp:Parameter>
<asp:Parameter Name="RecurrenceRule" Type="String"></asp:Parameter>
<asp:Parameter Name="RecurrenceParentID" Type="Int32"></asp:Parameter>
<asp:Parameter Name="SpeakerID" Type="Int32"></asp:Parameter>
<asp:Parameter Name="ID" Type="Int32"></asp:Parameter>
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="Description" Type="String"></asp:Parameter>
<asp:Parameter Name="Start" Type="DateTime"></asp:Parameter>
<asp:Parameter Name="End" Type="DateTime"></asp:Parameter>
<asp:Parameter Name="RoomID" Type="Int32" DefaultValue="1"></asp:Parameter>
<asp:Parameter Name="RecurrenceRule" Type="String"></asp:Parameter>
<asp:Parameter Name="RecurrenceParentID" Type="Int32"></asp:Parameter>
<asp:Parameter Name="SpeakerID" Type="Int32"></asp:Parameter>
</InsertParameters>
</asp:SqlDataSource>
<div style="display:none">
<asp:Button ID="Button1" OnClick="Button1_Click" runat="server" Text="Button" />
</div>
</form>
</body>
</html>
please do hte need full
Regards
Aakash Lokhande
Run javascript from code behind
I know that there are a lot of question like this. I tried a lot them, but still cant make it working.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ScheduleAppointment.aspx.cs" Inherits="iCRA_UI.FieldTech.ScheduleAppointment" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="lib/qsf.js"></script>
<link href="lib/qsf.css" rel="stylesheet" />
<script src="poupup.js"></script>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
<telerik:RadWindowManager RenderMode="Lightweight" ID="RadWindowManager1" runat="server" EnableShadow="true">
</telerik:RadWindowManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadScheduler1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
<telerik:AjaxSetting AjaxControlID="ConfigurationPanel1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadScheduler1" LoadingPanelID="RadAjaxLoadingPanel1"></telerik:AjaxUpdatedControl>
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1">
<div class="demo-container no-bg">
<telerik:RadScheduler RenderMode="Lightweight" runat="server" ID="RadScheduler1" GroupBy="Speaker" CustomAttributeNames="Completed" GroupingDirection="Horizontal"
OnNavigationCommand="RadScheduler1_NavigationCommand"
AppointmentStyleMode="Default" DataSourceID="EventsDataSource" DataKeyField="ID"
FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" DataSubjectField="Description" RowHeight="40px" EnableTimeZonesEditing="true"
DataStartField="StartTime" DataEndField="EndTime" DataRecurrenceField="RecurrenceRule"
SelectedView="DayView" DataRecurrenceParentKeyField="RecurrenceParentID" AllowInsert="true" OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentDelete="RadScheduler1_AppointmentDelete" OnAppointmentInsert="RadScheduler1_AppointmentInsert" OnResourceHeaderCreated="RadScheduler1_ResourceHeaderCreated"
OverflowBehavior="Auto">
<AdvancedForm Modal="true"></AdvancedForm>
<MonthView UserSelectable="true"></MonthView>
<TimelineView />
<ResourceHeaderTemplate>
<asp:Panel ID="ResourceImageWrapper" runat="server" CssClass="ResCustomClass">
<asp:Image ID="SpeakerImage" runat="server" AlternateText='<%= Eval("Text") %>'></asp:Image>
</asp:Panel>
</ResourceHeaderTemplate>
<ResourceTypes>
<telerik:ResourceType KeyField="UserID" Name="Speaker" TextField="Fullname" ForeignKeyField="UserID"
DataSourceID="SpeakersDataSource1"></telerik:ResourceType>
</ResourceTypes>
<ResourceStyles>
<telerik:ResourceStyleMapping Type="Speaker" Key="1" BackColor="#eb901b"></telerik:ResourceStyleMapping>
<telerik:ResourceStyleMapping Type="Speaker" Key="2" BackColor="#8fd21b"></telerik:ResourceStyleMapping>
<telerik:ResourceStyleMapping Type="Speaker" Key="3" BackColor="#278ce9"></telerik:ResourceStyleMapping>
<telerik:ResourceStyleMapping Type="Speaker" Key="4" BackColor="#f14db2"></telerik:ResourceStyleMapping>
</ResourceStyles>
<TimeSlotContextMenuSettings EnableDefault="true"></TimeSlotContextMenuSettings>
<AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
</telerik:RadScheduler>
</div>
</telerik:RadAjaxPanel>
<asp:SqlDataSource ID="SpeakersDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:SQL %>" SelectCommand="SELECT * FROM [user_view]"
>
</asp:SqlDataSource>
<asp:SqlDataSource ID="SpeakersDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:myConnectionString %>" SelectCommand="SELECT * FROM [sp_view]"></asp:SqlDataSource>
<asp:SqlDataSource ID="EventsDataSource" runat="server"
ConnectionString="<%$ ConnectionStrings:myConnectionString %>"
SelectCommand="SELECT * FROM [sp_view]" InsertCommand="INSERT INTO [sp_view] ([Description], [StartTime], [EndTime], [SpeakerID]) VALUES (@Description, @Start, @End, @SpeakerID)"
UpdateCommand="UPDATE [sp_view] SET [Description] = @Description, [Start] = @Start, [End] = @End, [RoomID] = @RoomID, [RecurrenceRule] = @RecurrenceRule, [RecurrenceParentID] = @RecurrenceParentID, [UserID] = @SpeakerID WHERE [UserID] = @ID"
DeleteCommand="DELETE FROM [sp_view] WHERE [UserID] = @ID">
<DeleteParameters>
<asp:Parameter Name="ID" Type="Int32"></asp:Parameter>
</DeleteParameters>
<UpdateParameters>
<asp:Parameter Name="Description" Type="String"></asp:Parameter>
<asp:Parameter Name="Start" Type="DateTime"></asp:Parameter>
<asp:Parameter Name="End" Type="DateTime"></asp:Parameter>
<asp:Parameter Name="RoomID" Type="Int32" DefaultValue="1"></asp:Parameter>
<asp:Parameter Name="RecurrenceRule" Type="String"></asp:Parameter>
<asp:Parameter Name="RecurrenceParentID" Type="Int32"></asp:Parameter>
<asp:Parameter Name="SpeakerID" Type="Int32"></asp:Parameter>
<asp:Parameter Name="ID" Type="Int32"></asp:Parameter>
</UpdateParameters>
<InsertParameters>
<asp:Parameter Name="Description" Type="String"></asp:Parameter>
<asp:Parameter Name="Start" Type="DateTime"></asp:Parameter>
<asp:Parameter Name="End" Type="DateTime"></asp:Parameter>
<asp:Parameter Name="RoomID" Type="Int32" DefaultValue="1"></asp:Parameter>
<asp:Parameter Name="RecurrenceRule" Type="String"></asp:Parameter>
<asp:Parameter Name="RecurrenceParentID" Type="Int32"></asp:Parameter>
<asp:Parameter Name="SpeakerID" Type="Int32"></asp:Parameter>
</InsertParameters>
</asp:SqlDataSource>
<div >
<asp:Button ID="Button1" OnClick="Button1_Click" runat="server" Text="Button" />
</div>
</form>
</body>
</html>
code behind cs.code
protected void RadScheduler1_AppointmentInsert(object sender, AppointmentInsertEventArgs e)
{
ScriptManager.RegisterStartupScript(Page, this.GetType(), "testOne", "MyFunction();", true);
DateTime start = e.Appointment.Start;
DateTime end = e.Appointment.End;
string name = e.Appointment.Subject;
List<Telerik.Web.UI.Resource> s1s = e.Appointment.Resources.ToList();
foreach (Telerik.Web.UI.Resource ss in s1s)
{
string text = ss.Text;
resource = Convert.ToInt32(ss.Key);
}
if (e.Appointment.Subject == String.Empty)
{
e.Cancel = true;
}
else
{
string id = get.checkfroaddresid(Convert.ToInt32(addressid));
if (id == "0")
{
get.insert_appointment(start, end, name, resource, Convert.ToInt32(addressid));
Response.Redirect("~/FieldTech/ScheduleAppointment.aspx?addressid=" + addressid);
}
else
{
string radalertscript = "<script language='javascript'>function f(){radalert('date allreday use', 330, 210); Sys.Application.remove_load(f);}; Sys.Application.add_load(f);</script>";
Page.ClientScript.RegisterStartupScript(this.GetType(), "radalert", radalertscript);
}
}
}
Could someone explain me what am I doing wrong?
There are no errors. Just javascript code is not executed. I dont have alert() window on my screen.
On button click its show the popup but i wont show popup on RadScheduler1_AppointmentInsert() Resource Grouping Scheduler
i am also use the RadScriptBlock
<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server"><script>function MyFunction(){ alert('date');}</script></telerik:RadScriptBlock> but this also not working Please do the needfull ASAP
Regards
Aakash Lokhande
Hello All,
I have recently become involved with a project that was started in VS2015 with what i have to assume was the previous version of Telerik UI. When the project is loaded from my co-workers machine everything is fine. When I open the same project from our Team Foundation server using VS2017 and the current version of the Telerik UI I get the error message shown in the design tab.
I am very new to .net development and the Telerik UI software so if any additional information is needed please let me know.
Thank you in advance for any assistance.
I wanted to find out if RadInput's mask feature can address this scenario. We have the need to hide part of sensitive data after it is entered into a textbox field. Example: Imagine a user enter's their credit card number or country specific person Id (e.g. Social Security Number for the US) and you want to mask all but the last 4 characters after entry/loss of focus.
Is this a usage case for RadInput and how can this be accomplished if it is an out of the box, or almost out of the box feature?
Hi,
We have implemented following solution on grid to stop row drop postback when gird data is changed
https://www.telerik.com/forums/disable-postback-on-dropped-item
But doing so we are now facing issue on inline combo box doesn't work anymore, after this solution. combo box drop option gets prevent because of grid dropping event. how we can overcome this
<telerik:RadGrid ID="ProcessStepListGrid" EnableEmbeddedSkins="false" runat="server" Height="100%" AutoGenerateColumns="False"
GridLines="None" PagerStyle-Mode="NumericPages" AllowPaging="false"
AllowAutomaticDeletes="true" AllowAutomaticInserts="true" AllowAutomaticUpdates="true"
AllowSorting="True" GroupingEnabled="False" EnableAJAX="false" OnNeedDataSource="ProcessStepListGrid_NeedDataSource"
OnRowDrop="ProcessStepListGrid_RowDrop">
<MasterTableView EnableColumnsViewState="false" DataKeyNames="Guid" ShowFooter="true"
CommandItemDisplay="None" EditMode="Batch" >
<CommandItemSettings ShowAddNewRecordButton="false" ShowCancelChangesButton="false" AddNewRecordText="" SaveChangesText="Save" CancelChangesText="Cancel" ShowSaveChangesButton="false"/>
<Columns>
<telerik:GridTemplateColumn UniqueName="Typical" HeaderText="" ColumnGroupName="Typical" >
<ItemTemplate>
<asp:Label ID="lblTypical" runat="server"></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadNumericTextBox ID="rnbTypical" ShowSpinButtons="true" runat="server" Width="50px" MinValue="0" MaxValue="100" NumberFormat-AllowRounding="true" NumberFormat-DecimalDigits="0">
<ClientEvents OnKeyPress="NumbersOnly" />
</telerik:RadNumericTextBox>
</EditItemTemplate>
<FooterTemplate>
<telerik:RadNumericTextBox ID="rnbTypical" ShowSpinButtons="true" runat="server" Width="50px" MinValue="0" MaxValue="100" NumberFormat-AllowRounding="true" NumberFormat-DecimalDigits="0">
<ClientEvents OnKeyPress="NumbersOnly" />
</telerik:RadNumericTextBox>
</FooterTemplate>
<HeaderStyle Width="50px" CssClass="headerBorder" />
<ItemStyle Width="50px" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="TypicalMeasure" HeaderText="" ColumnGroupName="Typical" >
<ItemTemplate>
<asp:Label ID="lblTypicalMeasure" runat="server"></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadDropDownList ID="ddlTypicalMeasure" runat="server" DataTextField="DisplayName" DataValueField="Guid" DataSourceID="ReportingPeriodDataSource" Width="50px" DropDownWidth="150px"></telerik:RadDropDownList>
</EditItemTemplate>
<FooterTemplate>
<telerik:RadDropDownList ID="ddlTypicalMeasure" runat="server" DataTextField="DisplayName" DataValueField="Guid" DataSourceID="ReportingPeriodDataSource" Width="50px" DropDownWidth="150px"></telerik:RadDropDownList>
</FooterTemplate>
<HeaderStyle Width="60px" CssClass="headerBorder" />
<ItemStyle Width="60px" />
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<ClientSettings AllowRowsDragDrop="true">
<Selecting AllowRowSelect="True" EnableDragToSelectRows="false" />
<ClientEvents OnRowDropping="onRowDropping" />
</ClientSettings>
</telerik:RadGrid>
<script>
function onRowDropping(sender, args) {
var grid = $telerik.findControl(document, "ProcessStepListGrid");
var hasChanged = grid.get_batchEditingManager().hasChanges(grid.get_masterTableView());
if (hasChanged) {
args.set_cancel(true);
}
}
</script>
I'm running into a problem where a clientside add-entry attempt on an empty AutoCompleteBox is growing vertically, breaking my design. Investigating the DOM indicates that the input, with a class of "racEmptyMessage", remains and is overflowing the height.
Clicking into the AutoCompleteBox to give it focus, then clicking away, resolves the design break.
Here's the code that I'm using to add the entry, pulled from the documentation:
function
CreateRABEntry(txt, val)
{
var
rab = $find(
"<%= AutoCompleteBox1.ClientID %>"
);
var
newEntry = rab.createEntry(txt, val);
var
entries = rab.get_entries();
entries.add(newEntry);
}
What am I doing wrong here?
i use 2 list boxes and transfer data between them
also i use direction rtl and it works fine
the data transfer from right to left
also i need to use keyboards, so i implemented the KeyboardNavigationSettings property inside the listbox
and it works but not as all accepted
because the keyword ctrl + right now still transfer the data to the right instead as accepted to the left
and so the keyword ctrl + left is working, but the the opposite way, not as accepted
what is the way to fix that behavior?