Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
198 views

I noticed that a simple collapsed dock I have is still showing a bit of the contents when the page loads. If I expand it and collapse it, then it will display properly. Version I have is 2019.2.514

I checked and noticed it was using the Lightweight render mode and that it would be missing "overflow:hidden" in the css in the initial page load.

Code

<telerik:RadDockLayout runat="server" ID="DockLayoutExceptions">
    <telerik:RadDockZone runat="server" ID="DockZoneException" Orientation="Vertical" MinHeight="40px" MinWidth="300px">
        <telerik:RadDock RenderMode="Lightweight" runat="server" ID="DockExceptions" Title="Exceptions" EnableDrag="False" DockMode="Docked" Collapsed="True">
            <Commands>
                <telerik:DockExpandCollapseCommand />
            </Commands>
            <ContentTemplate>
                <cust:ExceptionTable runat="server" ID="tblOrderExceptions" Type="Order" />
            </ContentTemplate>
        </telerik:RadDock>
    </telerik:RadDockZone>
</telerik:RadDockLayout>

 

Attached are images showing the generated CSS at the page load and after expanding and collapsing again.

Rumen
Telerik team
 answered on 22 May 2019
1 answer
105 views

Is there a way to require a Node having to be DoubleClicked in order to redirect to NavigationURL path? I need to Select the node, prior to displaying and selecting a ContextMenu, but since I have NavigationURL value it Redirects to the URL on a SingleClick.

Vessy
Telerik team
 answered on 22 May 2019
1 answer
537 views

Hi,

How to make the list view list items horizontally instead of vertically. 

I am using Item template with binding to dataset.

 

 

 

<telerik:RadListView runat="server" ID="grid_newsHorizanantal" AllowPaging="true" PageSize="10">
                                  <ItemTemplate>
                                      <div class="listViewItem" >
                                          <table>
                                              <tr>
                                                  <td style="vertical-align: top">
                                                      <asp:Image ImageUrl='<%# Eval("urlimage") %>' runat="server" CssClass="newsBotoomImage" />
                                                  </td>
                                                  <td style="text-align: justify; vertical-align: top">
                                                      <table>
                                                          <tr>
                                                              <td style="text-align:left; vertical-align: top; font-weight: 800">
                                                                  <asp:Label ID="Label3" runat="server" Text='<%# Eval("title") %>'></asp:Label>
                                                              </td>
                                                          </tr>
                                                          <tr>
                                                              <td>
                                                                <%--  <asp:Label ID="Label1" runat="server" Text='<%# Eval("desc_short") %>'></asp:Label>--%>
                                                              </td>
                                                              
                                                          </tr>
                                                          <tr>
                                                               <td>
                                                                  <asp:HyperLink ID="Link_readNews" Text='<%# Eval("link") %>' runat="server" NavigateUrl= '<%# Eval("newsID","~/news_read.aspx?newsID={0}") %>'></asp:HyperLink>
                                                              </td>
                                                          </tr>
                                                      </table>
                                                  </td>
                                              </tr>
                                          </table>
                                      </div>
                                  </ItemTemplate>
                              </telerik:RadListView>
Vessy
Telerik team
 answered on 21 May 2019
5 answers
369 views
Are there still plans to allow opening a User Control inside a RAD Window?

This thread from Feb. 2007 states that it is in the plans;
http://www.telerik.com/community/forums/thread/b311D-gmddt.aspx

However, I still receive the 'This type of page is not served.' exception.

Thanks,
A.
Vessy
Telerik team
 answered on 20 May 2019
1 answer
314 views

Hello Team,

As soon as RadPivotGrid's width increase by 100 pixel, i should have horizontal scroll bar. but am not able to enable it. 

Could you let me know what is the property to be used in C# like:

  RadPivotGrid1.ClientSettings.Scrolling.AllowVerticalScroll = true;

 

Thanks,

Mohan Pal

Attila Antal
Telerik team
 answered on 20 May 2019
1 answer
66 views

Hi,

I'm using the following JS in my base page

            function RefreshDiscussionNotesGrid() {
                RefreshGrid("<%=rgDiscussionNotes.ClientID %>");
            }

            function RefreshGrid(ClientID) {
                $find(ClientID).get_masterTableView().rebind();
            }

I'm calling this from an iframe:

            function RefreshDiscussionNotesGrid() {
                jQuery(document).ready(function () {
                    $("input[id*='btnCloseModal']", parent.document).click();
                    window.parent.RefreshDiscussionNotesGrid();
                });
            }

I'm receiving an error in IE11:

Accessing the 'caller' property of a function or arguments object is not allowed in strict mode

Attila Antal
Telerik team
 answered on 20 May 2019
