Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
249 views
Below, is an error I get now randomly on different pages that have telerik controls, I never seen these error before, until I upgaded to version 2012.2 912

Error Message:
The given key was not present in the dictionary.
Stack Trace:
at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at Telerik.Web.UI.RadInputControl.LoadClientState(Dictionary`2 clientState) at Telerik.Web.UI.RadInputControl.LoadPostData(String postDataKey, NameValueCollection postCollection) at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Maria Ilieva
Telerik team
 answered on 30 Oct 2015
2 answers
81 views

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

 

Maria Ilieva
Telerik team
 answered on 30 Oct 2015
3 answers
172 views
There is a bug in Telerik DatePicker in Windows 10 in certain locales.

Symptom:
UI always selects the current date, whatever date you ​type or pick.
Sometimes this current date is highlighted as invalid, sometimes not (capture attached).

This is most likely related to changes in date parsing:
http://www.heikniemi.net/hardcoded/2015/08/windows-10-breaks-net-date-parsing-in-certain-locales/

I have tested with settings:
DateInput-DateFormat ="dd.MM.yyyy"
Culture ="Finnish (Finland)".

Windows 10 September 30 cumulative update didn't fix the issue.
I have reproduced the problem with the latest version of RadControls.
Maria Ilieva
Telerik team
 answered on 30 Oct 2015
1 answer
86 views
For those of us who don't want to use the calendar as an input device but only use it for display purposes I'd like to see a compiled control of the input popup that can be used without a scheduler control. For those who want to use it like it is now and customize it etc that functionality can be left in. I'd just like to drag and drop the input on a form set some properties and move on. Having a full blown calendar to input values etc for the idiots I deal with is too much information. Just explaining recurring events is hard enough. Of course this would not be customizable, that's left for what you do now. This is just a down and dirty drag and drop and move on.
Ivan Danchev
Telerik team
 answered on 30 Oct 2015
0 answers
98 views

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

 

Patryk
Top achievements
Rank 1
 asked on 30 Oct 2015
3 answers
114 views
Is there a way to set a value in the RadRotatorItem that can be used as an asp control parameter in a SqlDataSource?  I have a RadRotator with a client item shown event that I want to fire a repaint of RadHTMLCharts on a page when the Rotator hit's the next item.  I want to be able to specify the value passed to the control parameter.
Marin Bratanov
Telerik team
 answered on 30 Oct 2015
5 answers
577 views
Hi .
i'm using radwindows to show a notification .
when i close this notification with X button windows close normally.
but when i use OK button page refresh after closing notification
i whant close notification with OK button without refresh like X button

<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)


Thank You
Marin Bratanov
Telerik team
 answered on 30 Oct 2015
3 answers
91 views
Hello, i have a few questions.
My scenario is as follows:

I have a MasterPage with AjaxManager. The content page uses AjaxManagerProxy.
In the content page, I have a method that loads controls in a panel.
This method is OK. It loads the controls correctly and i can handle the events inside it normally. The configurations for LoadingPanels also are OK.

My question is about some behaviors I could not identify, and I don't know if there is something I'm missing with configurations or if the behavior is normal and I should handle it other way.

The thing is, the control dynamically loaded contains a RadGrid. When I press a button it loads data in this grid.
Right after that, if I refresh the page (F5) the control is loaded (because of the methods of dynamic loading) but the data on the grid is not there.

Shouldn't the data be there since the ViewState is enabled? I know there is the event NeedDataSource on the grid, I'm handling it already but maybe i'm not seeing something.

I realized something too, when pressing F5 it doesn't behaves like a postback, even after I just pressed a button that executed a postback. I mean, normally when I press a button it runs a postback and if I refresh the page it tries the same postback (prompting onthe browser if I want to repeat that) but in this case it doesn't show.

I would like some help with this. I'll try to shorten the code and post it later.

Thanks



Kostadin
Telerik team
 answered on 30 Oct 2015
1 answer
186 views

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>

Eyup
Telerik team
 answered on 30 Oct 2015
1 answer
92 views

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

 

Eyup
Telerik team
 answered on 30 Oct 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?