Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
73 views
I create the RadEditor in CodeBehind and setup the properties as required. On the output page the Editor appears and all looks fine.However when I click inside the Editor (set to ShowOnFocus) I get a Javascript error and a blank Toolbar. This happens in IE8 and FireFox 8.0.1

Using VS2008 debugger I can see that there are tools added to the EditorToolGroup

I am using v.20011.3.1305.35 of Telerik

Attached are the screen snippets of the output in IE, the text of the Javascript error and a section of the code that establishes the RadEditor.
In the code "re" is the RadEditor.

Hope this is enough for some assistance.
Arthur
Top achievements
Rank 1
 answered on 07 Feb 2012
1 answer
76 views
I think this is an easy question, and I'm a little perplexed that I am having a problem with it.  Here is the issue:

This code grabs the DataKeyValue from a RadGrid row onRowMouseOver with no problem:

function onRowMouseOver(sender, eventArgs) {
    var rowID = eventArgs.getDataKeyValue("PartyExperienceID");
    document.getElementById("<%= HiddenLabel.ClientID %>").innerHTML = rowID;
}  

Works like a dream.  Now, I want to grab the changed HiddenLabel value server side (any way is fine, even a button click).  I can see that the label has changed on the page, but the server cannot see the change.  I'm wondering if I can solve the problem via RadAjaxManager.  Here is my current config:

<telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="HiddenLabel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadTreeView1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="RadTreeView1" />
                <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="RadGrid1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="HiddenLabel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

Any other ideas?   I feel I am missing something obvious (not a JS guy).

Thanks so much!

Jim
James
Top achievements
Rank 1
 answered on 07 Feb 2012
1 answer
101 views
I'm attempting to mimic the Sharepoint 2010 look using the RadRibbonBar.  Is there a way to change the look of the RibbonBar outside of the skins (I've not found a skin that matches up quite right).

Richard
Top achievements
Rank 1
 answered on 06 Feb 2012
2 answers
100 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
74 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
169 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
289 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
119 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
107 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
95 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?