Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
118 views

sometimes when i clicked the search,always showed the circle.

Can you help me why  Thanks.

Attila Antal
Telerik team
 answered on 11 Nov 2019
9 answers
407 views

My overall goal is to use a raddatepicker where weekend days and federal holidays are disabled. On PageLoad, the date picker is populated with a date which could be as far as 5 years in the future.

So far I have implemented the solution given by Eyup in this thread and get the almost desired result with OnDayRender.

However, by doing this, when i click on the calendar icon to show the calendar popup, it does a full post back. My understand is because the calendar popup wrapper is outside my ajax panel, right under the <body>.

How can i force the calendar popup wrapper to be created in my ajax panel?

Thank you

Gregory

Rumen
Telerik team
 answered on 11 Nov 2019
1 answer
135 views

Hi guys,

Thanks for your support in advance,

I have a user control, which has ajax in it for some dropdownlists. it works fine, but when I add a Radgrid into that page, the new grid doesn't work, maybe I miss to set the ajax settings for the grid.

 

Attila Antal
Telerik team
 answered on 11 Nov 2019
3 answers
312 views

Hello

Please I need help ,first  I am not an expert in Telerik  tools , As you can see in the attachments I have radgrid when User click grid row (context menu 1) appear  when user click Emplyee from cntx1 (Context menu 2) appear and (context menu 1) hide , when user click command from cntx2 call server side method and pass cntx1 & cntxt2  selected values.

 

thank you

Attila Antal
Telerik team
 answered on 11 Nov 2019
0 answers
113 views

I define a DropDownTree in RadAjaxPanel with LoadingPanel.

I open the DropDownTree and use keyborad ↑↓ to find a item, then I press enter key to select some one.

It will trigger Infinite loading.

