Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
218 views
Hi there,
Something we observed today in this regard.

We have an aspx page mainly consists of UserControls: 4 loaded declaratively and one dynamically loaded into a PlaceHolder. The aspx page mimics a 'Master' page with the Place Holder functioning as the container of app. pages that are loaded via Menu. Before using your controls, there was an iFrame in place of current PlaceHolder where pages were loaded into. Thanks to your controls and smart approach, app. aspx pages are now being converted to UserControls and loaded dynamically into a single aspx.

Said aspx page has a RadScriptManager (replacing ASP ScriptManager), RadAjaxManager and RadAjaxLoadingPanel. Dynamically loaded UCs contain RadAjaxManagerProxies as advised in documentation. Things went fine with first converted UC especially after ajaxifying most of the tasks of code-behind, which drastically reduced overhead and improved performance. Due to the efficiency of RadAjaxManager, we dropped all ASP UpdatePanls that were encapsulating most of the controls.

When we converted our first aspx page into UC, we used RadCodeBlock to wrap JS code, which went fine. However, when we injected another Proxy into one of the 4 declaratively loaded UCs (Menu UC), JS blocks of converted UC no longer became recognised; always returns errors: function x not declared! Replacing Menu Proxy with code-behind declaration didn't help, even if it was accomplished in aspx code-behind!

After hours of experimenting, we figured out the solution. Replace RadCodeBlock with RadScriptBlock! For some reason, RadCodeBlock only works with a single UC that has a Proxy or linked to main RadAjaxManager. With multiple Proxy instances (one per UC) concurrently processed, RadCodeBlock fails to operate!

Is this popular? If so, how come none of your documentation mentioned it?

We are using latest release: Q1 2009, downloaded last week. Hope someone find this helpful...

Regards,
Saed
Top achievements
Rank 1
 answered on 04 May 2009
3 answers
148 views
Hi,

I use showExternalDialog. This works fine but I have 2 problems.

I can't find a parameter to set "ReloadOnShow" - my dialog uses Databinding - and therefore it has to be reloaded at every call.
I can't find a paramter to set the initial position - my Window is a bit large so I want to set the initial position to 10,10 or such a value.

I'm sure you have an idea how to enable those two things.

Regards

Manfred
ManniAT
Top achievements
Rank 2
 answered on 04 May 2009
7 answers
179 views
Taking a look at the LoadingPanel image and behavior as described in the examples like this one:

http://demos.telerik.com/aspnet-ajax/ajax/examples/loadingpanel/loadingimages/defaultvb.aspx

is this only available in the .NET 3.5 version of the controls?  I am working on a .NET 2.0 project and all I can seem to get are the old loading images.  And the code it generates when I drag the control on to the page looks like the old style as well.

    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" 
        Width="75px">  
        <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' 
            style="border: 0px;" /> 
    </telerik:RadAjaxLoadingPanel> 
Todd
Telerik team
 answered on 04 May 2009
1 answer
148 views
Hi,
In the datepicker, I have added button in the footer template and when I click on it I want to populate the Todays date on the dateinput and close the datepicker.
Currently I have added OnClientClick event by which I m able to populate Todays date on the dateinput but I m unable to close it.Could any one please let me know how to do it?

Here is the code 
<asp:ImageButton ID="IBToday" runat="server" OnClientClick="SelectToday()" ImageUrl="~/Skins/Web20/Calendar/MonthYearTodayBtn.gif" />

  function SelectToday()
    {
      var currentDate = new Date()
      var picker = $find("<%= datepicker1.ClientID %>");
      picker.set_selectedDate(currentDate);                
    }


Thanks
Johnsvuk
John
Top achievements
Rank 1
 answered on 04 May 2009
1 answer
99 views

I would like to know if there is way to modify the attributes of html element in the editor without having to use the pasteHtml function. It appears that both internal dialogs (e.g. image manager, table properties) and custom dialogs insert new html to reflect the changes that occurred in the dialog (e.g. table borders, image alt text). The issue I am having is that the new html isn't always being inserted in the same location in the editor as the tag that launched the dialog. See examples below:

Example 1
Before: This is what the html looks like before modifying the table border using the Table Properties dialog.
<p>This is a paragraph<sup>1</sup>:</p>

 

 

 

 

