简体   繁体   English

弹出新窗口时,“无可用记录”文本消失

[英]“no records available” text disappears when new window pops up

I am using Telerik WinForms UI controls, Version - "2016.2.503.40" (Telerik.WinControls). 我正在使用Telerik WinForms UI控件,版本-“ 2016.2.503.40”(Telerik.WinControls)。

Facing a weird issue with GridView control version - "2016.2.503.40" (Telerik.WinControls.GridView) GridView控件版本面临一个奇怪的问题-“ 2016.2.503.40”(Telerik.WinControls.GridView)

When data or records are not available on the grid I am showing "No records available" text using below code lines, 当网格上没有数据或记录时,我会使用以下代码行显示“无记录”文本,

myGridView.TableElement.Text = "No records available"; myGridView.TableElement.Text =“没有可用的记录”;

which works fine below screen, 在屏幕下方可以正常工作,

在此处输入图片说明

When some other window gets pop-up on this screen, "No records available" text disappears. 在此屏幕上弹出其他窗口时,“无可用记录”文本消失。

refer below screen, 请参阅下面的屏幕,

在此处输入图片说明

No able to find out why the text is getting disappeared in such scenario. 无法找到为什么在这种情况下文本消失的原因。

Any help will be highly appreciated. 任何帮助将不胜感激。

Following the provided information, I have tried to replicate the problem with RadGridView from the Telerik UI for WinForms suite. 按照提供的信息,我尝试通过Telerik UI for WinForms套件使用RadGridView复制问题。 Although a RadForm is shown over the main form, the expected "no data" text remains visible. 尽管在主窗体上显示了RadForm,但预期的“无数据”文本仍然可见。

I would like to note that the appropriate way to localize any text in RadGridView is to use a RadGridLocalizationProvider. 我想指出,在RadGridView中本地化任何文本的适当方法是使用RadGridLocalizationProvider。 Thus, you can specify what text to be returned for the RadGridStringId.NoDataText. 因此,您可以指定要为RadGridStringId.NoDataText返回的文本。 Please refer to the following help article demonstrating how to utilize the localization provider: https://docs.telerik.com/devtools/winforms/controls/gridview/localization/localization 请参考以下帮助文章,演示如何利用本地化提供程序: https : //docs.telerik.com/devtools/winforms/controls/gridview/localization/localization

However, if you are still experiencing any further difficulties, feel free to submit a support ticket from your Telerik account where you can provide a sample project demonstrating the issue you are facing. 但是,如果您仍然遇到任何其他困难,请随时从Telerik帐户提交支持票证,您可以在其中提供示例项目来说明您所面临的问题。

I hope this information helps. 我希望这个信息帮助。

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

相关问题 在WebBrowser.DocumentCompleted处理程序上关闭表单时,为什么会弹出IE窗口 - Why does an IE window pops up when closing a form on WebBrowser.DocumentCompleted handler 掌握内置功能中弹出的窗口 - Get hold of a window which pops up in an in-built function 编辑时Datagridview单元格文本消失 - Datagridview Cell text disappears when editing 如何抑制运行 C# Winforms 应用程序时弹出的黑色 Shell? - How Can I Suppress the Black Shell that Pops Up When I Run my C# Winforms Application? 测试弹出窗体的按钮单击事件时是否忽略Form.ShowDialog()? - Ignore Form.ShowDialog() when testing a button click event that pops up a form? 让用户在 winform 弹出时开始输入,而无需单击文本框 - Let user start typing when winform pops up without them having to click on the textbox 当透明度打开且控件失去焦点时,文本框文本消失 - Textbox text disappears when transparency turned on and control loses focus .NET Windows表单DataGridView以编程方式添加时,单元格文本消失 - .NET Windows forms DataGridView Cell text disappears when added programatically 禁用控件后,C#Windows窗体复选框文本消失 - c# Windows forms checkbox text disappears when control is disabled 作为WinForms工具窗口的WPF模式窗口消失 - WPF modal window as tool window in WinForms disappears
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM