惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
The GitHub Blog
The GitHub Blog
博客园_首页
T
The Blog of Author Tim Ferriss
H
Hackread – Cybersecurity News, Data Breaches, AI and More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
腾讯CDC
I
InfoQ
量子位
J
Java Code Geeks
P
Proofpoint News Feed
有赞技术团队
有赞技术团队
Webroot Blog
Webroot Blog
Martin Fowler
Martin Fowler
D
Docker
F
Fortinet All Blogs
云风的 BLOG
云风的 BLOG
V
Vulnerabilities – Threatpost
罗磊的独立博客
P
Proofpoint News Feed
T
The Exploit Database - CXSecurity.com
Cyberwarzone
Cyberwarzone
P
Privacy & Cybersecurity Law Blog
Last Week in AI
Last Week in AI
爱范儿
爱范儿
The Hacker News
The Hacker News
S
SegmentFault 最新的问题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
V
V2EX
Simon Willison's Weblog
Simon Willison's Weblog
AI
AI
Y
Y Combinator Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
GbyAI
GbyAI
V
Visual Studio Blog
H
Heimdal Security Blog
S
Secure Thoughts
B
Blog RSS Feed
雷峰网
雷峰网
T
Tenable Blog
C
Check Point Blog
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
A
About on SuperTechFans
Recent Commits to openclaw:main
Recent Commits to openclaw:main

博客园 - sunrack

LINQ to SQL语句之Group By/Having和Exists/In/Any/All/Contains C++/CLI托管字符串与非托管char数组的转换 程序员从初级到中级10个秘诀 Get JavaScript IntelliSense With DevExpress Client-Side Objects - v2010 vol 1 Grid Editing - Cascading Combo Boxes - sunrack ASPxRadioButtonList 报错解决办法 - sunrack - 博客园 本地连接属性“出现意外错误”的解决办法 - sunrack - 博客园 Bootstrap DotNetFX35SP1 in Visual Studio 2010 Windows Server 2008 共享策略 XtraPivotGrid Custom Summaries 手动注册 DevExpress 8.2.3 控件到 Visual Studio 工具箱 sn.exe error "Failed to generate a strong name key pair -- The keyset is not defined" Thread Tools Rate Thread 浅析JavaScript中的showModalDialog的实战应用 javascript showModalDialog模态对话框使用说明 - sunrack - 博客园 entity framework 缓存干扰的数据不一致问题 Failed to load viewstate ? Typical problem, with an obvious solution. ViewState and Dynamic Control ASPxGridView 和 AJAX Extensions ToolBox 不兼容 ASPxCombobox Features
ASPxPopupControl does not show up in the right place
sunrack · 2011-02-25 · via 博客园 - sunrack

Created by Haithem at 2010/6/4 23:28:11
Attachment: Project.rar (27522 bytes)

Hi there,

I am trying to follow your example, so i can warn the user for some requirement

http://demos.devexpress.com/ASPxperienceDemos/PopupControl/ClientSideAPI.aspx

I have attached a test project, in which i have the aspxtextbox within an aspxnavbar. My issue is the aspxpopcontrol does not show near by the appropriate element. Could you check what i am doing wrong here.

Thank you for your help
Reviewed by DevExpress Team at 2010/6/5 1:45:51

Processed (Answered) by DevExpress Team at 2010/6/7 11:53:22
Attachment: Project_Q261869.zip (32759 bytes)

Hello Mohamed Haithem,

I'd like to note that the PopupWindow.PopupElementID property requires a Control.UniqueID. However, if a control resides in a naming container (ASPxNavBar in your situation, or similar), then its Control.UniqueID doesn't equal Control.ID and Control.ClientInstanceName. In your case, the ASPxTextBox.UniqueID is formed dynamically.

As a solution, I suggest that you set the PopupElementID property at runtime. For example:

[C#]

protected void Page_Load(object sender, EventArgs e) {
    ASPxTextBox txt1 = ASPxNavBar1.Groups[0].FindControl("text1") as ASPxTextBox;
    pcErrorW.Windows[0].PopupElementID = txt1.UniqueID;

    ASPxTextBox txt2 = ASPxNavBar1.Groups[1].FindControl("text2") as ASPxTextBox;
    pcErrorW.Windows[1].PopupElementID = txt2.UniqueID;
}
I've modified your project accordingly. Please check it, and let me know the result.

Thanks,
Marion



protected void Page_Load(object sender, EventArgs e) {
ASPxTextBox txt1
= ASPxNavBar1.Groups[0].FindControl("text1") as ASPxTextBox;
pcErrorW.Windows[
0].PopupElementID = txt1.UniqueID;

ASPxTextBox txt2

= ASPxNavBar1.Groups[1].FindControl("text2") as ASPxTextBox;
pcErrorW.Windows[
1].PopupElementID = txt2.UniqueID;
}