ASP.net fast code search
Only asp.net code search
Newbie:Showing a GridView cell's content using AJAX AnimationExtender
nmishra

Hi,

 Is it possible to show a GridView cell's content using AnimationExtender control in AJAX control toolkit ?

Thanks in advance

 

 

 

grouping grid
wilsonnet

 I have used http://demos.telerik.com/aspnet-ajax/grid/examples/groupby/outlookstyle/defaultcs.aspx except that I didnt use Ajax on that..
On my grid I have GridButtonColumn , is there a way to have one button for each group instead of all it shows on each row or actually even better if I can put that button to right on the top of the group?

urlscan kills my Ajax
SLowery

I have an asp.net application that uses the latest Ajax toolkit. All was working well until urlscan was added to IIS on the server. When that is turned on, ALL the AJAX functionality is lost. The IT fellow in charge of the server asked what Verbs AJAX uses so he can allow it.

I don't have a clue. Can anybody point me to some documentatin on how to get AJAX calls accepted by urlscan?
Re: ASP.NET MVC with JQuery and calling long running webservices
Nick Riggs

I ran into a very similar issue a while back and ended up writing a jQuery plugin to simplify polling. I wrote a blog post with the plugin code here:

http://nickriggs.com/index.php/posts/simple-ajax-polling-plugin-for-jquery/

Hope it helps you.

AJAX Install hangs on Server 2008
curtisdehaven

Hi All...

We're having a problem installing AJAX 1.0 on a Server 2008 SP2 machine.  Early on in the install the installer apparently hangs while displaying a small dialog saying...

Please wait while installer finishes determining your disk space requirements.

It hangs forever...  If we cancel out of it, the whole install aborts.

Any thoughts?

Many thanks - Curt.





Re: Page Source is not updated after Ajax Postback
dpant

[quote user="Yousef_Jadallah"]Yes there is some behavior we can't do anything with it, Also ajax breaks one of the fundamental rules of the World Wide Web is , Like clicking back and Bookmarking page created by ajax . after the page load try to make some changes on the page by ajax , then try to click back!!![/quote] 

 

true, one of the notorious ajax side effects. What can we, plain developers, do but decide wisely and rigorously when to use ajax in our projects. Smile

Re: Master page control update from content page button_click
Yousef_Jadallah

In ASP.NET AJAX you can't access Control outside this UpdatePanel and not in other UpdatePanel, so you have to put the TextArea inside UpdatePanel.

if UpdateMode set Conditional for the second UpdatePanel you have to write this code to refresh the date 

SecondUpdatePanle.Update();

Re: ASP.NET MVC with JQuery and calling long running webservices
Simon79

How about using this to request the data for each field:


http://api.jquery.com/jQuery.ajax/


It runs asynchronously so you can fire them all off at once, or a number in batches, then handle responses in "parrallel" through callbacks.  It also returns an XMLHttpRequest which you can keep a reference to and fi the user navigates away from the page call .abort()  to cancel all requests.

Re: Returing an object from an AJAX call.........
mdgardipee11

This particular application utilizes no post backs whatsoever, so that approach is not applicable. That's why the option with ALAXPro works so well for us. THe application will make a request to load something, and when done, the AJAX method returns a custom object. The user can then further operate on that "record" by updating various aspects of it which include manual editting, searching via AJAX methods, etc etc. Then, when the user is completely done modifying (or entering a new one) the data is updated, again via an AJAX method where a custom object is populated on the client and then sent via AJAX. This entire process involves no postbacks - and it is this functionality we are looking to replicate.

 

Thanks,

Mike

HoverMenuExtender on GridviewRow
MShanahan

I'm trying to use a hover menu extender inside of a gridview row.  I followed a couple examples I found online, and there seems to be an issue when it comes to setting the TargetControlId for the row in the code behind.  When I click on 'Click Me' or either of the image buttons, the hovermenuextender goes away, and the Rowcommand event does not fire.  When I click 'Click Me' again, the RowCommand event is fired. Here's the code, has anyone else run into this or have a solution? Thanks!

 

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                grdTest.DataSource = GetItems();
                grdTest.DataBind();
            }
        }

        protected void grdTest_RowDataBound(object sender, GridViewRowEventArgs e)
        {
            if (e.Row.RowType == DataControlRowType.DataRow)
            {
                AjaxControlToolkit.HoverMenuExtender ajxHover = e.Row.FindControl("ajxHover") as AjaxControlToolkit.HoverMenuExtender;
                ajxHover.TargetControlID = e.Row.ID = e.Row.RowIndex.ToString();
            }
        }

        protected void grdTest_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            Response.Write(e.CommandName);
        }

        List<TestItems> GetItems()
        {
            List<TestItems> items = new List<TestItems>();
            items.Add(new TestItems("Rob"));
            items.Add(new TestItems("Scott"));
            items.Add(new TestItems("Albert"));

            return items;
        }
        class TestItems
        {
            public TestItems(string pName)
            {
                Name = pName;
            }

            public string Name { get; set; }
        }


 

        <asp:GridView AutoGenerateColumns="false" OnRowDataBound="grdTest_RowDataBound" OnRowCommand="grdTest_RowCommand" ID="grdTest" runat="server">
            <Columns>
                <asp:BoundField DataField="Name" HeaderText="Name" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:LinkButton ID="lnkClickMe" runat="server" Text="Click Me" CommandName="ClickMeClicked" />
                        <AJAX:HoverMenuExtender ID="ajxHover" runat="server" PopupControlID="pnlPopup" TargetControlID="pnlPopup" PopupPosition="Right" />
                        <asp:Panel Style="display:none;" ID="pnlPopup" runat="server">
                            <asp:ImageButton ID="imgEdit" CommandName="Editing" runat="server" CausesValidation="false" ImageUrl="~/Images/edit.gif" />
                            <asp:ImageButton ID="imgDelete" CommandName="Deleting" runat="server" ImageUrl="~/Images/delete.gif" CausesValidation="false" />
                        </asp:Panel>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>