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

I am using telerik RadAjaxManager in my application and trying to build functionality as per demo i found below:

http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid

What i could see when first time i Open window from javascript after i close my window, my ajax server side event first get call and bind gird and then during databind radgrid_item created event get called, but immediately next time when i perform the same action to add 2nd record to my gird, after i close popup window, instead of calling server side ajax handler, it's calling radgrid_itemCreated first and then ajax handler. so throwing an exception while executing
editLink.Attributes["onclick"] = String.Format("return ShowEditPopUps('{0}','Speaker');", e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["SpeakerID"]); line of code

actually it should first call Ajax request server side event first and then RadGrid_ItemCreated.

any help would be appreciated.

below is my client side  java script code

function ShowProductPopUps(strPopup)
            {
                var strId = "";
                var height = 0;
                height = 150;
                                
                var strRet = ShowPopUp(strPopup, "CityEvent&id=" + strId , height, 600);
                
                 if ((strRet != undefined) && (strRet != ""))
                {
                   alert(strRet);
                   $find("<%=RAM.ClientID%>").ajaxRequest(strPopup + "-" + strRet );
                }
                
                return false;
            }

Rad Ajax Manager:
<telerik:RadAjaxManager ID="RAM" runat="server" OnAjaxRequest="RAM_AjaxRequest" >
         <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RAM">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="grdSpeaker"/>
                        <telerik:AjaxUpdatedControl ControlID="btnSpeaker"/>
                    </UpdatedControls>
                 </telerik:AjaxSetting>
                 <telerik:AjaxSetting AjaxControlID="grdSpeaker">
                        <UpdatedControls>
                            <telerik:AjaxUpdatedControl ControlID="grdSpeaker" />
                        </UpdatedControls>
                  </telerik:AjaxSetting>
                 
         </AjaxSettings>        
    </telerik:RadAjaxManager>

and my server side ajaxHandler and radgrid_itemcreated event handler

 protected void RAM_AjaxRequest(object sender, AjaxRequestEventArgs e)
        {
            //string abc = string.Empty;
            string gridType = e.Argument.Split('-')[0];
            switch (gridType)
            {
                case "Speaker":
                                 EVMSessionManager oSession = new EVMSessionManager();
                                 this.grdSpeaker.DataSource = oSession.SpeakerData;
                                 this.grdSpeaker.DataBind();
                                 break;
                case "SignOff":
                                 break;
            }
        }


RadGrid Item_Created event handler
protected void grdSpeaker_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                HyperLink editLink = (HyperLink)e.Item.FindControl("editLink");
                editLink.Attributes["href"] = "#";
                editLink.Attributes["onclick"] = String.Format("return ShowEditPopUps('{0}','Speaker');", e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex]["SpeakerID"]);
            }
        }

Tsvetoslav
Telerik team
 answered on 02 Aug 2010
1 answer
119 views

Hi, from Bogota, Colombia.

I am testing Telerik ASP.NET AJAX controls Version 2009.3.1103. I use RadGrid and I activate filters using a check box control.

The filter doesn't work fine if expression which filters a column has spaces; if such string is an only word, it works fine.

The column that I want to filter has a GridTemplateColumn template, which has 2 templates inside: An ItemTemplate and an EditItemTemplate. Is that related with this issue?

How can I solve it?

Thaks in advance for your answer.

Best Regards,



CARLOS ALBERTO CASTILLO
Bogota, Colombia.

Pavlina
Telerik team
 answered on 02 Aug 2010
6 answers
100 views
If I'm editing a skin for Grid and have something other than "Grid Wrapper" selected when I hit <CR> I am taken to edit the skin for the Grid's Edit Form. How do I get back?

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 02 Aug 2010
4 answers
115 views
Hi,
I need to identify the date that the user clicked on, in a calendar.
(In addition, I would like to allow him/her to click only selected dates)

The best for me, is to do it on a calendar with: 

PresentationType

 

="Preview"

 

 

 

but this doesn't raise any event, as far as I know.

So, if I work with presentationType = "Interactive", I know how to find a new selected date, but I don't know how to identify the date if the user click on a date that was already selected and now it was thrown out of the SelectedDates collection.
(I have about 100 selected dates - so looping on the list to find the missing one, on every click - is too much)

Another option might be using a DatePicker, but then I don't know how to select or change the appearance of dates in the popup calendar so they look selected.

Any Idea?
Niv.



     

Maria Ilieva
Telerik team
 answered on 02 Aug 2010
2 answers
140 views
Hi

I am using a RadGrid with a detail table. I need to be able to access the count of the items in the detail table.
RadGridID.MasterTableView.DetailTables(0).Items.Count always returns zero. Is there a way to get the count of the records in the detail table?

Thanks for any help.
MFitzpatrick
Top achievements
Rank 1
 answered on 02 Aug 2010
4 answers
125 views

Hi.

I'm found issue(?) in RadGrid's behavior. When i'm using RadGrid with:

a) AJAX (manager or proxy)

b) Validation (e.g. RequiredFieldValidator, CustomValidator)

c) GridHTMLEditorColumn

on data-modifcation content of GridHTMLEditor extracts as null, even me typed words to it. Error not happens, if RadGrid works without AJAX, but i need ajaxified grid. How I may fix this issue? Thanks.

Maria Ilieva
Telerik team
 answered on 02 Aug 2010
1 answer
114 views
How do handle an error when using the example of related combos at this link http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/multiplecomboboxes/defaultcs.aspx

I can not just show a javascript error. I need to parse it first and then complete some action.
I do not see an AfterClientCallBackError hander for the combox.
Simon
Telerik team
 answered on 02 Aug 2010
1 answer
103 views
I had a user send me a screenshot today of a behavior i have not seen before with a RadMenu.  Dozens of people use this tool every day and he is the first to report this issue:

Several items within a radmenu are not appearing with any text.  These menu items continue to function properly and will link to wherever they are supposed to go, but the text seems to be invisible on this user's screen.  It doesn't happen every time, either.  User reports appx 50% occurence rate.

User's setup:
IE Version 7.0.6.002.18005
Windows 6.0 Build 6002: Service Pack 2

Most of the other users of this tool also have the same setup.  What can i tell this guy?

Screenshot attached (i painted over the items that still appear in the menu for proprietary reasons.  The rest of the menu appears with the invisble text)

Kamen Bundev
Telerik team
 answered on 02 Aug 2010
1 answer
390 views
We are making an application with ASP.NET Ajax which include several RadGrid.
We  want to put the height of the grid permanently regardless of the number of rows you have.
That is, if the grid has 9 rows and occupies the entire height of the page then we occupied the entire page. If the number of lines spanning the entire height of the screen, then pages the grid, but the whole page is always occupied by the grid.

Is ther eany way to put this behaviour with the RadGrid??
Veli
Telerik team
 answered on 02 Aug 2010
1 answer
93 views

I've been trying to solve a problem. I have a rather slow loading set of nested datarepeaters that take a couple minutes to fully render.

First I tried a simple updatepanel with a cancel button in an updateprogress that performed an abortPostBack. It would hide the updatepanel but wait until the datarepeater was done before you could do anything on the page.

We have the Telerik AJAX controls so, hoping they're more advanced, I've now wrapped it up in a RadAjaxPanel. This seems to have the same issue. I've even tried firing an ajaxManager.ajaxRequest back to the server and setting a bool to try and abort the databinding, but that event isn't caught by the server until the databinding completes.

Any ideas on how to get a responsive cancel to a large set of nested datarepeaters?

Maria Ilieva
Telerik team
 answered on 02 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?