4 answers
182 views
Hello,
Is it possible to change the numeric index of the items in a RadGrid and perhaps update them in a similar fashion to the item que on NetFlix? basically changing the number in the index would move the item to that position in the grid.

Thanks
jon
Top achievements
Rank 1
 answered on 18 May 2019
5 answers
1.6K+ views
Hi there,

i want to update my DataSource of the RadGrid with the Rebind-Method in a Button_Click-Event. 
In the NeedDataSource i update the DataSource properly but the new DataSource is not shown in my Grid. It just don´t do any update.

Can you me help out here?

Here my Grid:

<telerik:RadGrid ID="radInvoiceOverview"
                                runat="server"
                                AutoGenerateColumns="true"
                                OnNeedDataSource="radInvoiceOverview_NeedDataSource"
                                GridLines="None"
                                Width="650px"
                                AllowPaging="true"
                                PageSize="100"
                                ShowHeader="true"
                                ItemStyle-Height="30px"
                                AlternatingItemStyle-Height="30px">
 
                   <ClientSettings AllowKeyboardNavigation="true"
                                   EnablePostBackOnRowClick="true"
                                   EnableRowHoverStyle="true">
 
                       <Selecting AllowRowSelect="true"/>
                   </ClientSettings>
 
                   <SortingSettings  EnableSkinSortStyles="false"/>
 
                   <PagerStyle  Mode="NumericPages"
                                AlwaysVisible="true"
                                PageButtonCount="10"
                                PagerTextFormat="{4} Page {0} from {1}, Transactions {2} to {3}"/>
 
                   
                   <MasterTableView EnableNoRecordsTemplate="true" AutoGenerateColumns="true">
                       <NoRecordsTemplate>
                           <div style="width:100%;text-align:center;margin-top:10px;margin-bottom:10px;"><b>some Text</b></div>
                       </NoRecordsTemplate>
                   </MasterTableView>
               </telerik:RadGrid>


And here my Events:
protected void btnShow_Click(object sender, EventArgs e)
        {
            radInvoiceOverview.Rebind();
        }
 
        protected void radInvoiceOverview_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
        {
             
            try
            {
                radInvoiceOverView.DataSource = GetUnprintedInvoicesForClient(); //<-- brings a DataTable as Source
            }
            catch (Exception ex)
            {
                //do some logging
            }
        }
Do you know what i´m missing in this scenario?

regards
Luke
pilar
Top achievements
Rank 1
 answered on 17 May 2019
6 answers
592 views

Hopefully someone can point me in the right direction.

 

I have a Grid that i populate from a list that i get from my backend. it works great like this. i do have paging that works, but sorting is one i am having trouble with.

 

I set the allowsort property to true, but the columns do not allow me to click on them to sort.

 

Any Suggestions?

Eli
Top achievements
Rank 2
 answered on 17 May 2019
3 answers
777 views
Hi

I have a problem with one AJAX call blocking another.  I suspect that I don't really fully understand what's going on "under the hood/bonnet" to know if I can fix this behaviour so would appreciate a full explanation if one exists, or better still a way to fix the behaviour.

Scenario
I have a page that displays a list of products.  Most of the information for these products is quick to get from the database, but stock data requires calls to 3rd party systems.

The solution is to load the page quickly with the majority of the data.  As soon as the page has loaded, an AJAX call is automatically fired to retrieve stock information that takes between 5-10 seconds.

Meanwhile, the Shopper can click on a button that also does an AJAX call back - the call is very quick and the results are displayed in a Tooltip (think that fact is probably irrelevant).

The initial problem was that when the Shopper clicked on the button, it cancelled the call to get stock.  I got around that problem by setting the RequestQueueSize property to be a number greater than 0.

Problem
If the Shopper spends 10 seconds reading the page and then clicks on the button, they see their results load almost instantaneously - this is because the Stock data has been returned.  However, if the shopper clicks on the button as soon as they page has loaded, then they will have to wait until the long-running call to get the stock information has completed.

My understanding ...
I thought that the whole point of being asynchronous was that once the JavaScript engine had sent the Request off to the server, it would then be free to handle other jobs in the queue.  Once the Response was received from the Server, it would then be added to the queue.

This being the case, it should work as follows:
  1. Request for stock sent
  2. Request for button-click sent
  3. Response for button-click received (and processed)
  4. Response for stock received (and processed)

However, it appears that the second Request is not sent until the first Response has been received.
I thought that a "standard" browser could have a maximum of two connections to a single domain (HTTP Limits) so if nothing else is occuring on my page then this should work as expected.

So is Telerik RadAjaxPanel managing a single queue and only firing off a Request if the previous Request has already been returned?

If so, then from the link regarding HTTP connection limits, there really ought to be two queues per domain.

Think I need that explanation....

Many thanks in advance!

Griff
M
Top achievements
Rank 1
 answered on 17 May 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?