Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
92 views
Hi guys,
I downloaded a new version of RadControls and now when I am running my web appl on my style sheet I am getting this message:

Telerik.Web.UI 2011.3.1305.35 trial version. Copyright telerik © 2002-2011. To remove this message, please purchase a developer version.
What is this??How to remove it?
Vitaly
Top achievements
Rank 1
 answered on 06 Feb 2012
2 answers
70 views
Hi guys,

I am talking about contextmenu. I am trying to make a MenuItem not visible.
Let's say a user right-click on a button, a ContextMenu appear and give him some choises.
I have a javascript code that will determine what options (MenuItem) will be available for him.
I have managed to enable/disable the menuitems following this library but I can't figure out how to make the MenuItem not visible (rather than disabled).

Thanks in advance.
Pic
Top achievements
Rank 1
 answered on 06 Feb 2012
2 answers
159 views
I have a grid which has a number of databound columns (all created in code)
I have carried out a number of conditional formatting operations for example
Private Sub radgrid_databound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs)
      'Is it a GridDataItem
      If (TypeOf (e.Item) Is GridDataItem) Then
          Dim dataBoundItem As GridDataItem = e.Item
          If Left(dataBoundItem("ChangeFromPrevious").Text, 1) = "-" Then
              dataBoundItem("ChangeFromPrevious").ForeColor = Color.Red
          End If
      End If
  End Sub

I have now added a gridimagecolumn to my table which I want to display an arrow image pointing up or down depending if my databound column "changeFromPrevious" is positive or negative.

I am hoping to simply change the imageURL of the gridImageColumn, but I am unclear how and from which event I should do this.
ie do I do this on the databound condition dataitem, if so how do I access the imagecolumn.imageurl
or
do I do this as each image in the  GridImageColumn is created, if so how do get the databound item "changedfromPrevious" to apply conditions.
or is there a better approach?

Thanks

Johnathan 
jajanes
Top achievements
Rank 1
 answered on 06 Feb 2012
1 answer
280 views
Hi
I wanna create a custom server control (from CompositeControl base) that has context menu by default
by something like this : 

       protected override void CreateChildControls()
        {
            base.CreateChildControls();
           
            Panel pnl = new Panel();
            pnl.ID = "pnl";
            pnl.Width = Unit.Pixel(100);
            pnl.Height = Unit.Pixel(100);
            pnl.BackColor = System.Drawing.Color.Black;
            this.Controls.Add(pnl);

            RadContextMenu cntMenu = new RadContextMenu();
            cntMenu.ID = "cntM";
            RadMenuItem mItem = new RadMenuItem("Delete");
            cntMenu.Items.Add(mItem);
            ContextMenuElementTarget target = new ContextMenuElementTarget();
            target.ElementID = pnl.ClientID;
            this.Controls.Add(cntMenu);


        }

But it does not work
Is it possible to add ContextMenu dynamically ?
Have I done something wrong ?

Thank you very much for your feedbacks



reza
Top achievements
Rank 1
 answered on 06 Feb 2012
1 answer
112 views
Hello,

I have Telerik's WinForms controls installed, they work fine. Now  want to use Telerik's AJAX controls, I could not find them so I've already tried to (re?)install them. But I still can't find them.

What is their name supposed to be in the "Add Reference" windows of Visual Web Developer Express ?
What should be their 'Assembly name' in the "Choose Toolbox Items" window ?


Thank you for you help.


Thomas
Top achievements
Rank 1
 answered on 06 Feb 2012
1 answer
101 views
Hi I have the following grid defined in my app

 

 

<telerik:RadGrid ID="ColumnRadGrid" runat="server"

 

 

 

AllowAutomaticUpdates="True"

 

 

 

AllowFilteringByColumn="false"

 

 

 

AllowMultiRowSelection="true"

 

 

 

AllowSorting="false"

 

 

 

AutoGenerateColumns="false"

 

 

 

ClientSettings-AllowColumnsReorder="false"

 

 

 

Height="100%"

 

 

 

OnItemCreated="ColumnRadGrid_ItemCreated"

 

 

 

OnItemDataBound="ColumnRadGrid_ItemDataBound"

 

 

 

OnItemUpdated="ColumnRadGrid_ItemUpdated"

 

 

 

OnNeedDataSource="ColumnRadGrid_NeedDataSource"

 

 

 

ShowHeader="true"

 

 

 

TabIndex="6"

 

 

 

Visible="True"

 

 

 

Width="100%">

 

 

 

<ClientSettings AllowKeyboardNavigation="true" EnableRowHoverStyle="false" >

 

 

 

