Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
133 views
Hello,

We are essentially trying to load an ascx control per tab based on this demo: http://demos.telerik.com/aspnet-ajax/tabstrip/examples/applicationscenarios/loadondemand/defaultcs.aspx

The user controls load fine but on our user controls we have some CSS which creates rounded corners via JQuery and on initial page load the first tab shown and user control loaded look fine. However, when we click on the second tab to show the next user control the rounded corners are gone. This can only mean that on subsequent ajax loads it is not calling the javascript for the rounded corners properly. Why is this happening?

Further background: The CSS and Script Files that are used for the rounded corders are referenced in the master page that is referenced by the aspx page which holds the TabStrip. We have tried putting the links to these javascript files in the ascx controls directly but this has no effect.

Thanks in advance for the help.

Paul
Telerik team
 answered on 20 Nov 2009
4 answers
131 views
RadListBox1 copies to RadListBox2 when AutoPostBackOnTransfer == false, but not if it is true - RadListBox2 remains blank.  The code-behind RadListBox1_Transferring() handler fires, but there are no items in the event args.  I need to intercept the value of the RadListBox1 item (a db table name) in order to populate RadListBox2 with the db table column names.

Interestingly, when I programatically populate RadListBox2 and hit RadListBox1's << xfer back button, the item text is passed to the RadListBox1_Transferring() handler.

Perhaps I am going about this a33-backwards, but I still don't get why copying (transfer) is not occuring when AutoPostBackOnTransfer is True.

Conditions:
RadAjaxManager1 EnableAjax = True
RadListBox1.AutoPostBackOnTransferring = True
RadListBox2.AutoPostBackOnTransferring = False
Mark Galbreath
Top achievements
Rank 2
 answered on 20 Nov 2009
0 answers
90 views
(Please ignore this post, since I have created a support ticket in the mean time. I will update this post, when I get a solution).

I have added a custom button to the FileExplorer toolbar (according to this help page). How can I invoke the server-side ItemCommand of the FileExplorer control when this button is clicked?

What I'd like to achieve in the end, is to load the currently selected file into a RadEditor control on the same page.

Thanks.

-Martin
Martin
Top achievements
Rank 1
 asked on 20 Nov 2009
3 answers
146 views
We are finding that the following Url is loading on every page in our live service and it is almost 1MB each time. I believe this is possibly the RadScriptManager,

Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=radScriptManager_HiddenField&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-GB%3a3bbfe379-348b-450d-86a7-bb22e53c1978%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2008.3.1314.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-GB%3aef502ffb-86f7-4d96-ad3a-fbb934d602ab%3a16e4e7cd%3a86526ba7%3aed16cbdc%3a11a04f7e%3a19620875%3ae330518b%3a1e771326%3ac8618e41%3ae4f8f289%3aaa288e2d%3a4cacbc31%3af7645509%3ae524c98b%3a3f6e8f3f%3a874f8ea2%3a39040b5c%3a33108d14

I include the following in our Master Page,
<telerik:RadScriptManager ID="radScriptManager" runat="server"  AsyncPostBackTimeout="3600"></telerik:RadScriptManager> 

Can anyone confirm this is the case and does anyone have a solution on how to prevent this problem?

I would have expected this to cache but the GUIDs must be changing in the query string causing it to download afresh each time.

We are considering adding GZIP to our ISA server but this causes issues with other services we provide so this a far from ideal.

Please help,
Kind regards
ADe
Paul
Telerik team
 answered on 20 Nov 2009
6 answers
99 views
Hello,

for example:

