简体   繁体   English

Telerik Rad网格插入和更新命令不触发其事件

[英]Telerik Rad grid Insert and Update command not firing their events

I am working on a project where Telerik Controls are used. 我正在使用Telerik控件的项目中工作。 Earlier, grid was having 2 template columns with command button column for firing edit and delete command. 之前,grid有2个模板列,其中的命令按钮列用于触发编辑和删除命令。 Clicking on edit will automatically convert the edit button to an update button, and delete becomes cancel. 单击编辑将自动将编辑按钮转换为更新按钮,并且删除变为取消。 Everything was working fine, until now. 到目前为止,一切都很好。

Later I added two more textboxes inside that grid as templated column. 后来,我在该网格内又添加了两个文本框作为模板列。 And made relevant changes in code where the child controls are unboxed. 并对子控件未装箱的代码进行了相关更改。 But, on running, I found that the events are not firing. 但是,在跑步时,我发现这些事件没有触发。 That is, Insert and Update; 即插入和更新; cancel, edit and delete are working fine. 取消,编辑和删除工作正常。

One more thing, on clicking page does a postback, but the event is not fired. 还有一点,在单击页面上会进行回发,但是不会触发该事件。

Any ideas based on this scenario? 根据这种情况有什么想法吗? Might be anybody already faced such conditions. 可能已经有人面临这样的条件。

Note: I am working on remote Terminal, so clipboard operations and Internet are blocked there. 注意:我正在远程终端上工作,因此剪贴板操作和Internet均被阻止。 We can only connect, write, compile, and execute code there. 我们只能在那里连接,编写,编译和执行代码。 So I can't paste here the code for help. 因此,我无法在此处粘贴代码以寻求帮助。

I got it fixed, it was weird by anyhow I got it working. 我把它修好了,无论如何我都觉得这很奇怪。 Issue was in radgrid template column i added an attribute visible ="false" and that made me sick. 问题出在radgrid模板列中,我添加了一个可见的=“ false”属性,这让我感到恶心。 I removed that and every thing went fine.. 我删除了,一切都很好。

I was facing this problem. 我正面临这个问题。 I was explicitly binding the grid. 我明确地绑定了网格。 I took that out and used NeedDataSource function. 我取出来并使用NeedDataSource函数。 That solved my problem. 那解决了我的问题。

So if any one faces this issue, verify whether you are binding the grid anywhere else in the code behind file. 因此,如果有人遇到此问题,请验证是否在文件后面的代码中的任何其他地方绑定了网格。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM