在Gridview中编辑单个单元格时带控件的float弹出窗口. [英] float popup with controls on edit individual cell in Gridview .

查看:75
本文介绍了在Gridview中编辑单个单元格时带控件的float弹出窗口.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我浏览了CodeProject上发布的gridview中的Edit单个单元格.但是,我想实现以下功能.

我试图在每个单元格中都有文本框的每个单元格的编辑中从GridView弹出div样式窗口.

当用户单击任何单元格的文本框时,弹出窗口将包含2个文本框和2个按钮.

一个文本框将从复制的文本框中复制值,其他文本框用于注释.这2个按钮将是更新&取消.

用户将在文本框和注释中编辑值,并将更新或取消更改.弹出窗口应显示在单元格本身附近或上方.当用户获取任何单元格的弹出窗口时,应禁用其他单元格的编辑事件.

任何建议或代码将不胜感激.但是,我们的客户不想使用ajax工具包(modalpopup扩展程序)在gridview中实现此功能.

提前非常感谢您

I went through the Edit individual cell in gridview posted on CodeProject. However, I want to achieve functionality as below.

I am attempting to popup a div style window from a GridView on edit of each individual cell having textbox in every cell.

When a user click on textbox of any cell, a popup will contain 2 textboxes and 2 buttons.

The one textbox will copy the value from edited textbox and other textbox will be for comments. The 2 buttons will be Update & Cancel.

The user will edit the values in textbox and comments and will update or cancel the changes. The popup should appear near or on the cell itself. When user gets popup for any cell, the edit event of other cells should be disabled.

Any suggestions or code will be appreciated. However, our client does not want to use ajax toolkit(modalpopup extendar) to achieve this functionality in gridview.

Thank you very much in advance

推荐答案

也许您应该在这里使用javascript.
将div放置在所需的控件上.根据需要放置并设置其可见性=隐藏.位置=绝对
然后文本框的onfocus调用javascript函数来设置要显示的div的可见性= visible.就文本框的值而言,您可以将参数发送给javascript函数.并在弹出div上设置文本框的值.

希望对您有帮助
问候
Ahsan Sarfraz



如果信息有用,别忘了标记为已回答.谢谢
may b you should use javascript here.
make a div place the required controls on it.position it as desired and set its visibility = hidden.and position= absolute
then onfocus of the textbox call the javascript function to set the visibility= visible of the div to be shown. as far as the value of the textbox is concerned you can send argument to the javascript function.and set the value of the textbox on popup div.

hope it will help
regards
Ahsan Sarfraz



Dont forget to mark answered if the info was useful.thanks


这篇关于在Gridview中编辑单个单元格时带控件的float弹出窗口.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