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://www.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.
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?