Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 views
I have some javascript which calls the "updateItem" method to update an edited row in my radgrid.

The updateItem method works fine except for when I call another AJAX grid method right after it such as "editItem" (for a different row).

It appears that the two asynchronous calls are colliding with each other with the second call causing the first one to never successfully complete.

Is there a way to call "updateItem" in a synchronous manner?  Or is there a way to capture an event on the client in javscript when the updateItem method finishes so that I can call my second AJAX method thereby eliminating the collision?

My workaround right now is to call updateItem and then set a timeout to make the second AJAX call.  This works ok over a reliable connection because by the time the timeout calls the second method the first one has "almost always" finished.  Clearly though it would be better to not call the second until I know for a fact the first one ran successfully.

Any thoughts?
Eric
Top achievements
Rank 1
 answered on 29 Aug 2009
4 answers
193 views
Hi
I'm using RadComboBox but it alert "access denied" error.
I debug it and the error is on "this._xmlHttpRequest.open(verb, this._webRequest.getResolvedUrl(), true );" function in script resource.
My website is on localhost:12 and the WCF Service is on localhost:11.
And I haven't  any iframe on the page.
And this is page's code:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" 
    MasterPageFile="~/UI/Masters/Content.master" %> 
<%@ Register TagPrefix="telerik" Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server"> 
    <telerik:RadComboBox runat="server" ID="RadComboBox1" Height="100px"  
            EnableLoadOnDemand="true" ShowMoreResultsBox="true" EnableVirtualScrolling="true" 
            EmptyMessage="Type here ..." dir="rtl"> 
            <WebServiceSettings Path="http://localhost:11/Items/ClientSidePersonManager.svc" Method="GetAllPrsForRadCombo" /> 
        </telerik:RadComboBox> 
</asp:Content> 
 
And this is web.config configurations:
  <system.serviceModel> 
    <behaviors> 
      <serviceBehaviors> 
        <behavior name="WcfService.Items.ClientSidePersonManagerBehavior"> 
          <serviceMetadata httpGetEnabled="true" /> 
          <serviceThrottling maxConcurrentCalls="200" maxConcurrentSessions="100" 
              maxConcurrentInstances="100" /> 
        </behavior> 
      </serviceBehaviors> 
      <endpointBehaviors> 
        <behavior name="MyTestServiceBehavior"> 
          <enableWebScript /> 
        </behavior> 
      </endpointBehaviors> 
    </behaviors> 
    <services> 
      <service behaviorConfiguration="WcfService.Items.ClientSidePersonManagerBehavior" 
        name="WcfService.Items.ClientSidePersonManager"> 
        <endpoint address="" binding="webHttpBinding" contract="WcfService.Items.IClientSidePersonManager" 
                  behaviorConfiguration="MyTestServiceBehavior"> 
          <identity> 
            <dns value="localhost" /> 
          </identity> 
        </endpoint> 
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /> 
      </service> 
    </services> 
  </system.serviceModel> 
 

Thanks in advance.
Mahdi
Top achievements
Rank 1
 answered on 29 Aug 2009
5 answers
181 views
I have a button in radgrid(pager template) with class "FirstPage", and I want to register onclick event for button with JQuery, so I wrote this code.

$(function() { 
             $(':button.FirstPage').click(function() { goFirstPage(); }); 
 }); 

in first load everything is Ok, but when grid data is changed(page index change or filter data or...). registered event is losed.
any idea?

Thank.
Mojtaba
Top achievements
Rank 1
 answered on 29 Aug 2009
2 answers
287 views
Hi,

Have a smiley days...

I want to change dynamically the height of the grid depend on the number of rows in the grid.

thanks in advance..

Regards,
Maha
maha raja
Top achievements
Rank 1
 answered on 29 Aug 2009
2 answers
186 views

Hi All,

I use RadMenu 2009 Q1.

ASPX CODES (NOTE: 400px is wide enough for menu items):

<table style="width: 98%;">                
<tr> 
 <td style="width: 400px;">  
 <div style="text-align: left; clear: both;">  
    <telerik:RadMenu runat="server" ID="MainMenu" DataSourceID="SiteMapDataSource_Admin" 
                DataFieldID="id" DataFieldParentID="parentID" DataTextField="" Skin="Web20">  
               <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> 
     </telerik:RadMenu> 
 </div> 
 </td> 
</tr> 
</table> 
 
 

It looks like: http://www.lamwz.cn/file/codes/RadMenu_1.jpg

If I set CSS for RadMenu:

.RadMenu .rmLink .rmText  
{  
    font-size: 13px;  
} 

The menu items looks like: http://www.lamwz.cn/file/codes/RadMenu_2.jpg

Anybody can help me ? Thanks a lot.

Lee
Top achievements
Rank 2
 answered on 29 Aug 2009
4 answers
236 views

Hi,

Have a smiley day...

I using telerik radgrid and listbox in my application. I need to perform a drag and drop from listbox to a radgrid and vice versa. Please give me any ideas and coding snippet or a sample to do this.

Thanks in advance.

Regards,
Maha
maha raja
Top achievements
Rank 1
 answered on 29 Aug 2009
1 answer
132 views
Hi,

I have a radGrid which has links generated by GridButtonColumn. Customer can click on these links which posts back to the same page. Now, I want to know which row, link click is happend so that by using that RowID I can go to DataTable( datasource for radGrid) and fetch that row data to perform some business logic.

Please help.

Mahesh
Shinu
Top achievements
Rank 2
 answered on 29 Aug 2009
1 answer
107 views
Hi All, I'm hoping to impliment a bulk edit grid the way Matt Dodson has done with the asp.net gridview as explained Here.
Has anyone been able to make the Telerik Grid perform bulk edits?
Shinu
Top achievements
Rank 2
 answered on 29 Aug 2009
2 answers
121 views
I have a funny problem in using the smart tag of radgrid .... as it is very long and i could not see the template section at the bottom of the tag....
is there a way to customize this smart tag??
Mick
Top achievements
Rank 1
 answered on 29 Aug 2009
0 answers
124 views
Hi there,

I have a site with a set width of 900px, this is then auto centered in the page automatically depending on size of browser window/resolutoin. This site has a horizontal menu that is 900px wide with drop downs that are set to 200px wide. What I would like is for the drop downs to adjust their position on the right menu items so that they don't go outside the 900px width. I can achieve this by setting EnableScreenBoundaryDetection to true and then making my browser window the width of the 900px site. This of course only shows an example of how I want the menu to behave as I have no control over a users window size. However since it's possible to achive this based on screen boundaries I thought someone might know of an easy way to somehow override this or pass in a div to use as co-ordinates and size instead of the browser window.

Any help is greatly appreciated!
Cheers,
Phill
Phill Hodgkinson
Top achievements
Rank 1
 asked on 28 Aug 2009
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?