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

In Psuedo code this what I'm trying to achieve:

User comes to page with their Customer profile
if user clicks "Address Information"
   populate pnlContent with Addresses_usercontrol - dynamic buttons are created in this user control
end if
If user clicks "Change this address" - dynamic button with AddressID
  clear pnlContent()
  populate pnlContent with EditAddress_usercontrol
end if




First off, on my main page I have a RadSplitter with two panes

 <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="100%" Width="100%"> 
     <telerik:RadPane ID="LeftPane" runat="server" Width="180px" Height="100%"> 
         <asp:Panel runat="server" ID="PnlButtons"> 
             <asp:Button runat="server" ID="CusInfo" Text="Customer Information" /> 
             <br /> 
             <asp:Button runat="server" ID="CusCC" Text="Credit Card Information" /> 
             <br /> 
             <asp:Button runat="server" ID="CusAddr" Text="Address Information" /> 
             <br /> 
             <asp:Button runat="server" ID="CusContact" Text="Contact Information" /> 
             <br /> 
             <asp:Button runat="server" ID="CusContPrefs" Text="Contact Preferences" /> 
             <br /> 
             <asp:Button runat="server" ID="CusDemo" Text="Demographic Information" /> 
             <br /> 
             <asp:Button runat="server" ID="CusOrders" Text="Order History" /> 
             <br /> 
         </asp:Panel> 
     </telerik:RadPane> 
     <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="None" /> 
     <telerik:RadPane ID="MiddlePane" runat="server" Scrolling="None" Width="400px" Height="100%"> 
        <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Width="400px" LoadingPanelID="LoadingPanel1"> 
            <asp:Panel ID="pnlContent" runat="server"> 
            </asp:Panel> 
        </telerik:RadAjaxPanel> 
     </telerik:RadPane> 
</telerik:RadSplitter>  

I am using the buttons in the pnlButtons to populate a userControl in the pnlContent. This all works fine. However, when a userControl is loaded into pnlContent there are dynamic buttons that are created with addeventhandlers (VB) .  Essentially these buttons will clear the userControl in pnlContent and populate with another userControl.

Dim newbtn As New Button() 
newbtn.Text = "Add New!" 
newbtn.ID = "btn" 
 
AddHandler newbtn.Click, AddressOf DynamicClick 

Since I have dynamic buttons being created their click events are not being fired, I figure because postback has already happened. How can i persist the click event for these dynamic buttons in VB?
Tsvetie
Telerik team
 answered on 19 Jan 2010
1 answer
153 views
Hi All,

I would like to turn off the selected border completely on the RadTreeView. In other words, whenever I go to the page with the treeview and select a node a dotted border shows up around the whole treeview. I do not want this behavior, which I would imagine should be the default behavior but I would be happy with a simple solution to turn this off.

I'm sure this should be a fairly simple thing to do but I have searched and can't find the answer. I have tried different CSS styles to no avail. I am not doing anything out of the ordinary so everything is pretty much a drop of the RadTreeView on a page. I'm using the WebBlue theme if that makes a difference. Also, I'm using the ASPNET AJAX Q1 2009 controls.

Thanks In Advance,
Dan
Yana
Telerik team
 answered on 19 Jan 2010
1 answer
76 views
there are many many of things that can be included as the sky is the limit

but acc. to me below are 2 things which should be done for betterment of new version

1) paypal payment option /paypal cart etc.
2) seperate dll for every control

below is the reasons

nowadays every one is expecting the developers to implement payment system for their website and if developers find telerik an easy option for implementing payment option via paypal then this could surely effect sales of the control in a positive manner i.e increase of sales

and for seperate dll reason is that all wont require all controls to be included for example i am developing a site in which i just only require menu, combobox and editor so rest of all are just aquiring server space with out any requirement but instead if there is seperate dll for every control then on need to include only those dll in bin folder which are used by his website

thakns..
Sebastian
Telerik team
 answered on 19 Jan 2010
2 answers
305 views
I have set the OnClientFocus event of the combobox. When you click on the combobox or tab to it, the function gets called correctly.

If I call combobox.focus() from the server side, or if I get a reference to the Input Dom element client side and focus it, the OnClientFocus function is not fired.

To clarify, when I say client side, I mean when I add the client functions call to the AjaxManager's ResponseScript Collection. When I do this, $find('comboxClientID') returns null. I have tried adding the response script on PageLoad and PreRender.