<Selecting AllowRowSelect="True" />

 

 

 

<ClientEvents OnRowDblClick="ColumnRowDblClick" OnRowClick="ColumnRowClick"

 

 

 

OnGridCreated="GridCreated" OnCommand="GridCommand" />

 

 

 

<Scrolling AllowScroll="True" UseStaticHeaders="True" />

 

 

 

</ClientSettings>

 

 

 

 

<MasterTableView BorderWidth="1" EditMode="InPlace" GridLines="Vertical" TableLayout="Fixed" Height="100%" Width="100%">

 

 

 

 

<Columns>

 

 

 

 

<telerik:GridTemplateColumn

 

 

 

HeaderText="Data Field"

 

 

 

HeaderTooltip="Data field name"

 

 

 

ItemStyle-Wrap="False"

 

 

 

UniqueName="columnName" ItemStyle-Height="25px">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="ColumnRadGridNameLabel" runat="server" Text='<%#HttpUtility.HtmlEncode(Eval("ColumnName")) %>' ClientIDMode="Static">

 

 

 

</asp:Label>

 

 

 

</ItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn

 

 

 

HeaderText="Column Alias"

 

 

 

HeaderTooltip="Column alias"

 

 

 

ItemStyle-Wrap="False"

 

 

 

UniqueName="columnAlias" ItemStyle-Height="25px">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="ColumnRadGridAliasLabel" runat="server" Text='<%#HttpUtility.HtmlEncode(Eval("Alias")) %>' ClientIDMode="Static">

 

 

 

</asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadTextBox ID="ColumnRadGridAliasTextBox" runat="server"

 

 

 

ClientIDMode="Static"

 

 

 

Text='<%#HttpUtility.HtmlEncode(Eval("Alias"))%>'

 

 

 

Width="140px" MaxLength="128">

 

 

 

</telerik:RadTextBox>

 

 

 

</EditItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn

 

 

 

HeaderStyle-Width="100px"

 

 

 

HeaderText="Show Option"

 

 

 

HeaderTooltip="Show options"

 

 

 

ItemStyle-Width="100px"

 

 

 

ItemStyle-Wrap="False"

 

 

 

UniqueName="showOption" ItemStyle-Height="25px">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="ColumnRadGridShowLabel" runat="server" Text='<%#HttpUtility.HtmlEncode(Eval("ShowText")) %>' ClientIDMode="Static">

 

 

 

</asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadComboBox ID="ColumnRadGridShowComboBox" runat="server" ClientIDMode="Static" Width="90px">

 

 

 

</telerik:RadComboBox>

 

 

 

</EditItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn

 

 

 

HeaderStyle-Width="130px"

 

 

 

HeaderText="Sort Option"

 

 

 

HeaderTooltip="Sort options"

 

 

 

ItemStyle-Width="130px"

 

 

 

ItemStyle-Wrap="False"

 

 

 

UniqueName="sortOption" ItemStyle-Height="25px">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="ColumnRadGridSortLabel" runat="server" Text='<%#HttpUtility.HtmlEncode(Eval("SortText")) %>' ClientIDMode="Static">

 

 

 

</asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadComboBox ID="ColumnRadGridSortComboBox" runat="server" ClientIDMode="Static"

 

 

 

OnClientSelectedIndexChanged="SortSelectionChanged"

 

 

 

Width="120px">

 

 

 

</telerik:RadComboBox>

 

 

 

</EditItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

<telerik:GridTemplateColumn

 

 

 

HeaderStyle-Width="135px"

 

 

 

HeaderText="Sort Order"

 

 

 

HeaderTooltip="Sort priority"

 

 

 

ItemStyle-Width="135px"

 

 

 

ItemStyle-Wrap="False"

 

 

 

UniqueName="sortOrder" ItemStyle-Height="25px">

 

 

 

<ItemTemplate>

 

 

 

<asp:Label ID="ColumnRadGridSortOrderLabel" runat="server" Text='<%#HttpUtility.HtmlEncode(Eval("SortOrderText")) %>' ClientIDMode="Static">

 

 

 

</asp:Label>

 

 

 

</ItemTemplate>

 

 

 

<EditItemTemplate>

 

 

 

<telerik:RadNumericTextBox ID="ColumnRadGridSortOrderNumericTextBox" runat="server"

 

 

 

ClientIDMode="Static" Width="100px" MinValue="1" MaxValue="1" ShowSpinButtons="True" NumberFormat-DecimalDigits="0" Value="1">

 

 

 

</telerik:RadNumericTextBox>

 

 

 

