Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
172 views
Hi,

We're using RadEditorMoss Version 5.6.0.0. When we add 2 or more telerik editor web parts to a page the linkmanager and imagemanager stops working with a javascript error according to the image attached.

Any ideas why?

Regards
Magnus
Stanimir
Telerik team
 answered on 11 Dec 2009
1 answer
126 views
Hi,

I use ASP.NET AJAX RadTreeView control (2009 Q3). I populate root nodes manually but for subnodes I use WCF service (to load them on demand). The problem is that the web service/method parameteres "p_Node", "p_Context" ARE ALWAYS null when method is invoked:

  [ServiceContract(Namespace = "")]
  [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
  public class TreeViewService
  {
    [OperationContract()]
    public RadTreeNodeData[] LoadChildData(RadTreeNodeData p_Node, IDictionary<string, object> p_Context)
    {
         string currentVal = p_Node.Value;  // error - null on every call
         .....
         return listOfNodes.ToArray();
    }


The service.model in web.config is defined as:

<system.ServiceModel>
   
    <!-- bindings -->
    <bindings>
      <webHttpBinding>
        <binding name="webBinding">
          <security mode="None" />
        </binding>
      </webHttpBinding>
    </bindings>
    
    
    <!-- behaviors -->
    <behaviors>
      <endpointBehaviors>
        <behavior name="ajaxBehavior">
          <enableWebScript />
        </behavior>
      </endpointBehaviors>
      <serviceBehaviors>
        <behavior name="defaultBehavior">
          <serviceDebug includeExceptionDetailInFaults="true" />
          <serviceMetadata httpGetEnabled="true" />
        </behavior>
      </serviceBehaviors>
    </behaviors>

    <!-- ASP.NET compatibility mode -->
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
    
    <services>
      <!-- TreeViewService.svc -->
      <service name="TreeViewService" behaviorConfiguration="defaultBehavior">
        <host>
          <baseAddresses>
            <add baseAddress="TreeViewService.svc"/>
          </baseAddresses>
        </host>
        <endpoint address=""
                  behaviorConfiguration="ajaxBehavior"
                  binding="webHttpBinding"
                  contract="TreeViewService" />
      </service>
    </services>
    
</system.ServiceModel>


The .aspx page contains the following definition:

<telerik:RadTreeView ID="radTreeView" runat="server" OnClientNodeClicked="OnNodeClicked"
      DataFieldID="Code" EnableViewState="False" DataFieldParentID="ParentCode">
      <webservicesettings path="TreeViewService.svc" method="LoadChildData" />
      <databindings>
        <telerik:RadTreeNodeBinding Depth="0" ExpandMode="WebService" ValueField="Code" />
        </databindings>
    </telerik:RadTreeView>


What is wrong?? Thank you for help.

Regards,
Damjan
Vesko
Top achievements
Rank 2
 answered on 11 Dec 2009
8 answers
459 views
I'm not sure what I did, but originally this was working and I didn't update any controls.

I have a RadComboBox and then a button right beside it. For whatever reason now it's displaying below the combo box when I want it to show right beside it. Looking at the generated html it's putting a display:block around the input control (internally I'm guessing)

<div id="ctl00_ctl00_ContentPlaceHolder1_MainArea_ctl00_ctl00_ContentPlaceHolder1_MainArea_cmbTagsPanel" style="display: block;"
</div> 
<input id="ctl00_ctl00_ContentPlaceHolder1_MainArea_btnAddTag" class="button" type="button" onclick="javascript:__doPostBack('ctl00$ctl00$ContentPlaceHolder1$MainArea$btnAddTag','')" value="Add" name="ctl00$ctl00$ContentPlaceHolder1$MainArea$btnAddTag"/> 

Is there a property I can set in order to get this to display:inline? What would I need to do to overwrite this setting?

THanks

-Matt
Brian Northcutt
Top achievements
Rank 1
 answered on 11 Dec 2009
4 answers
107 views
i have a textbox and a button wrapped in an AjaxPanel. For the textbox, autopostback=true and i am handling the Textchanged event on the server. My problem is that when i start typing in the textbox and then click the button to submit the form, it performs the callback for the textchanged event but the click event for the button is not fired. So the user ends up having to click the button twice to submit the form (if there are going from typing the texbox to clicking the button). Is there a way around this problem? I realize this is probably a bigger problem than just with Telerik Ajax callbacks (like Microsoft and asp.net and postback and events, etc). Is there a workaround?
Tsvetoslav
Telerik team
 answered on 11 Dec 2009
6 answers
200 views
I've been having quite a time working around behavior that I just can't imagine is correct.  I have several modal dialog boxes implemented via the jQuery thickbox.  This plugin allows me to specify a div with style="display: none;" to be shown as a modal pop-up.  These divs have server controls in them as well as buttons with server routines behind them.  Unfortunately, while the button clicks will execute the server code, any entry the user puts into other server controls like textboxes is discarded.  On the button click events, the values for those textboxes are the original values with which they were instantiated.  However, if I remove the style="display: none;" from the div and go through the process, the controls' values are all readable.

The only way I can work around this is by putting a hidden field outside of the div and to use javascript to write all the control values to those hidden fields.  It ends up being a cluttered design that really shouldn't be necessary.  What is it about the radAJAX library that doesn't pay attention to server controls inside hidden divs?

Josh
Iana Tsolova
Telerik team
 answered on 11 Dec 2009
7 answers
284 views
I have a radgrid with a custom edit form. I have several controls in the edit form ie: Radeditor,Dropdownlist etc.... the problem I am having is with my dropdownlist I need to fill the list from sql based on the "dictationid" of the record being edited. I cant seem to get the value of the dictationid as a parameter for the Dropdownlist SQL Query. How do I get this value? BTW the dictationid is the Datakeyname for this radgrid.
Robert
Top achievements
Rank 1
 answered on 11 Dec 2009
11 answers
132 views
I am sure I simply missed this config or such option when using the radgrid, but at this poitn I am not sure what the error is coming from.

I have a bound radgrid that shows up with its data fine in all browsers.  However, when i click the pageing function of the grid, it only works in FireFox and IE6.  In IE 7 and IE 8 (including quirks and compatibility modes) it emptys the grid whenever i try to click on any of the paging buttons. 

Is this a bug fix needed or do I need to do something to configure the control that i forgot to do?

Thanks!
Pavlina
Telerik team
 answered on 11 Dec 2009
1 answer
117 views
Hi

I use different paths for the editor and the viewer part of my application.
Editor: http://someurl.com
Viewer: http://someotherurl.com/

When I insert any media (image, movie, file, flash) through one of the managers I use the absolute path. Images (and other media) then get the url http://someurl.com/Images/someimage.jpg when viewing from http://someotherurl.com/.
Absolute path example:
RadEditor.EnableFilter(Telerik.Web.UI.EditorFilters.MakeUrlsAbsolute); 


The problem here is that for Movies and Flash IE uses another url param than other browsers.
Example:
<object classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" width="150" height="150" type="application/x-oleobject"
<param name="URL" value="/Media/V2.avi"
<embed src="http://someurl.com/Media/V2.avi" width="150" height="150" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer"
</object> 

IE uses the value of param with name URL, all other browsers use the src value inside the <embed> tag.

How can I set RadEditor to use absolute paths on the param URL?
Tarjei Knudsen
Top achievements
Rank 1
 answered on 11 Dec 2009
1 answer
103 views
Hi,

I implemented RadCaptcha inside a little form.
I also installed the last realease of ASP.NET ajax for the translation of the CaptchaLinkButtonText and the translation works.
I use on IIS7 the url rewrite.

For this page the url is: matchUrl=customer.htm and the rewrite rule is: Index.aspx?page=22, type Rewrite.
Like this:

<rule name="customer page">  
   <match url="customer.htm" /> 
   <action type="Rewrite" url="Index.aspx?page=22" /> 
</rule> 


If i Use the url rewriting, the refreshlink don't work anymore. The first click, nothing append. The second click I have a Postback to Index.aspx?page=22&page=22 with error off course.
I don't have any problem without URL rewriting, the refresh link work perfectly.

Do I need to specified something in my rewrite rule for the WebResource? The other components (RadToolTip, Ajax) works perfectly.

Any idee of the problem?

In advance thanks for your answer.

Regards,

Edwin.
Pero
Telerik team
 answered on 11 Dec 2009
1 answer
100 views
Hi there,

What I have build here, is a table with multiple Cells (<td>). Almost very Cell has a mouseover and mouseout event that triggers the opaning and closing of a radWindow (via javascript).

The weird problem however, is that everytime I hover on Cell the window's width reduces a few pixels at a time. After hovering on multiple Cells, at a certain point there is nothing left of the window but a mere 1 pixel wide bar. I noticed that the control does not do this when I delete the line:

oWindow.MoveTo(X, Y + element.offsetHeight);

Has anyone had this problem before?

Gr,
Don

Georgi Tunev
Telerik team
 answered on 11 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?