Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
136 views
In the below method when the execution came to   tbData.RenderControl(textWriter)  method ,then it is giving an error as "Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request."

Dim sb As New StringBuilder
        Dim tbData As New HtmlTable
        Dim Row As New HtmlTableRow
        Dim add_img_popup As New RadButton()
        add_img_popup.Text = "Add new Image"
        ' click event handler
        add_img_popup.Enabled = True
        add_img_popup.ID = "btn_add_img_popup"
        ' programmatic id
        ' Page.Controls.Add(add_img_popup)
        Dim CellTopicID As New HtmlTableCell
        CellTopicID.Style.Add("font-family", "Arial")
        CellTopicID.Style.Add("font-size", "10pt")
        CellTopicID.VAlign = "Top"
        CellTopicID.Align = "Left"
        CellTopicID.NoWrap = False
        CellTopicID.Controls.Add(add_img_popup)
        Row.Cells.Add(CellTopicID)


        Dim CellDateNotified As New HtmlTableCell
        CellDateNotified.InnerText = "Hello"
        CellDateNotified.Style.Add("font-family", "Arial")
        CellDateNotified.Style.Add("font-size", "10pt")
        CellDateNotified.VAlign = "Top"
        CellDateNotified.Align = "Left"
        CellDateNotified.NoWrap = True
        Row.Cells.Add(CellDateNotified)
        tbData.Rows.Add(Row)
        Dim stringBuilder As New StringBuilder()
        Dim stringWriter As New StringWriter(stringBuilder)
        Dim textWriter As New HtmlTextWriter(stringWriter)
        tbData.RenderControl(textWriter)
Slav
Telerik team
 answered on 27 Jul 2012
2 answers
162 views
I have an application where a RadWindow opens a modal window - the size of the child window being larger then the parent and im following the example in the DialogReturnValue example.  A button in the parent window opens the child window.

It all works fine if the buton is a html button 
<button onclick="openWin2();" style="width: 123px" title="Window2">Test2</button>

However the chld window is NOT modal if the button is an asp button
<asp:Button ID="Button1" runat="server" Text="Button" />

The page load defining the attribute of the button
Button1.Attributes.Add("onclick", "javascript:openWin2();return false;")

Any ideas ?

Allen

Shinu
Top achievements
Rank 2
 answered on 27 Jul 2012
1 answer
139 views
Is there anyway to set the extended tooltips when building the ribbon from XML?

Also is there an option to set the tooltips to not display?
Bozhidar
Telerik team
 answered on 27 Jul 2012
3 answers
192 views
Is it possible to dock RadToolBar to the bottom of a browser window?
I'm curious if it can be used to create something like a Wibya-type bar that is always visible.
Princy
Top achievements
Rank 2
 answered on 27 Jul 2012
2 answers
81 views
Good Day!

I have my library for resources - Resources.dll.
And I have UserControl with RibbonBar. But if I try to use text from my resource library for ApplicationMenu.Text property then Text is empty.
Here is my ascx

<telerik:RadRibbonBar ID="RadRibbonBar1" runat="server" Skin="Office2010Blue" Width="100%">
    <ApplicationMenu Text='<%=Resources.AdminMainMenu.Menu %>' >
        <Items>
            <telerik:RibbonBarApplicationMenuItem Text="Exit" ImageUrl="~/Media/Images/Icons/16x16_exit.png" />
        </Items>
    </ApplicationMenu>
</telerik:RadRibbonBar>

result of that is empty text for ApplicationMenu.
But if I put the next code on ascx
<%=Resources.AdminMainMenu.Menu %> 
then I can see text from resource library

Any idea?

Thanks,
Eugene
Evgeniy
Top achievements
Rank 1
 answered on 27 Jul 2012
1 answer
112 views
Is it possible to place a RadSkinManager in a RadToolBar?  If So How?
Thanks.
Shinu
Top achievements
Rank 2
 answered on 27 Jul 2012
1 answer
60 views
Hi,

we are having a small problem with the ClientSideSelectColumn in combination with Keyboard Navigation in InternetExplorer.
When you click on the checkbox in the ClientSideSelectColumn the desired row is selected (as expected). However, IE seems to have a special quirk where checking a checkbox also gives that checkbox focus and all further keyboard input is caught by this checkbox.
That means you can still use the Ctrl + arrow keys  to navigate to a different row in the grid, but when you press 'Space' to select the highlighted row, the first row that you clicked with your mouse is deselected/selected instead.

Do you have any tips for us on how we can fix this behaviour?.

Thanks,

Constantin
Milena
Telerik team
 answered on 27 Jul 2012
2 answers
101 views
Hi,
I have 4 classes:
Seminar
Debate : Seminar
Break : Seminar
Normal : Seminar

I wanted to use IEnumerable<Seminar> as a datasource for RadGrid but it keeps trying to cast them to Normal. Is there a way to stop grid from casting the types to child type (I'm guessing its taking the typeof first element in the array) or manualy specify the type it should use?

Krzysztof
Top achievements
Rank 1
 answered on 27 Jul 2012
1 answer
109 views
I would like to have the ability to have two icons on a menu item, but not always.  I generate my entire menu with three levels programmatically.  I put it in a control so all I have to do is drop it on a page and it works.
What I would like is the have two items possibly on a menuitem.  One on the left that would be a graphical prepresentation of what the menuitem does such as print, maintenance, etc and the another on the right that says NEW or Revised.  That way if a menuitem is new within the last 90 days I can display NEW or if the program behaviour has changed it can say REVISED.

Is this possible?

Thanks
Princy
Top achievements
Rank 2
 answered on 27 Jul 2012
1 answer
515 views
Hi,
     I have this problem with removing the underline of hyperlink column. Can anybody help me with this.
thanks
Savyo
Shinu
Top achievements
Rank 2
 answered on 27 Jul 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?