Dropdown in templated column of ultrawebgrid does not function properly

Answered (Verified) This post has 1 verified answer | 3 Replies | 2 Followers Thread's RSS feed.

hardikpndy
Points 100
Replied On: Wed, Mar 21 2012 9:01 AM Reply

Hi,

I have a templated column. I am using a Dropdown as header template and based on the value of the dropdown user sets, I update sigle DB record. Header drop down has nothing to do with the contents of the cells of that column. Everything works fine when the page is loaded and dropdown functions as expected.

As soon as I click anywhere on the gid and then click on the drop down, it behaves in a weird fashion i.e. it expands and then collapses. If I double click on the drop down it works as expected.

 

I am not able to understand what happens when I click inside the grid so that my drop down only responds to double click and not single click.

 

Here is the code snippet: 

 

<igtbl:TemplatedColumn BaseColumnName="Assigned" Key="Assigned" AllowResize="Free"  AllowRowFiltering="False"

 

                                    AllowUpdate="Yes" Width="80px" Type="Custom" EditorControlID="assignTo" IsBound="false">

 

                                    <Header Caption="Assigned To" ClickAction="SortSingle">

 

                                        <RowLayoutColumnInfo OriginX="15" />

 

                                    </Header>

 

                                        <HeaderTemplate>Assigned To <select id="AssignToDefault" width="40px" runat="server" name="AssignToDefault"><option value="0">-Select-</option><option value="1">User</option><option value="2">API</option></select>

 

                               </HeaderTemplate>

 

                                    <Footer>

 

                                        <RowLayoutColumnInfo OriginX="15" />

 

                                    </Footer>

 

 

 

                             </igtbl:TemplatedColumn>

 

I am trying to solve the issue since long. Please help.

  • Post Points: 20

Verified Answer

Answered (Verified) Replied On: Fri, Mar 23 2012 10:52 AM Reply
Verified by hardikpndy

Hi hardiknpdy,

Thank you for posting in the community.

I tested your scenario and was able to replicate the behavior in IE8 but not in Firefox.I suggest that you try disabling the activation behavior of the grid to see if that makes a difference:


 UltraWebGrid1.DisplayLayout.ActivationObject.AllowActivation = false;

Alternatively you may want to consider using the WebCombo control in this scenario as it seems to be unaffected by the issue.

Please note that the UltraWebGrid control is now outdated and as of .NetAdvantage 2011 Volume 2 is no longer included in our product package. I would suggest that you consider switching to the WebDataGrid/WebHieararchicalDataGrid. More information regarding these controls is available at:

http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Web_WebDataGrid_WebDataGrid.html

Additional samples demonstrating the features of these grids can be found at:
http://samples.infragistics.com/aspnet/

Feel free to contact me if you have any questions.

Best Regards,

Petar Ivanov
Developer Support Engineer
Infragistics, Inc.


  • Post Points: 40

All Replies

Answered (Verified) Replied On: Fri, Mar 23 2012 10:52 AM Reply
Verified by hardikpndy

Hi hardiknpdy,

Thank you for posting in the community.

I tested your scenario and was able to replicate the behavior in IE8 but not in Firefox.I suggest that you try disabling the activation behavior of the grid to see if that makes a difference:


 UltraWebGrid1.DisplayLayout.ActivationObject.AllowActivation = false;

Alternatively you may want to consider using the WebCombo control in this scenario as it seems to be unaffected by the issue.

Please note that the UltraWebGrid control is now outdated and as of .NetAdvantage 2011 Volume 2 is no longer included in our product package. I would suggest that you consider switching to the WebDataGrid/WebHieararchicalDataGrid. More information regarding these controls is available at:

http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Web_WebDataGrid_WebDataGrid.html

Additional samples demonstrating the features of these grids can be found at:
http://samples.infragistics.com/aspnet/

Feel free to contact me if you have any questions.

Best Regards,

Petar Ivanov
Developer Support Engineer
Infragistics, Inc.


  • Post Points: 40
hardikpndy
Points 100
Replied On: Fri, Mar 23 2012 3:30 PM Reply

Thank you very much Petar for to the point answer and additional details.

Your answer for webgrid saved me tons of hours. WebCombo is on my list now.

  • Post Points: 20
Replied On: Mon, Mar 26 2012 2:37 AM Reply

Hi hardikpndy,

Thank you for your reply.

Please feel free to contact me if you have any further questions regarding this matter.

Best Regards,

Petar Ivanov
Developer Support Engineer
Infragistics, Inc.


  • Post Points: 5
Page 1 of 1 (4 items) | RSS