Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
73 views
I created this JS function that used for 3 client side buttons in their onclick functions

 function DeleteExam(ExmID) {
            if (confirm("Are you sure you want to delete this item?")) {
                SetVars(ExmID, "");
                $('#' + "<%=btnDeleteExam.ClientID%>").click();
                return true;
            }
            else return false;
        }

I used the button btnDeleteExam to update upDetails telerik:RadAjaxPanel like this

            <telerik:AjaxSetting AjaxControlID="btnDeleteExam">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="updDetails" LoadingPanelID="lpnlMiddle" />
                </UpdatedControls>
            </telerik:AjaxSetting>

now telerik:RadAjaxLoadingPanel "lpnlMiddle" shows only for the first button and doesn't show for the others
Venelin
Telerik team
 answered on 22 Aug 2013
1 answer
187 views
Hi everyone

I have a RadGrid, inside a UpdatePanel, so that the page doesn't jump to the top during postbacks. 

In the Grid I have a fancy box that opens up a deny window, but when I expand a grid item, the page loses the document.Ready function and the FancyBox stops working, any idea how to get around this?

Here is my code:
        <script type="text/javascript">
            $(document).ready(function () {
 
                $("a.denyButton").fancybox({
                    'width': 400,
                    'height': 400,
                    'autoScale': true,
                    'transitionIn': 'none',
                    'transitionOut': 'none',
                    'type': 'iframe',
                    'onClosed': function () {
                        window.location = "Index.aspx";
                    }
                });
 
            });
        </script>
<asp:UpdatePanel ID="uxBookUpdatePanel" runat="server">
    <ContentTemplate>         
        <telerik:RadGrid ID="uxBookOrderGrid" runat="server" OnNeedDataSource="uxBookOrderGrid_NeedDataSource">
            <MasterTableView DataKeyNames="BookOrderID" CssClass="quantitytable table table-striped">
                <NestedViewTemplate>
                    <div class="tabstrip-wrapper">
                        <telerik:RadTabStrip ID="uxTabMenuStrip" runat="server" MultiPageID="uxMultiPageWIPDetail" SelectedIndex="0" Align="Justify" >
                            <Tabs>                           
                                <telerik:RadTab Text="Book Order Details" PageViewID="uxBookOrderDetails"/>                             
                            </Tabs>
                        </telerik:RadTabStrip>
                        <telerik:RadMultiPage ID="uxMultiPage" runat="server" SelectedIndex="0" CssClass="tabstrip-page">
                            <telerik:RadPageView ID="uxBookOrderDetails" runat="server">
                                ORDER DETAIL VIEW
                            </telerik:RadPageView>
                        </telerik:RadMultiPage>
                    </div>
                </NestedViewTemplate>
                <Columns>
                    <telerik:GridBoundColumn FilterControlWidth="90%" SortExpression="OrderID" HeaderText="Order ID" DataField="OrderID" UniqueName="OrderID" CurrentFilterFunction="Contains" ShowFilterIcon="false" AutoPostBackOnFilter="true" />
                        .
                        .
                        .
                        <ItemTemplate>
                            <telerik:RadButton ToolTip="Approve Order" CssClass="approveButton" ID="uxBookOrderApprove" runat="server" OnClick="uxBookOrderApprove_Click">
                                <Image EnableImageButton="true" />
                            </telerik:RadButton>
                                
                            <asp:HyperLink ToolTip="Deny Order" Width="25px" CssClass="denyButton" ID="uxBookOrderDeny" runat="server"/>
                        </ItemTemplate>
                    </telerik:GridTemplateColumn>
                    <telerik:GridBoundColumn DataField="BookOrderStatusID" UniqueName="BookOrderStatusID" Display="false" />
                </Columns>    
                <NoRecordsTemplate>
                    No Book Orders waiting to be Approved.
                </NoRecordsTemplate>              
            </MasterTableView>
        </telerik:RadGrid>
    </ContentTemplate>
</asp:UpdatePanel>
    </div></div></div>
</asp:Content>
Jako
Top achievements
Rank 1
 answered on 22 Aug 2013
4 answers
285 views
Hello

I have a radscheduler with web service binding set up like the demo on the website. It is working fine on my local machine and also working fine on my local intranet server. When I deployed it to the public server I am getting the following error (Stack trace):

[SocketException (0x274c): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 50.62.137.146:443]
   System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +305
   System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +699
 
[WebException: Unable to connect to the remote server]
   System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) +3298576
   System.Net.WebClient.UploadString(Uri address, String method, String data) +319
   Telerik.Web.UI.SchedulerWebServiceClient.LoadResources(WebClient client, ResourcesPopulatingEventArgs args) +267
 