(Mouse operation is working fine, but keyborad doesn't work.)

 

Can anyone help? THX~

 

<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" LoadingPanelID="LoadingPanel1">

     <telerik:RadDropDownTree RenderMode="Lightweight" ID="rddtCustomer" runat="server" Width="300px" Skin="Default" AutoPostBack="true"               EnableFiltering="true" OnEntryAdded="rddtCustomer_EntryAdded" ></telerik:RadDropDownTree>

</telerik:RadAjaxPanel>

n/a
Top achievements
Rank 1
 asked on 11 Nov 2019
3 answers
167 views

I have a page with an AjaxPanel which refreshes (by calling ajaxRequestWithTarget) every 60 seconds through JS timeout.

I have a separate interface which uses javascript page-scope variables which resets to blank/undefined when ajaxRequestWithTarget was called?

elena
Top achievements
Rank 1
 answered on 08 Nov 2019
1 answer
283 views

Hi,

  Pretty new to telerik. I have a radgrid which has a RadMaskedTextBox child control. I have been able to use <ClientEvents OnLoad to get the value typed into the RadMaskedTextBox using the onchanged event using clientside javascript . I also need to pass other values from the Radgrid's datasource which is a datatable. 

   I am trying to get to the radgrid datasource inside of the RadMaskedTextBox declaration using server tags and the clientid. I'm not sure this is possible or if I need to get the values in the javascript code. Here is what I am trying to do and doesn't work. It isn't complete but it's clear that what I've done so far isn't working. The cboCBH.ClientID is not returning a control but the generated RadMaskedTextBox (seen in view source) code shows "cboCBH.ClientID " and not an actual controlid. The demo.getInputValue works as long as I don't pass the $find and pass nothing. I'm trying to pass the radgrid datasource. Here's what I have so far.

 

     <telerik:RadScriptBlock runat="server" ID="whocares"><telerik:RadMaskedTextBox ID="cboCBH" runat="server" Width="80px" Mask="##.##" onchange="demo.getInputValue($find('<%=cboCBH.ClientID %>').NamingContainer)">  <ClientEvents OnLoad="demo.load" /></telerik:RadMaskedTextBox></telerik:RadScriptBlock>

 

Here's the "onload code":

      ; (function () {

            var demoInputControl;

            var id;

            var demo = window.demo = {};



            function getServerId(clientId) {

                return clientId.indexOf("_") > -1 ? clientId.replace(/.+_([a-zA-Z0-9]+)$/m, "$1") : clientId;

            }



            demo.load = function (sender, args) {

                demoInputControl = sender;

                id = getServerId(demoInputControl.get_id()) + " ";

            };



            demo.getDemoInputControl = function () {

                return demoInputControl;

            }



            demo.setInputValue = function (id2) {

                var valueTbx = $telerik.findControl(document.forms[0], id2);

                demoInputControl.set_value(valueTbx.get_value());

            }



            demo.getInputValue = function (other) {

                alert(id + "value is: " + demoInputControl.get_value());
                alert(other);

            }



            demo.setEmptyMessage = function (id2) {

                var valueTbx = $telerik.findControl(document.forms[0], id2);

                demoInputControl.set_emptyMessage(valueTbx.get_value());

            }



            demo.getEmptyMessage = function () {

                alert(id + "EmptyMessage is: " + demoInputControl.get_emptyMessage());

            }



            demo.setMaxValue = function (id2) {

                var valueTbx = $telerik.findControl(document.forms[0], id2);

                demoInputControl.set_maxValue(valueTbx.get_value());

                demoInputControl.clear();

            }



            demo.getMaxValue = function () {

                alert(id + "MaxValue is: " + demoInputControl.get_maxValue());

            }



            demo.showNumberFormat = function () {

                var numberFormat = demoInputControl.get_numberFormat();

                var output = "";



                for (var prop in numberFormat) {

                    output += prop + ": " + numberFormat[prop] + "\n";

                }

                alert(output);

            }

        })();

 

Will this work? Or do I need to get the radgrid datasource from inside a javascript function?

 

 

Eyup
Telerik team
 answered on 08 Nov 2019
1 answer
144 views
I have a scenario where I will have fixed options for an AutoCompleteBox that users will select from. Each option is broken up into a few different groups. Users will be allowed to pick as many options as they would like but I would like to visually present them with the list broken up by group. Basically, we are trying to enforce a standard set of tags that a user can select from. These tags will later be used in searching and filtering. In the attached image,I mocked up what I am looking to do. Is this possible? If not, are they recommended alternatives for handling this type of thing? Thanks in advance for any help you can provide.
Peter Milchev
Telerik team
 answered on 08 Nov 2019
7 answers
669 views
I'm using the RadListView in my project which is setup like so:
<telerik:RadListView ID="lvCalendars" runat="server" AllowPaging="True" DataKeyNames="Listing_ID" 
            DataSourceID="dsListing" OnItemDataBound="lvCalendars_ItemDataBound"> 
            <LayoutTemplate> 
                <telerik:RadDataPager ID="dpTopPager" runat="server" PagedControlID="lvCalendars" 
                    PageSize="7" Skin="Office2007"> 
                    <Fields> 
                        <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="10" /> 
                    </Fields> 
                </telerik:RadDataPager> 
                <table cellpadding="0" cellspacing="0" width="100%" class="bgStandardMedium"> 
                    <tr id="itemPlaceholder" runat="server"> 
                    </tr> 
                </table> 
                <telerik:RadDataPager ID="dpBottomPager" runat="server" PagedControlID="lvCalendars" 
                    PageSize="7" Skin="Office2007"> 
                    <Fields> 
                        <telerik:RadDataPagerButtonField FieldType="Numeric" PageButtonCount="10" /> 
                    </Fields> 
                </telerik:RadDataPager> 
            </LayoutTemplate> 
            <ItemTemplate> 
                <tr> 
                    <td class="bgStandardDark propertySection"> 
                        <asp:Image ID="imgProperty" runat="server" Width="130px" Height="90px" AlternateText='<%#Eval("Name") %>' 
                            ToolTip='<%#Eval("Name") %>' /> 
                        <span class="propertyName"> 
                            <%#DataBinder.Eval(Container, "DataItem.Name").ToString() %> 
                        </span> 
                        <asp:HyperLink ID="lnkBookProperty" runat="server" CssClass="buttonStandard" Text="<span>Book Property</span>" 
                            Width="170px"></asp:HyperLink> 
                        <br /> 
                        <br /> 
                        <asp:LinkButton ID="lnkPrintCalendar" runat="server" CssClass="buttonStandard" Width="170px" 
                            Text="<span>Print Reservation List</span>"></asp:LinkButton> 
                    </td> 
                    <td class="calendarSection"> 
                        <telerik:RadAjaxPanel ID="apBookingCalendar" runat="server" LoadingPanelID="LoadingPanel1"> 
                            <telerik:RadCalendar ID="calBooking" runat="server" MultiViewColumns="4" MultiViewRows="1" 
                                EnableMultiSelect="false" ShowRowHeaders="False" ShowOtherMonthsDays="False" 
                                AutoPostBack="True" CssClass="bookingCalendar" OnDefaultViewChanged="calBooking_DefaultViewChanged"> 
                                <CalendarTableStyle Width="175px" Height="196px" /> 
                            </telerik:RadCalendar> 
                            <div class="button-row" style="text-align: center;"> 
                                <asp:LinkButton ID="lnkbtnViewFullYear" runat="server" CssClass="buttonStandard" 
                                    Text="<span>View Full Year</span>" Width="150px" /> 
                            </div> 
                        </telerik:RadAjaxPanel> 
                        </li> 
                    </td> 
            </ItemTemplate> 
        </telerik:RadListView> 

Now in my calendar's OnDefaultViewChanged event I attempt to retrieve the RadListViewDataItem it's contained in like so:

protected void calBooking_DefaultViewChanged(Object sender, Telerik.Web.UI.Calendar.DefaultViewChangedEventArgs e) 
    { 
        try 
        { 
            // get calendar 
            RadCalendar calBooking = (RadCalendar)sender; 
            // get RadListViewDataItem 
            RadListViewDataItem dtItem = (RadListViewDataItem)calBooking.Parent.Parent; 
 
            // hold Sub Listing 
            SubListing subListing = new SubListing(); 
 
            // hold Listing 
            Listing listing; 
 
            // check if data item is a listing 
            if (dtItem.DataItem is Listing) 
            { 
                // get listing 
                listing = (Listing)dtItem.DataItem; 
            } 
            else 
            { 
                // get sub listing 
                subListing = (SubListing)dtItem.DataItem; 
                // get listing 
                listing = subListing.Listing; 
            } 
 
            //...calendar setup code follows
 
        } 
        catch (Exception ex) 
        { 
        } 
    } 

Now apparently DataItem does not exist, I get a null value. I was able to retrieve the DataItem object in the ItemDataBound event of the RadListView control but not in the calendar event. 

Is there a reason for this or is it some bug in the RadListView control?

I am using the latest version of the controls 3.1105 (.NET 3.5).
Rumen
Telerik team
 answered on 07 Nov 2019
3 answers
149 views

Hi,

I have found a issue when a user opens a link by rightclick in the editor and then "Open Link" due to our customformated links with $* characters. 
I am trying to find a way to replace this characters before the link is opened.

Successfully catched the event in OnClientCommandExecuting but I guess it is to late there..

function OnClientCommandExecuting(editor, args) {
                 if (args.get_name() == "OpenLink") {
 
                 }
}
Rumen
Telerik team
 answered on 07 Nov 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?