Hi,
I am using a ultrawebgrid with one of the columns as hyperlink. On InitiazieRow i have created a hyperlink column & have set TargetURL to
string.Format("@[_blank]Page.aspx);
But I want to open this page.aspx with focus on it & at the centre of the screen.
Can anyone plz help on this?
Hello,
Yes -- I recently was talking with a customer on the very same case - I think we eventually reached a solution that was working for him -- hopefully it will work in your scenario as well.
Please, visit the following forum thread for details:
http://forums.infragistics.com/forums/p/6545/69752.aspx#69752
Hope this helps.
With reference to the thread, setting TargetURL to string ("Windwo.open......"); is not working
e.Row.Cells.FromKey("Edit").TargetURL = "window.open('popup.aspx',null,'left=400, top=100, height=250, width= 250, status=n o, resizable= no, scrollbars= no, toolbar= no,location= no, menubar= no')";
Plz help
Here is another suggestion
row["LinkColumn"] = "<a href='http://es.infragistics.com' target='_blank'>Infragistics Link</a>";
Clicking on the link will open another window. In this case it'll open a new window with the Url: www.infragistics.com .
Here the row is a DataRow placed in a DataTable, which is the source of the WebGrid.
I hope this helps.
Thanks
Thanks for the suggestion. But This is causing same effect as TargetURL. It opens a new minimised window.
I need to open a new window with focus on it & position as centre of the screen.
oh, and since it is not a REAL windows, pop up blockers have no effect on it.
why don't you use a WebDialog window? use the link to postback and open a web dailog window, you can set it to modal, size it, and apply styles to it.
I am facing the same issue. The hyperlink works fine when there is only one grid in the page, but when there are more than one grid "in the same page" then clicking on a hyperlink (in any grid) opens a new window in minimized state. Below is the sample link that i used in grid's template column.
<a href="http://mywebsite.com" target="_blank">Link </a>
Scenarios:
1. Have one grid with hyperlink to open a new window : [Works fine]
2. Have copy of the same grid in the same page: [browser opens in minimized state on clicking the link]
3. Disable scripts in Browser: [Works fine]
I am using "Infragistics35.WebUI.UltraWebGrid.v8.2.dll", .NET 3.5, IE 7.0.
thanks
Manoharan
My only requirement is to open a pop up window from ultrawebgrid column. The window should have focus on it.
This is possible by using TargetURL on InitializeRow event but that opens a new minimized window, I need to open a window of specific height and width & with focus on it.
Plz help me on this
I really do not know what is not working in your case -- it is hard to understand from your description. In the thread above the solution worked great for several people. What is different in your scenario? Do you get any specific error or just nothing happens? Can you start with just a regular link (no grid) and then open a new window and set focus to it, then try to embed that using TargetURL inside the grid?