Hello,
I'm following this sample to have the excel-like filtering on my grid view. I'm wondering if I could hide some options in the herder context menu like Group By, Ungroup, and Columns.
Is there a way?
Thanks,
Brew
Hello,
I have a problem with display and filter by date on the grid (using ajax).
Example:
http://demos.telerik.com/aspnet-mvc/grid/remote-data-binding
My timezone is UTC + 01:00.
If i change timezone on my notebook (-05:00, -08:00, +04:00, +06:00, etc.), all the dates change, and if I filter by date, return no data.
I find solution, but it doesn't work well:
http://www.telerik.com/support/code-library/using-utc-time-on-both-client-and-server-sides
Regardless of the change timezone, I need same date (display and filter).
Best regards
<
telerik:RadWindowManager
ReloadOnShow
=
"false"
ID
=
"RadWindowManager1"
runat
=
"server"
EnableShadow
=
"true"
style
=
"direction: rtl"
EnableViewState
=
"false"
>
<
Windows
>
<
telerik:RadWindow
ID
=
"RadWindowPopup"
VisibleOnPageLoad
=
"false"
EnableShadow
=
"true"
Behaviors
=
"Close"
AutoSize
=
"false"
Height
=
"180"
Width
=
"330"
runat
=
"server"
style
=
"direction: rtl"
CenterIfModal
=
"false"
Modal
=
"true"
CssClass
=
"radwindowpopup"
VisibleStatusbar
=
"false"
>
<
ContentTemplate
>
<
div
class
=
"popup"
>
<
div
class
=
"popup_l"
>
<
div
ID
=
"PopupIcon"
runat
=
"server"
></
div
>
</
div
>
<
div
class
=
"popup_r"
>
<
asp:Literal
ID
=
"UserMessage"
runat
=
"server"
> Message </
asp:Literal
>
</
div
><
br
></
br
>
<
div
class
=
"clear popup_button"
>
<
asp:Button
ID
=
"Button"
runat
=
"server"
Text
=
"OK"
/>
</
div
>
</
div
>
</
ContentTemplate
>
</
telerik:RadWindow
>
</
Windows
>
</
telerik:RadWindowManager
>
Dim
script
As
String
=
"function f(){$find("
""
+ RadWindowPopup.ClientID +
""
").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"
ScriptManager.RegisterStartupScript(Page, Page.
GetType
(),
"key"
, script,
True
)
Hi, I have an asp button as an updated control in an ajax manager.
If a user does not select a proper value in cboDivision, cmdPay is disabled, and when they do select a valid one, cmdPay in enabled. This is all working fine.
When I click the button, it is not submitting the entire page so my interaction with the other controls is not displayed. Am i just not understanding how this works? How can I get the command button to submit the whole page?
<telerik:RadAjaxManager ID="RadAjaxManager" runat="server">
<AjaxSettings>
<%--AjaxControlID has to equal its parents name for some stupid reason--%>
<telerik:AjaxSetting AjaxControlID="cboDivision">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="cmdPay" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
Hi I'm using OnDayRender to disable special days.
so have added below code
<
telerik:RadDatePicker
Calendar-DayNameFormat
=
"Shortest"
Calendar-ShowOtherMonthsDays
=
"false"
DateInput-ReadOnly
=
"true"
DatePopupButton-ImageUrl
=
"/images/calander_icon.gif"
DatePopupButton-HoverImageUrl
=
"/images/calander_icon.gif"
ID
=
"rdpDeliveryDate"
OnLoad
=
"rdpDeliveryDate_Load"
runat
=
"server"
>
<
Calendar
ID
=
"Calendar1"
runat
=
"server"
ShowRowHeaders
=
"false"
OnDayRender
=
"dayRender"
ShowFastNavigationButtons
=
"false"
FirstDayOfWeek
=
"Sunday"
></
Calendar
>
</
telerik:RadDatePicker
>
CS:
protected
void
dayRender(
object
sender, Telerik.Web.UI.Calendar.DayRenderEventArgs e)
{
if
(e.Day.Date.DayOfWeek == DayOfWeek.Friday|| e.Day.Date.DayOfWeek == DayOfWeek.Saturday)
{
// clear the default cell content (anchor tag) as we need to disable the hover effect for this cell
e.Cell.Text =
""
;
e.Cell.CssClass =
"rcOutOfRange"
;
//set new CssClass for the disabled calendar day cells (e.g. look like other month days here)
// render a span element with the processed calendar day number instead of the removed anchor -- necessary for the calendar skinning mechanism
Label label =
new
Label();
label.Text = e.Day.Date.Day.ToString();
e.Cell.Controls.Add(label);
e.Cell.ToolTip =
"Day Off"
;
RadCalendarDay dayoff =
new
RadCalendarDay();
dayoff.Date = e.Day.Date;
dayoff.IsSelectable =
false
;
dayoff.IsDisabled =
true
;
dayoff.ItemStyle.CssClass =
"rcOutOfRange"
;
cln.SpecialDays.Add(dayoff);
}
}
I'm using Version 2015.2.826.45,
Visual studio 2012.
but still other month of special days showing in the calendar. please check the attached screen shot
appropriate for quick and best response.
Yasin