ASPxGridview 编辑表单查找控件
我试图在点击编辑表单上的提交按钮(自定义)之前在编辑表单中查找一个控件,但是它不会返回在备忘录中输入的任何值,即使我已经输入了一些值。看来是要重置了它不绑定任何东西。
代码:
Dim Memo As ASPxMemo = CType(ASPxGridView_BranchQueue.FindEditFormTemplateControl("ASPxMemo_ResubmissionRationale"), ASPxMemo)
MsgBox(Memo.Text.ToString())
I'm trying to Find a control in my edit form just before I hit the submit button on it(custom), however it isnt returning any value entered in the memo, even though I have inputted some value. It seems like its resetting. Its not binding to anything.
Code:
Dim Memo As ASPxMemo = CType(ASPxGridView_BranchQueue.FindEditFormTemplateControl("ASPxMemo_ResubmissionRationale"), ASPxMemo)
MsgBox(Memo.Text.ToString())
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 AspxGridView 中 HTMLEDitor 的 Devexpress 示例,但它是相同的。
http://www.devexpress.com/Support/Center/ CodeCentral/ViewExample.aspx?exampleId=E296
您在 aspx 文件中的何处指定备忘录。
FindEditFormTemplateControl 方法用于当您要查找的控件是
在 AspxGridView 的
标记中。例如:
Here is an Devexpress example for HTMLEDItor in AspxGridView, but its the same.
http://www.devexpress.com/Support/Center/CodeCentral/ViewExample.aspx?exampleId=E296
Where do you specify the memo in yor aspx file.
FindEditFormTemplateControl method is used when the control you are looking for control is
in
<EditForm>
tag of the AspxGridView.For example: