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

I'm using Visifire Silverlight Charts on a page and a RadGrid to show Information. For all Information for a customer I use a modal RadWindow, this works fine. But I always see the Silverlight Chart in the Modal Dialog. So it's not really modal. Is there any chance to get the Silverlight greyed out as the other controls?

Kind Regards Jens
Georgi Tunev
Telerik team
 answered on 16 Jun 2009
3 answers
116 views
Hi,

I have a grid with databound columns, these columns are readonly.  I then add a Button column, upon clicking the button, I want one of the data bound columns' value to update.  I am guessing I could more easily implement this by having a Select button and doing it that way but for other reasons, the button cannot select the row.  I am using this code in the ItemCreated event handler

        if (e.Item is GridDataItem) 
        { 
            GridDataItem item = (GridDataItem)e.Item; 
            Button btnProcess = (Button)item["btnProcess"].Controls[0]; 
 
            if (btnProcess != null) 
                btnProcess.Click +=new EventHandler(btnProcess_Click); 
        } 

The event is fired and handled, but in the button click handler, how do I get the row details for the specific row for which the button was clicked?  Ie, if I've got 12 rows, and the button was clicked in row 4, how do I know it was the 4th row as it will not be selected?

Thanks,
Paul
Top achievements
Rank 1
 answered on 16 Jun 2009
1 answer
134 views
I have a page that dynamically loads one of three web user controls based UI actions.  For one of the user controls, some actions are performed within the code of the parent page.  This is accomplished by declaring a public event in the user control and subscribing to it in the main page.  When the user clicks on specific parts of the user control, the public event is raised, the parent page catches the raised event and performs some actions, including the updating of some control values on the main page.  However, the updates are not refreshed to the UI?  How, from within the code on main page, can the main page ajax controls be forced to update?  If a button is created on the main page with the click event executing the same code, all works as expected.  But, if the code executed in response to the user control event calls the click method of the button, the related parent page controls are not updated.
Iana Tsolova
Telerik team
 answered on 16 Jun 2009
0 answers
103 views
Hi,
 i am working on  2009 Q1 Version of radcontrols  for RadComboBox Tree i have given autopostback as true  but after postback itis not  firing onResponedEnd Event in firefox version 3.0.3, itis working fine in IE7.
Swapnil
Top achievements
Rank 1
 asked on 16 Jun 2009
2 answers
111 views

During our work, we faced some strange problem that occured when having to use a RangeValidator within an Ajaxified Panel.

The scenario is as following

In the next example, All i was trying to do is to modify the MaximumValue property of the RangeValidator based on a values extracted from a TextBox. This means that the MaximumValue is a variant.

The ASPX Code is as following:

<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <div> 
        <rad:RadScriptManager ID = "scr" runat = "server" /> 
        <asp:Panel ID = "pnl" runat = "server" > 
        <asp:TextBox ID = "txt1" runat = "server" AutoPostBack = "true" OnTextChanged = "txt1_TextChanged"/>  
        <asp:TextBox ID = "txt2" runat = "server" /> 
        <asp:RequiredFieldValidator ID = "rf" runat = "server" ControlToValidate = "txt2" ValidationGroup = "a" /> 
        <asp:RangeValidator ID = "rv" runat = "server" Text = "*"  ErrorMessage = "Abbas" ForeColor = "Red"   ControlToValidate = "txt2" ValidationGroup = "a" Type= "Integer" MinimumValue = "0" MaximumValue  = "10" /> 
        <br /> 
        <asp:Button ID = "btn" runat = "server" ValidationGroup = "a" OnClick = "btn_Click" Text=  "Press Me" CausesValidation = "true"/>  
        <asp:ValidationSummary ID = "sum" runat = "server" ValidationGroup = "a" ShowSummary = "true" DisplayMode = "BulletList" ShowMessageBox = "true" /> 
        </asp:Panel> 
        <rad:RadAjaxManager ID = "rad" runat = "server" > 
            <AjaxSettings> 
                <rad:AjaxSetting AjaxControlID = "pnl">  
                     <UpdatedControls> 
                        <rad:AjaxUpdatedControl ControlID = "pnl" /> 
                     </UpdatedControls> 
                </rad:AjaxSetting> 
            </AjaxSettings> 
        </rad:RadAjaxManager> 
          
          
    </div> 
    </form> 
</body> 
</html> 
 

 

 

 

The Code Behind is as Following

using System;  
using System.Collections.Generic;  
using System.Web;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
 
namespace WebApplication1  
{  
    public partial class _Default : System.Web.UI.Page  
    {  
        protected void Page_Load(object sender, EventArgs e)  
        {  
 
        }  
 
        protected void txt1_TextChanged(object sender, EventArgs e)  
        {  
            int x = 0;  
            int.TryParse(txt1.Text, out x);  
            rv.MaximumValue = x.ToString ();  
            rad.Alert ("Maximum Value Set");  
        }  
 
        protected void btn_Click(object sender, EventArgs e)  
        {   
            rad.Alert ("Button Post Back");  
        }  
    }  
}  
 


