Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
133 views
I am building a tree from a list.

tree.DataValueField = "ID";
tree.DataTextField = "Name";
tree.DataSource = list;   // list = new List<Person>(); // class Person { ID; Name; }
tree.DataBind();

And the tree is not showing the expand button. (.rtPlus)

How can I force the tree to show the expand button? (I will load children on demand)
Helen
Telerik team
 answered on 21 Nov 2011
11 answers
197 views
I have a rather large form with textboxes and dropdowns, each with their own validator.  Based on several conditions, including the click of certain radiobuttons in this same form, validators are turned on or off and text boxes are hidden or displayed.  All of this is happening inside of a RadAjaxPanel. 

I'm seeing a very frustrating issue where click one of the radio buttons to enable the validator for a few comboboxes and then click the save button to cause validation, the comboboxes stop responding to events.

To try and isolate the problem, I have even included a combobox with no validator outside of the AjaxPanel to see if it would kill this as well, and it does.

It does not look disabled (greyed out), so I attempted to catch the "OnClientDropDownOpening" event, and verified that before validation was fired the "OnClientDropDownOpening event fired, and then after causing validation again with the save button, the OnClientDropDownOpening was not being fired.

I also just tested to see if how the validators fire effected this issue, and it does.  If I am on  textbox and I clear the text and tab off of it, it fires the validator for that textbox, but doesn't kill the ComboBox events.  If I cause validation for the whole page (via the save button), then it kills the droppdown events.

Finally, I just removed the RadAjaxPanel from the whole page, and the problem went away.

This is a very large piece of code, so I cannot effectively provide an example for you.  I was hoping Telerik, or perhaps another user might have run into this before. Thanks for your time...    
Simone
Top achievements
Rank 1
 answered on 21 Nov 2011
3 answers
111 views
Hi,

I would like to put the text property of the menu, underneath the image of the menu. Please help





Menu Html:

<div id="ctl00_RadMenu1" class="RadMenu RadMenu_" style="top: -2px; left: 0px;
                                            height: 26px">
    <!-- 2010.3.1109.40 --><ul class="rmRootGroup rmHorizontal">
        <li class="rmItem rmFirst"><a href="#" class="rmLink rmRootLink"><img alt="" src="../Images/button_home_on.jpg" class="rmLeftImage" /><span class="rmText">Home</span></a><div class="rmSlide">
            <ul class="rmVertical rmGroup rmLevel1">
                <li class="rmItem rmFirst"><a href="1About.aspx?cat=directAbout" class="rmLink menuItems"><span class="rmText">About BJM</span></a></li><li class="rmItem "><a href="1About.aspx?cat=directStockBroking" class="rmLink menuItems"><span class="rmText">Stock Broking</span></a></li><li class="rmItem "><a href="1AboutArt.aspx?art=1053338" class="rmLink menuItems"><span class="rmText">Contracts for Difference (CFD's)</span></a></li><li class="rmItem "><a href="1About.aspx?cat=directPersonal" class="rmLink menuItems"><span class="rmText">Personal Portfolios</span></a></li><li class="rmItem "><a href="1About.aspx?cat=directMulti" class="rmLink menuItems"><span class="rmText">Multi-Managed Funds</span></a></li><li class="rmItem "><a href="1About.aspx?cat=directOffshore" class="rmLink menuItems"><span class="rmText">Offshore Investments</span></a></li><li class="rmItem "><a href="1About.aspx?cat=directAlternative" class="rmLink menuItems"><span class="rmText">Alternative Investments</span></a></li><li class="rmItem "><a href="1AboutArt.aspx?art=1072714" class="rmLink menuItems"><span class="rmText">Cash Management Solutions</span></a></li><li class="rmItem "><a href="1About.aspx?cat=directCharitable" class="rmLink menuItems"><span class="rmText">Charitable Giving Service</span></a></li><li class="rmItem "><a href="1About.aspx?cat=directArt2010" class="rmLink menuItems"><span class="rmText">BJM Primary School Art Competition</span></a></li><li class="rmItem "><a href="1About.aspx?cat=directPress" class="rmLink menuItems"><span class="rmText">BJM in the Press</span></a></li><li class="rmItem "><a href="1About.aspx?cat=directNewsletters" class="rmLink menuItems"><span class="rmText">BJM Newsletters</span></a></li><li class="rmItem rmLast"><a href="1About.aspx?cat=directBlogs" class="rmLink menuItems"><span class="rmText">BJM Blogs</span></a></li>
            </ul>
        </div></li><li class="rmItem "><a href="#" class="rmLink rmRootLink"><img alt="" src="../images/button_blank_off.jpg" class="rmLeftImage" /><span class="rmText">Markets</span></a><div class="rmSlide">
            <ul class="rmVertical rmGroup rmLevel1">
                <li class="rmItem rmFirst"><a href="../menuMarkets/1SAOverview.aspx" class="rmLink menuItems"><span class="rmText">SA Overview</span></a></li><li class="rmItem "><a href="../menuMarkets/1MarketIndice.aspx" class="rmLink menuItems"><span class="rmText">Market Indices</span></a></li><li class="rmItem "><a href="../menuMarkets/1Constituent.aspx" class="rmLink menuItems"><span class="rmText">Sector Constituents</span></a></li><li class="rmItem "><a href="../menuMarkets/1MarketActive.aspx" class="rmLink menuItems"><span class="rmText">Most Actives</span></a></li><li class="rmItem "><a href="../menuMarkets/1MarketGL.aspx" class="rmLink menuItems"><span class="rmText">Gainers &amp; Losers</span></a></li><li class="rmItem "><a href="../menuMarkets/1ShareCommentary.aspx" class="rmLink menuItems"><span class="rmText">Share Commentary</span></a></li><li class="rmItem "><a href="../menuMarkets/1MarketWarrants.aspx" class="rmLink menuItems"><span class="rmText">Warrant Activity</span></a></li><li class="rmItem "><a href="../menuMarkets/1FixedInterest.aspx" class="rmLink menuItems"><span class="rmText">Fixed Interest</span></a></li><li class="rmItem "><a href="../menuMarkets/1Commodities.aspx" class="rmLink menuItems"><span class="rmText">Commodities</span></a></li><li class="rmItem "><a href="../menuMarkets/1Currency.aspx" class="rmLink menuItems"><span class="rmText">Currencies</span></a></li><li class="rmItem rmLast"><a href="../menuMarkets/1SASens.aspx" class="rmLink menuItems"><span class="rmText">SENS Releases</span></a></li>
            </ul>
        </div></li><li class="rmItem "><a href="#" class="rmLink rmRootLink"><img alt="" src="../images/button_blank_off.jpg" class="rmLeftImage" /><span class="rmText">Quotes and Research</span></a></li><li class="rmItem "><a href="#" class="rmLink rmRootLink"><img alt="" src="../images/button_blank_off.jpg" class="rmLeftImage" /><span class="rmText">Portfolios</span></a><div class="rmSlide">
            <ul class="rmVertical rmGroup rmLevel1">
                <li class="rmItem rmFirst"><a href="../menuPortfolio/1Portfolio.aspx" class="rmLink menuItems"><span class="rmText">Portfolio Manager</span></a></li><li class="rmItem rmLast"><a href="../menuPortfolio/1PortCreate.aspx" class="rmLink menuItems"><span class="rmText">Create / Modify WatchList</span></a></li>
            </ul>
        </div></li><li class="rmItem "><a href="#" class="rmLink rmRootLink"><img alt="" src="../images/button_blank_off.jpg" class="rmLeftImage" /><span class="rmText">Trading</span></a><div class="rmSlide">
            <ul class="rmVertical rmGroup rmLevel1">
                <li class="rmItem rmFirst"><a href="../menuTrading/1Trade.aspx" class="rmLink menuItems"><span class="rmText">Enter Equity Order</span></a></li><li class="rmItem "><a href="../menuTrading/1OpenOrders.aspx" class="rmLink menuItems"><span class="rmText">Open Orders</span></a></li><li class="rmItem "><a href="../menuTrading/1History.aspx" class="rmLink menuItems"><span class="rmText">Trading History</span></a></li><li class="rmItem "><a href="../menuTrading/1MultiManagerTransactionHistory.aspx" class="rmLink menuItems"><span class="rmText">My Transactions</span></a></li><li class="rmItem rmLast"><a href="../menuTrading/1MultiManagerFundHome.aspx" class="rmLink menuItems"><span class="rmText">BJM Multi Manager Funds</span></a></li>
            </ul>
        </div></li><li class="rmItem "><a href="#" class="rmLink rmRootLink"><img alt="" src="../images/button_blank_off.jpg" class="rmLeftImage" /><span class="rmText">Account Information</span></a><div class="rmSlide">
            <ul class="rmVertical rmGroup rmLevel1">
                <li class="rmItem rmFirst"><a href="../menuAccount/1Account.aspx" class="rmLink menuItems"><span class="rmText">Account Summary</span></a></li><li class="rmItem "><a href="../menuAccount/1AccountPerf.aspx" class="rmLink menuItems"><span class="rmText">Account Performance</span></a></li><li class="rmItem "><a href="../menuAccount/1AccountActivity.aspx" class="rmLink menuItems"><span class="rmText">Account Activity</span></a></li><li class="rmItem "><a href="../menuAccount/1OrderHistory.aspx" class="rmLink menuItems"><span class="rmText">Order History</span></a></li><li class="rmItem "><a href="../menuAccount/1Reports.aspx" class="rmLink menuItems"><span class="rmText">Reports</span></a></li><li class="rmItem "><a href="../menuAccount/1ReportsEBN.aspx" class="rmLink menuItems"><span class="rmText">Contract Notes</span></a></li><li class="rmItem "><a href="../menuAccount/1CashTransfer.aspx" class="rmLink menuItems"><span class="rmText">Cash Transfer</span></a></li><li class="rmItem "><a href="../menuAccount/1AlertView.aspx" class="rmLink menuItems"><span class="rmText">View Alerts</span></a></li><li class="rmItem "><a href="../menuAccount/1AlertCap.aspx" class="rmLink menuItems"><span class="rmText">Set Alerts</span></a></li><li class="rmItem "><a href="../menuAccount/1ViewFica.aspx" class="rmLink menuItems"><span class="rmText">FICA Compliance</span></a></li><li class="rmItem rmLast"><a href="../menuAccount/1ViewMandate.aspx" class="rmLink menuItems"><span class="rmText">Online Mandate</span></a></li>
            </ul>
        </div></li><li class="rmItem rmLast"><a href="#" class="rmLink rmRootLink"><img alt="" src="../images/button_blank_off.jpg" class="rmLeftImage" /><span class="rmText">Personal Details</span></a><div class="rmSlide">
            <ul class="rmVertical rmGroup rmLevel1">
                <li class="rmItem rmFirst"><a href="../menuPersonal/1Personal.aspx" class="rmLink menuItems"><span class="rmText">Personal Details</span></a></li><li class="rmItem "><a href="../menuPersonal/1ChangePwd.aspx" class="rmLink menuItems"><span class="rmText">Change Password</span></a></li><li class="rmItem "><a href="../menuPersonal/1ChangeUser.aspx" class="rmLink menuItems"><span class="rmText">Change Username</span></a></li><li class="rmItem "><a href="../menuPersonal/1AccServices.aspx" class="rmLink menuItems"><span class="rmText">Set Preferences</span></a></li><li class="rmItem rmLast"><a href="../menuPersonal/1AlertDelOpt.aspx" class="rmLink menuItems"><span class="rmText">Delivery Options</span></a></li>
            </ul>
        </div></li>
    </ul><input id="ctl00_RadMenu1_ClientState" name="ctl00_RadMenu1_ClientState" type="hidden" />
</div>
Kate
Telerik team
 answered on 21 Nov 2011
1 answer
219 views

 How can use Grid FilterExpression on DataTable.

Iana Tsolova
Telerik team
 answered on 21 Nov 2011
1 answer
104 views
Hi,

I am binding to a sql server data source and the recurrence pattern is stored there. Here is an example - 

DTSTART:20110101T000000Z  DTEND:20120630T000000Z  RRULE:FREQ=WEEKLY;UNTIL=20120630T000000Z;INTERVAL=1;BYDAY=TU  


In the screen shot, this appointment (titled Cardiology Grand Rounds 2011-2012) displays on Tuesday, and then continues onward, left-to-right. My expectation would be there would be one entry on every Tuesday, rather than what is shown in the screen shot. The same thing happens for all recurring appointments. What am I doing wrong? Thanks.

Plamen
Telerik team
 answered on 21 Nov 2011
3 answers
520 views
Im using AsynUpload to upload a file, and an asp button to submit the the process of the file.
<telerik:RadProgressManager runat="server" ID="RadProgressManager1" />
<telerik:RadAsyncUpload ID="rauFileUpload" runat="server" Width="95%"
                        OnClientValidationFailed="validationFailed" 
                        AllowedFileExtensions="xls" 
                        MaxFileSize="4000000">
</telerik:RadAsyncUpload>
<br />
<asp:button id="btnCharge" runat="server" OnClick="btnCharge_Click" /> 
<br />
<telerik:RadProgressArea runat="server" ID="RadProgressArea1" skin="Default" ProgressIndicators="TotalProgressBar, TotalProgressPercent">
</telerik:RadProgressArea>

The problem was when i double click on the button btnCharge i get the Exception
Server Error in '/EPR' Application.
--------------------------------------------------------------------------------
  
Could not find file 'C:\RPG\01-NET\EPR\EPR\EPR\App_Data\RadUploadTemp\nt2njtqp.xhy'. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
  
Exception Details: System.IO.FileNotFoundException: Could not find file 'C:\RPG\01-NET\EPR\EPR\EPR\App_Data\RadUploadTemp\nt2njtqp.xhy'.
  
Source Error: 
  
  
Line 70: 
Line 71:             string fileName = Path.GetTempFileName();
Line 72:             uf.SaveAs(fileName);
Line 73:             
Line 74:             //DataSet ds = HLPimportExcel.ImportExcel(fileName, Yes);
   
  
Source File: c:\RPG\01-NET\EPR\EPR\EPR\Pages\HES\ServicesMassiveCharge.aspx.cs    Line: 72 
  
Stack Trace: 
  
  
[FileNotFoundException: Could not find file 'C:\RPG\01-NET\EPR\EPR\EPR\App_Data\RadUploadTemp\nt2njtqp.xhy'.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +305
   System.IO.File.Move(String sourceFileName, String destFileName) +239
   Telerik.Web.UI.AsyncUploadedFile.SaveAs(String fileName, Boolean overwrite) +81
   Telerik.Web.UI.UploadedFile.SaveAs(String fileName) +38
   Pages_HES_ServicesMassiveCharge.btnCharge_Click(Object sender, EventArgs e) in c:\RPG\01-NET\EPR\EPR\EPR\Pages\HES\ServicesMassiveCharge.aspx.cs:72
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
  
   
  
  
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5420

I solve the problem with those double-click-on-buttons users with javasript, disabling the button and forcing a postback
        function enableLoadButton(button)
        {   
            button.disabled = true;
              
            __doPostBack("<%= btnCharge.UniqueID %>");
              
            return;
        }
  
<asp:button id="btnCharge" runat="server" OnClick="btnCharge_Click" OnClientClick="enableLoadButton(this)" />

Its solve the problem for some users, other still have the problem.
I try the different configurations of the time persistens of the files and nothing. In some point the uploaded file dissapear and i get the exception.
This occurs after the file was processed, when the response is created and i dont need to access to it anymore.

   Hope u can assist me, ask me if u need more info.
Peter Filipov
Telerik team
 answered on 21 Nov 2011
4 answers
152 views
Every now and then, if a user hits the PasteStript button to paste in to the editor, an alert window shows up saying "Please use Ctrl+V to Paste".

Why would this happen and, more importantly, how do I stop it?

FWIW, the alert looks a bit like a RadAlert except there is no chrome. It most assuredly isn't a standard javascript alert.

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 21 Nov 2011
2 answers
129 views
Hi
I'm working with IIS 7.5 and windows server 2008 x64 but i have a problem

Webpage error details

 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; .NET4.0E)

Timestamp: Fri, 18 Nov 2011 14:36:17 UTC

 

 

Message: Sys.WebForms.PageRequestManagerServerErrorException: Exception has been thrown by the target of an invocation.

Line: 6

Char: 84093

Code: 0

URI: http://localhost/SAA/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8f393b2b-3315-402f-b504-cd6d2db001f6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.2.915.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a8a3454ab-b0eb-4774-9c97-f1758de16536%3a16e4e7cd%3af7645509%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3a58366029%3ae4f8f289%3aed16cbdc

Ivan
Top achievements
Rank 1
 answered on 21 Nov 2011
1 answer
141 views
Hi, I am wondering if there is any way to trap the Recurrence checkbox checked event client side? It would be wonderful to be able to get the checkbox state client side to do some validation on other data on our form. Thanks.
Plamen
Telerik team
 answered on 21 Nov 2011
5 answers
196 views
I am trying to load fresh data after one full rotation of the rotator. After a full cycle completes I'd like to have an event fire to reload new data and there's no event so far as I can see to do this. The data consists of live scores for a sporting event and I'd like to use one full rotation as the trigger to refresh the data. I am using the Live XML example as my basis. Please advise on the best way to accomplish this as there's no event to signal that a rotation is complete. Clearly the rotator must know when a cycle is complete since it can wrap frames. Thank you.

Regards,
George 
Slav
Telerik team
 answered on 21 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?