Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a big problem.

Before adding ASPxUploadControl the FocusedRowChanged was working.

If you remove the ASPxUploadControl the code working but when you just add the ASPxUploadControl my code doesn't work any solution ?

Why when i select any row my code run just one time only ??????????

C#
<script type="text/javascript">
        function OnGridFocusedRowChanged() {
            grid.GetRowValues(grid.GetFocusedRowIndex(), 'ActivityID;ActivityImage', ProcessRowValues);
        }
        function ProcessRowValues(values) {
            alert(values[0]);
        }
</script>

<dx:ASPxGridView ID="grid"  runat="server" ClientInstanceName="grid">
            <ClientSideEvents FocusedRowChanged="function(s, e) { OnGridFocusedRowChanged(); }" />
</dx:ASPxGridView>
<dx:ASPxUploadControl ID="ASPxUploadControl1"  runat="server">
</dx:ASPxUploadControl>


aspx.cs
C#
protected void Page_Load(object sender, EventArgs e)
    {
        grid.KeyFieldName = "ActivityID";
        grid.KeyboardSupport = true;
        grid.DataSource = GetData.GetActivity();
        grid.DataBind();
    }
Posted

1 solution

I just think, posting such issues about a 3rd party control at DevExpress Forum would be more useful.
Here:DevExpress Forum[^]

Try looking here: DevExpress ASPxGridView forum[^]
Posting here is fine but it might be already discussed there!

I had found that specific questions related to 3rd party is answered more quickly and accurately at respective forums
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900