You will notice that the RangeValidator by default has the MaximumValue "10", Lets take the following Scenario :-

  1. Open the Page in your IE
  2. Type in a value of 200 in the First Text Box
  3. You will get an Alert that the 200 has been set as the MaximumValue from the TextChanged Event of the TextBox
  4. Now try to put 220 in the Second TextBox , then click the Press Me button.
  5. Well, You will notice that the Validation Summary Displayed that the Value is out of range.
  6. Now it should be obvious that trying enter a value that is below the 200 would be IN the range.
  7. Now Put 180, 160, 100, Try all the values and click the Press Me button, you will always get the Validation as active!.
  8. Finally Try to put 9 (Which is actually below the MaximumValue that was hardcoded declaratevely in the ASPX) and press the Press Me button. !! Wow the Page will post back finally and you will get the Alert from the Button "Button Post Back"

Now after some investigation, there is some problem with this validator, At first i thought it was a problem with all the Expando Attributues in the Valiadators, But it turned out to be this RangeValidator that has this specific problem.

Kindly inform us what should we do ?

Iana Tsolova
Telerik team
 answered on 16 Jun 2009
1 answer
54 views
Hi

My requirement is something like this, I have to show 3 comments (or you can say headers) in one dropdown. I dont want user to select these headers. I am not able sure Telerik has such feature or not but would like to know if there is any way I could achieve this.

Dropdown look like this...

-----Master Options----
Master 1
Master 2
Master 3
----Child Options-----
Child 1
child 2
child 3
----Grand Child Options 2----
Grand Child 1
Grand Child 2

I dont want to allow user to select all 3 headings.

Please kindly guide me on this.

Thanks and Regards,
Pradip Rajput
Veselin Vasilev
Telerik team
 answered on 16 Jun 2009
4 answers
153 views
Hi

I am trying to access image buttons within my Hierarchical Grid. Although i dont seem to be able to get hold of anything in order to access them. I am trying to do this within the DetailTableDataBind event.

 

protected void RadGrid1_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)

 

{

 

GridDataItem parentItem = (GridDataItem)e.DetailTableView.ParentItem;

 

 

 

 

 

string CID = parentItem.GetDataKeyValue("TblAVCID").ToString();

 

 

var avService = new AVService();

 

 

    
using
(TList<AV> avList = avService.GetByIntVisitCategory(Int32.Parse(CID.ToString())))

 

    {

        e.DetailTableView.DataSource = avList;

    }

((

ImageButton)parentItem["colDelete"].FindControl("imgDelete")).ImageUrl = txtImageDir + "16/data.gif";

 


 


I try binding to the imagebutton but this just errors out.

Any Help would be greatly appreciated.

Thanks

 

Andrew
Top achievements
Rank 1
 answered on 16 Jun 2009
1 answer
113 views
Hello Folks,

I'm currently using a "shopping cart" type application we use to make purchases in-house via bank card and contract. The users pick from a parts-list that is populated via client-side loading with a webservice, so there isnt much speed hitch there.

I Store a List<SomeSimpleCustomClassWithBasicProperties> in the session variable to keep the user's "cart" during any Ajax operations.

Any partial postback takes a ~1-1.5 second lag total round trip for the post, waiting, and then re-render. This is OK for adding parts to the list as it doesn't really interfere with how the user is using the application.

For the "cart"-side of the application page, users can pick different manufacturers/vendors to order from, and also change quantity and ordering within the "cart" (this looks and works alot like the netflix my queue page for an example)

My problem is that when the user is quickly entering a set of quantities, the delays while the partial postback is happening can be prohibitive.

I'm searching for a way to keep the "cart" between actions but without having to rely on direct server re-renders. I don't mind if this takes extensive javascript to work. I've been using jquery where possible so if any solutions can be done with that, I'm definately interested.

Basically, is there a way I can update the "cart" on the client side while simultaniously passing a message back to the server to update the session variable, without having to wait for a partial postback?

Alternatively, can I only manipulate it on the client, and then "submit" the contents (via JSON data or some other way) when the user does a postback/ajax request?

Basically the user manipulates the grid untill he clicks "save", "print" , "submit" or similar actions, at which I need to pass the data back to the server and perform validation. I'm currently setting up visual studio and etc at home and will try and post a sample of essentially what I am doing.

But, I guess Im trying to manipulate and edit a grid that was curretnly bound to a List<> in my session, and I want to do all that client-side without partial postbacks.

I'm finishing a huge project that otherwise works great (with telerik) at a reasonable sized organization and this is really the one part that seems that it could use a bit of improvement.


Bruno
Top achievements
Rank 2
 answered on 16 Jun 2009
1 answer
123 views
Hi All,

I have a RadEditor from the new 2009 Q1 release and i have dumped it on a page with a script manager and it forces the Page_Load to be called twice. 

However i have just noticed that this happens inthe Chrome Browser.

Anyone have an idea how to prevent this?

Cheers.




Rumen
Telerik team
 answered on 16 Jun 2009
1 answer
124 views
Sometimes when we collapse a group it adds text to the left side of the grid several rows above where we collapses.
It seems to happen on both IE6 and IE7. Do you know what would be causing this?
Here are a couple of screenshots:
Sebastian
Telerik team
 answered on 16 Jun 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?