<table >

 

 

 

 

    <tbody>

 

 

 

 

        <tr>

 

 

 

 

           <td>Cell 1</td>

 

 

 

 

           <td>Cell 2</td>

 

 

 

        </tr>

 

    </tbody>

 

 

 

 

</table>

 

 

 

 

<p>

 

 

 

 

    <sup>a</sup> Footnote for table 1.</sup>

 

 

 

 

</p>

After: Applying table border
<p>This is a paragraph<sup>1</sup>:</p>

 

 

 

 

<p>

 

 

 

 

    <sup>

 

        <table bordercolor="#000000" border="1">

 

 

 

 

            <thead/>    
            <
tbody
>

 

 

 

 

                <tr>

 

 

 

 

                   <td>Cell 1</td>

 

 

 

 

                   <td>Cell 2</td>

 

 

 

                </tr>

 

 

 

 

         </tbody>

 

 

 

 

        </table>

 

 

 

 

 

        a
    

 

</sup> Footnote for table 1.

 

 

 

 

</p>

The table is inserted in the sub tag of the second paragraph.

I also have the same problems with images being moved around after changing the alt text using the image manger.

Is there way to modify the attributes of an existing element in the editor while maintaining its exact location?

Thanks,
Alex

Rumen
Telerik team
 answered on 04 May 2009
5 answers
466 views

I have a question on horizontal scroll in drop down list.

How can I set the dropdown width automatically based on the length of the item.

Basically I want to avoid horizontal scroll bar when any item’s length is longer than input area.
i am using  " DropDownWidth " property with maximum values but still i am getting horizontal scroll bar.

i would really appreciate your help.

Thanks much , Naga

Steve
Top achievements
Rank 2
 answered on 04 May 2009
1 answer
542 views
Hi to all,
is there a Repeater control by Telerik which is more powerful and has more properties than the native Microsoft .NET Repeater ?
Thanks in advance.
Sergio
Sebastian
Telerik team
 answered on 04 May 2009
7 answers
313 views
I have RadGridView in my project. And one of GridTamplateColumns haven't HeaderText, but in a web site i see a colon in the place of HeaderText.
I'll be glad to hear any advise.

Thanks
Sebastian
Telerik team
 answered on 04 May 2009
4 answers
452 views

I'm using Q1 2009 Telerik controls and I've got a major issue with timeouts.

On my development box, my session or something seems to be timing out in 15 minutes, even though I've got the timeout set to 240 minutes, which is the value returned by session.timeout.

I was using using Return New SessionPageStatePersister(MyBase.Page) and a browser file to put the viewstate in Session and thinking that might be the issue, I switched to use Teleriks method as described in
http://www.telerik.com/support/kb/aspnet-ajax/general/saving-the-viewstate-of-radcontrols-server-side.aspx

Same issue, same results.

Multiple developers using Vista, all getting the same results, and our production box is Windows 2003, which is also timing out.

It's not always 15 mintues, it varies from just a few seconds to 15 minutes.

I enabled script debugging in my browser, and the error is a msajx.js.

I ran the application in debug mode, let it set and same restuls, I got the JS error before it hit my breakpoint in code.

Any suggestion in how to track this down even further to determine the root of this issue would be greatly appreciated.

Thanks in advance

Roger



Atanas Korchev
Telerik team
 answered on 04 May 2009
7 answers
205 views
Hi,

I'm trying to achieve the same effect as bbc.co.uk has with Telerik's RadDock. The problems I am having aside from the chaotic CSS operations are the following:
a/ When I move a RadDock and I drag it over a column (not below an actual raddock) it just jumps back to its origin. It should dock below the given column's last Raddock.
b/ When I drag the RadDock into an invalid place it should drag itself back -no transition effect- just jumps back to its origin. Is there a way to get around this?
c/ When I drag the RadDock to the right of the screen -and this may be considered as a bug- the scrollbar just expands and expands and expands....etc forever until I release it then it jumps back to its original location. Is the boundary tracking messed up in this case?

Any thoughts on the matter?

Cheers,
Miklos
Laurent
Top achievements
Rank 1
 answered on 04 May 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?