[Exception: Unable to retrieve response message]
   Telerik.Web.UI.SchedulerWebServiceClient.HandleWebException(WebException webEx) +311
   Telerik.Web.UI.SchedulerWebServiceClient.LoadResources(WebClient client, ResourcesPopulatingEventArgs args) +364
   Telerik.Web.UI.SchedulerWebServiceClient.GetResources() +421
   Telerik.Web.UI.RadScheduler.BindResourcesFromWebService() +90
   Telerik.Web.UI.RadScheduler.PerformSelect() +117
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +81
   System.Web.UI.Control.EnsureChildControls() +182
   System.Web.UI.Control.FindControl(String id, Int32 pathOffset) +35
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +211
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +283
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +283
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +283
   Telerik.Web.ChildControlHelper.FindControlRecursive(String ID, Control root) +283
   Telerik.Web.UI.RadAjaxControl.OnPagePreRender(Object sender, EventArgs e) +1450
   System.EventHandler.Invoke(Object sender, EventArgs e) +0
   System.Web.UI.Control.PreRenderRecursiveInternal() +113
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4201

This only happens when I am using the ResourcePopulationMode="ServierSide". When I change that to ClientSide then it works and the webservice gets called properly. I am using fiddler to see that. I want to use grouping however so can't use ClientSide. Why is this error occuring? Is there some configuration setting I need to do on the server to get the GetReources method to work? Any help would be appreciated :) Thanks

Plamen
Telerik team
 answered on 22 Aug 2013
1 answer
99 views
Hello,

I am new to using the chart and was looking at the demos. On one of them they are using a SQLDataSource control using a select statement to select the x/y series data. It looked like the fields selected are being used in the series code to define the data fields. My question is if I use a stored procedure that returns many extra fields can I still use it and only set the fields I want for the series part? In other words if I have fields Sales, ID, Person, Address, City returned and I only want to use Sales and Person can I do this and it will ignore the other fields being returned?

Thanks!

Warren
Ves
Telerik team
 answered on 22 Aug 2013
2 answers
162 views
Web Application using 2013.1.417.45

We have a multi-line RadTextBox on a page.  We have the maxlength set to 250.

Javascript appears to treat carriage returns as 1 character vs. 2 characters in .NET.   With 1 carriage return, .Net sees 251 characters when the box is completely filled.  

Is there an option for RadTextBox to have carriage returns treated the same way as .NET?

OR

Is there a way to override the TEXT property globally for RadTextBox, and force a Left by the maxlength?
-->  I would rather not have to create a control that inherits from the RadTextBox.

Any ideas?
Peter
Top achievements
Rank 1
 answered on 22 Aug 2013
1 answer
159 views
Hi,
I am trying to create an hierarchical grid were the child table's column are aligned with the parent columns.
Does anyone knows a way to do it with RadGrid? any help would be appreciated. I have attached a screenshot of what I'm trying to achieve.Thanks, Eyal.
Note: the first column of the the parent table should not be visible in the child table but both the parent and child tables should have a select (radio button) column.
Venelin
Telerik team
 answered on 22 Aug 2013
3 answers
155 views
hello sir
I am using class in my web application
I want to show errors in Radalert
I have used following code but it does not work
it gives error as "Object reference not set to instance of an object"
please help
   
         Try
        
           Dim Rad As New RadWindowManager
           Dim newWindow As New RadWindow
           newWindow.VisibleOnPageLoad = True
           Rad.Windows.Add(newWindow)
 
       Catch ex As Exception
           Rad.RadAlert(ex.Message, 330, 100, "Error", "")
       End Try
Shinu
Top achievements
Rank 2
 answered on 22 Aug 2013
3 answers
546 views
We have a radFilter control linked to a radgrid.
The user selected various filters and etc.. Applies them to the grid.
Now the user opens a radwindow to perform certain task on that result set from the radgrid.

In this modal there is an additional option to filter the radgrids data further (the rad grid does not post back and etc..)
The user selects what extra filter option they want from a radCombo.. ON the blur even I now need to add the selected option to the filter and update a DIV that shows a count of the number of records to be changed by this selection.. 

How do I add a filter from Javascript?

From the documentation it looks like I should be able to do this, but I an not seeing a clear example...
Angel Petrov
Telerik team
 answered on 22 Aug 2013
3 answers
89 views
I have set the recurrence at runtime to weekly, every one week, on Friday. Another control in my custom edit form causes a postback. Upon return from that postback, Saturday will also be selected. I tried many other combinations of weekly recurrence, all with the same result. If I choose a different recurrence frequency, everything works just fine.

Thanks,
Kerry
Plamen
Telerik team
 answered on 22 Aug 2013
2 answers
462 views
I need set VirtualItemCount after get the list of object.
Where I can set this?

I try in needSource and PageLoad event but does not work.

thanks
July
Top achievements
Rank 2
 answered on 22 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?