Here is an example. In the code below, pressing the "Test" button on the page focuses the combobox correctly and the onclientfocus method gets called. If either of the server side methods are called, it does not work. I need to find a solution that will work when initiated on page load or prerender.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title></title> 
</head> 
<body> 
  <form id="form1" runat="server"> 
        <asp:scriptmanager id="scriptmanager1" runat="server" /> 
        <telerik:radscriptblock id="radscriptblock1" runat="server"> 
            <script type="text/javascript"> 
 
                function rcb1_ClientFocus(sender, args) { 
                    alert('testing'); 
                } 
 
                function focusComboBox() { 
                    var rcb = $find('rcb1'); 
                    rcb.get_inputDomElement().focus(); 
                } 
             
            </script> 
        </telerik:radscriptblock> 
        <telerik:radcombobox id="rcb1" runat="server" onclientfocus="rcb1_ClientFocus" /> 
        <p><input type="button" value="Test" onclick="focusComboBox();" /></p> 
        <telerik:radajaxmanager id="ram1" runat="server"></telerik:radajaxmanager> 
  </form> 
</body> 
</html> 

using System; 
using System.Collections.Generic; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using Telerik.Web.UI; 
 
public partial class Test : System.Web.UI.Page { 
 
  protected void Page_Load(object sender, EventArgs e) { 
        if (!IsPostBack) { 
            //scriptmanager1.SetFocus(rcb1.ClientID + "_Input"); 
            //RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("focusComboBox();"); 
        } 
  } 
 
    protected void Page_Prerender(object sender, EventArgs e) { 
        if (!IsPostBack) { 
            //scriptmanager1.SetFocus(rcb1.ClientID + "_Input"); 
            //RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("focusComboBox();"); 
        } 
    } 
 
} 

Kalina
Telerik team
 answered on 19 Jan 2010
4 answers
130 views
hi

Could some one tell me how to block the filtering of special charetors ina grid

In my application, the grid has a filter colomn when i type special charectore in the filter and select "Equal to" i am geting the following error.
Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Requested value '[]:"' was not found.

could you tell me how to handle this
Sharon
Top achievements
Rank 2
 answered on 19 Jan 2010
3 answers
133 views
Hi all,

I have a RadListBox in my aspx page, and it has many items (more than 50). So I set the Height property of the RadListBox for not breaking the page design (I set it to 150px). And the scroll bar appears. An item which will not be seen if the user doesn't scroll the scroll bar of the RadListBox to the bottom is set as checked (for example, the 48th item is selected). If now I click a button to make the page postback. The selected item will then be set unchecked, which is not what I expected. But if I set the 3rd item as checked (This item will be shown even if the user doesn't scroll the scroll bar), the item checked before is still be checked after postback, and this is correct.
If I scroll to the bottom and manually check the 48th item, the 48th item will still be checked after postback, and this is also correct.
Is this a bug of the RadListBox? Or am I missing something?

Thanks in advance.
Genady Sergeev
Telerik team
 answered on 19 Jan 2010
1 answer
211 views
Hello,

I have a radgrid that has all of its columns as GridBoundColumns except for one.  The column that is not a GridBoundColumn is a column that i am attempting to setup as a GridTemplateColumn.  This column will contain a ASP label and will display the text version of a numeric value (such as if the value is 73, it will display "Hello World" in the grid).  I am getting the value from a column that is in the same table that all of the other GridBoundColumns look to.

The issue that I am having is, how to setup this column so that I can run a filter on it.

Thanks!
Tsvetoslav
Telerik team
 answered on 19 Jan 2010
1 answer
109 views
Hi,

Please see attachment.

The tallest bars with the figure label 1000 is displayed in the bar, how can I make it to show on Top of the bar (consistent with the rest).

I know this is caused by the max Y-axis value.  I would like to achieve it by not setting Y-axis autoscale = false, minvalue = xxx, maxvalue = yyy and step = xxx. 

Please advise.

Regards,
Matt

Giuseppe
Telerik team
 answered on 19 Jan 2010
4 answers
423 views
Hi,

I have a big problem, I'm not be able to make that the radgrid on first load dysplays the last page.

How to I can do this?

Thanks
New
Top achievements
Rank 1
 answered on 19 Jan 2010
2 answers
79 views
Hello,

Please have a look the attached file, 

The collapse icon is not showed on title bar and it's not working in IE7.

It's fine in firefox and chrome.

Pero
Telerik team
 answered on 19 Jan 2010
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?