</EditItemTemplate>

 

 

 

</telerik:GridTemplateColumn>

 

 

 

</Columns>

 

 

 

</MasterTableView>

 

 

 

</telerik:RadGrid>

When I supply data the row heights change as I add items.

The first item occupies the entire height availalbe.

The second add makes the two rows take 50%.

Three a third etc until I reach four or five. Then the size is constant.

What am I missing?

 

Tim
Top achievements
Rank 1
 answered on 06 Feb 2012
0 answers
80 views
Hello Admin,

I am binding the radlistview with 500 paging. It works fine in mozilla but when i tried the same in the IE it freezes the window . please provide me solution ASAP.

Thanks
Mandeep Singh
Mandy
Top achievements
Rank 2
 asked on 06 Feb 2012
1 answer
51 views
hi,
Do we have something like CollapseImageURL, ExpandImageURL etc as we have in ASP.Net Treeview. If not can we replace +/- with custom image in NodeBound function of a RADTreeView?
Kate
Telerik team
 answered on 06 Feb 2012
2 answers
98 views
I have a custom skin, and cannot seem to get my custom arrows to show. I'd like bigger arrows for people browsing on touch devices.  Is this possible?  I tried amending the background-position values in the skin css, but to no avail.  Currently, the images used seem to be coming from a fixed place in the sprite image, but not where I'm trying to point in the css.

NB: Even though this the RadTabStrip has ScrollChildren set to true, the tabs wrap in IE9 and Chrome, though never in Firefox (all Win7).  Note that sometimes the tab strip becomes a single line strip as I remove and add tabs.

Any help would be welcome.

See an example at http://an.rsl.wustl.edu/radcontrolswebapp1/default.aspx

Here is part of my custom skin css (named "an12")
.RadTabStrip_an12 .rtsLI,
.RadTabStrip_an12 .rtsLink
{
    color: #000;
    font: 12px/26px "Segoe UI", Arial, sans-serif;
}
 
.RadTabStripLeft_an12 .rtsSeparator,
.RadTabStripRight_an12 .rtsSeparator
{
    background: #828282;
}
 
/* <disabled tabs> */
.RadTabStrip_an12 .rtsDisabled
{
    color: #aaa;
}
/* </disabled tabs> */
 
/* <scrolling arrows> */
.RadTabStrip_an12 .rtsNextArrow,
.RadTabStrip_an12 .rtsPrevArrow,
.RadTabStrip_an12 .rtsPrevArrowDisabled,
.RadTabStrip_an12 .rtsNextArrowDisabled
{
    background-image: url('TabStrip/TabStripStates.png');
    height:48px;
    width:32px;
}
 
.RadTabStrip_an12 .RadTabStripTop_an12 .rtsNextArrow { background-position: 0 -288px; }
.RadTabStrip_an12 .RadTabStripTop_an12 .rtsPrevArrow { background-position: -32px -288px; }
.RadTabStrip_an12 .RadTabStripTop_an12 .rtsPrevArrowDisabled{ background-position: -64px -288px; }
.RadTabStrip_an12 .RadTabStripTop_an12 .rtsNextArrowDisabled{ background-position: -96px -288px; }
 
/* </scrolling arrows> */
Tom
Top achievements
Rank 1
 answered on 06 Feb 2012
1 answer
65 views
I have a control which is an html table of links.  We turn off various rows in this table based on user permissions and/or the state of the data.  Need help with getting the control to render after we use a RadWindow.

I think I'm pretty close.  There are two links which are kind of the on-and-off for this function.  Clicking whichever link is showing pops up a RadWindow; if the user hits the 'right' button, we want to make that link invisible and show its opposite number.

I've got the client-side handling of the RadWindow closing working, which kicks off an ajaxrequest as such:
$find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest('ShowRDDAssignmentRow');

I've got the handler in my code-behind properly looking at the parameter and setting each table row's visibility properly.  I can't figure out how to configure the RadAjaxManagerProxy to recognize this request and tell the control it's been updated.

I've tried setting the AjaxControlID to the link, the Proxy, and even manually in code-behind to the Manager (this being a control, of course that's not local), but I can't get the table to re-draw.  I've got a RadAjaxPanel enclosing my html table, and that panel is the updated control, so my markup is like this:
<telerik:RadAjaxLoadingPanel ID="loadingPanel" Skin="Default" runat="server" />
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManagerProxy">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="ajaxPanel" LoadingPanelID="loadingPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManagerProxy>

Seems as if I'm missing something obvious.

Thanks,

Scott
golddog
Top achievements
Rank 1
 answered on 06 Feb 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?