If i use the following code (example from http://www.telerik.com/help/aspnet-ajax/server-side-timeslotcreated.html)

protected void RadScheduler1_TimeSlotCreated(object sender, Telerik.Web.UI.TimeSlotCreatedEventArgs e)
   {
       
if (e.TimeSlot.Appointments.Count > 0)
       {
           e.TimeSlot.CssClass =
"Disabled";
       }  else{
           e.TimeSlot.CssClass = "Enabled";
       }
   }

The first request set this timeslot "Disabled" and the second request set this timeslot to "Enabled", the result is:
<td class=" Disabled Enabled"> </td>
(it adds the new cssClass)

If i disable viewsate, it is ok, only one cssClass there. But I need the viewstate, so what can i do?

my Version of Telerik: 2009.2.707.35

Best wishes,


Kevin


Peter
Telerik team
 answered on 20 Nov 2009
1 answer
90 views
Hi

I have 2 image buttons  in <CommandItemTemplate> of Radgrid
-    UP button to move the selected row from its current position
-    DOWN button to move the selected row

I would like to hook the OnRowDrop event handler to the click events of the 2 buttons

The drag & drop functionality mentioned in the demo is working for me
But i would like to also use the alternate way by using the 2 buttons

thanks
Mahendra
Pavlina
Telerik team
 answered on 20 Nov 2009
2 answers
84 views
Hi,

I have added a new skin file under App_Themes/Skin folder, Now I have couple of skin files one of Custom Controls and Another one for Telerik.(we can have only one register entry per skin file). Its not taking the theme like Forest or Black, I can see only default theme. Good Part is that under web.config file it is working. Since I am using ASP.NET 2X, theme should work.
I have already looked at different solution, nothing is working for me.

I appreciate your response.

Thanks,
Mihir
Mihir Pathak
Top achievements
Rank 1
 answered on 20 Nov 2009
1 answer
84 views
Hi ,
             I am using a rad colorpicker on dynamically generated docks. Whenever a new dock is plotted the colorpicker in the  old plotted dock loses its value because of the postback. Is there any suggestion to avoid this occurrence.

Thank you

Regards,
Ajit
Tsvetie
Telerik team
 answered on 20 Nov 2009
1 answer
222 views
Scenario: I have added nodes in the treeview by using the designer and wanted to keep the nodes in expanded mode once it makes a postback after the node is clicke. Could you please help me how well i could achieve the desire stuff.


Explanation: When the treeview makes a postback with nodeclick event the nodes in the treeview is collapsing. Please help me in keeping them expanded.





Regards,
Ali
Shinu
Top achievements
Rank 2
 answered on 20 Nov 2009
1 answer
109 views
I have a RadAjaxManager within my MasterPage directly below the form tag:

 

<form id="form1" runat="server">

 

 

<telerik:RadAjaxManager ID="RadAjaxManager" runat="server"></telerik:RadAjaxManager>

 


I have a usercontrol where I have a RadAjaxLoadingPanel along with a RadGrid:

<

 

telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px"

 

 

Width="75px" Transparency="100">

 

 

<label runat="server">Loading...</label>

 

 

<br />

 

 

<img style="border: 0; margin-top: 150px;" alt="Loading..." src="../img/Vista.gif" />

 

</

 

telerik:RadAjaxLoadingPanel>

 

<

 

telerik:RadGrid ID="grdTicket" Skin="Office2007" Width="100%" AllowSorting="True"

 

 

AllowPaging="True" PageSize="50" runat="server" AllowMultiRowSelection="true" OnItemDataBound="grdTicket_ItemDataBound"

 

 

OnNeedDataSource="grdTicket_NeedDataSource" OnColumnCreated="grdTicket_ColumnCreated" OnItemCreated="grdTicket_ItemCreated">

 

 

<MasterTableView Width="100%" NoMasterRecordsText="No records to display" TableLayout="Fixed" HeaderStyle-Wrap="true">

 

 

<Columns>

 

 

<telerik:GridClientSelectColumn Reorderable="False" UniqueName="ClientSelectColumn">

 

 

<HeaderStyle Width="25px"></HeaderStyle>

 

 

</telerik:GridClientSelectColumn>

 

 

 

<telerik:GridTemplateColumn HeaderText="WTB" DataField="wtbdt" UniqueName="WTBIndicator" Groupable="false" SortExpression="wtbdt">

 

 

<HeaderStyle Width="35px" />

 

 

<ItemStyle HorizontalAlign="Center" />

 

 

<ItemTemplate>

 

 

<asp:Image ID="WTBIndicator" runat="server">

 

 

</asp:Image>

 

 

</ItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridBoundColumn DataField="wtbindicator" SortExpression="wtbindicator" Visible="false"></telerik:GridBoundColumn>

 

 

</Columns>

 

 

</MasterTableView>

 

 

<PagerStyle Mode="NumericPages" />

 

 

<ClientSettings>

 

 

<Selecting AllowRowSelect="True"></Selecting>

 

 

</ClientSettings>

 

 

<PagerStyle Mode="NumericPages" />

 

</

 

telerik:RadGrid>

 


In the usercontrol Page_Load, I'm getting the RadAjaxManager from the MasterPage and then setting the AjaxSettings:

RadAjaxManager

 

ram = (RadAjaxManager)this.Page.Master.FindControl("RadAjaxManager");

 

ram.AjaxSettings.AddAjaxSetting(grdTicket, grdTicket);

ram.DefaultLoadingPanelID =

"RadAjaxLoadingPanel1";

 


When the usercontrol is loaded into the page and when I retrieve records for my grid, everything is fine.  The problem occurs when I click on a grid header to do a sort.  I get "Microsoft JScript runtime error: Object doesn't support this property or method" in the italicized code below.

Sys.UI.Control =

function Sys$UI$Control(element) {

 

 

/// <summary locid="M:J#Sys.UI.Control.#ctor" />

 

 

/// <param name="element" domElement="true"></param>

 

 

var e = Function._validateParams(arguments, [

 

{name:

"element", domElement: true}

 

]);

 

if (e) throw e;

 

 

if (typeof(element.control) != 'undefined') throw Error.invalidOperation(Sys.Res.controlAlreadyDefined);

 

Sys.UI.Control.initializeBase(

this);

 

 

this._element = element;

 

element.control =

this;

 

Martin
Telerik team
 answered on 20 Nov 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?