Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
121 views
Hi , 
I have 2 context menu in my Tree View  in the client side i want to specify wich one i want to use its seem the tree view get the first one as default menu.i use the same code in demo.

<ContextMenus>
    <telerik:RadTreeViewContextMenu ID="ArtclesMenu" runat="server">
                    <Items>
                        <telerik:RadMenuItem 
                            Value="NewArticle"
                             Text="New Article" 
                            ImageUrl="~/TreeView/Img/Outlook/12.gif">
                        </telerik:RadMenuItem>
                      
                    </Items>
                    
                </telerik:RadTreeViewContextMenu>
                <telerik:RadTreeViewContextMenu ID="MainMenu" runat="server">
                    <Items>
                        <telerik:RadMenuItem Value="AddChapter" Text="Add Chapter">
                        </telerik:RadMenuItem>
                         <telerik:RadMenuItem Value="Delete" Text="Delete" >
                        </telerik:RadMenuItem>
                        
                       </Items>
                    </telerik:RadTreeViewContextMenu>
 
</ContextMenus>    
     



Mrityunjay
Top achievements
Rank 1
 answered on 07 Apr 2017
5 answers
327 views

Hi,

I've a problem with radGrid.

If I hide a column in PreRender event using Me.Grid1.MasterTableView.RenderColumns(3).Visible = False, when I try to retreive the value in ItemDataBound event, the value is &nbsp;

If the column is visible, the value is shown correctly.

I've recently updated Telerik from 2009.3.1314.35 to 2014.3.1209.35.

Before this update, everything was working well

I work with VS 2013.

Any ideas?

Thanks

Eyup
Telerik team
 answered on 07 Apr 2017
0 answers
48 views

Is there a way to find all the radsearchbox objects on a page on clientside? I know for comboboxes I would use the following code, but I'm not sure how to find for radsearchboxes.

 

for (var i = 0; i < Telerik.Web.UI.RadComboBox.ComboBoxes.length; i++) {
    var objComboBox = Telerik.Web.UI.RadComboBox.ComboBoxes[i];
    alert('Combobox ClientId : ' + objComboBox.get_id());
 
}
steve
Top achievements
Rank 2
 asked on 06 Apr 2017
1 answer
187 views

Dim radChart As New RadHtmlChart()
radChart.ID = "Rad" & iRadCharts
Dim oSeries As Telerik.Web.UI.ColumnSeries = New Telerik.Web.UI.ColumnSeries
oSeries.LabelsAppearance.Visible = False
oSeries.Stacked = True
oSeries.GroupName = "test"
 
LOOP
  Dim oCategorySeriesItem As Telerik.Web.UI.CategorySeriesItem = New Telerik.Web.UI.CategorySeriesItem
  oCategorySeriesItem.Y = Format(v, "0.00")
  radChart.PlotArea.XAxis.Items.Add(sDate)
  oSeries.SeriesItems.Add(oCategorySeriesItem)
      
  Dim oCategorySeriesItem2 As Telerik.Web.UI.CategorySeriesItem = New Telerik.Web.UI.CategorySeriesItem
  oCategorySeriesItem2.Y = Format(vMax, "0.00")
  oCategorySeriesItem2.BackgroundColor = Drawing.Color.Beige
  radChart.PlotArea.XAxis.Items.Add(sDate)
  oSeries.SeriesItems.Add(oCategorySeriesItem2)
END LOOP
radChart.PlotArea.Series.Add(oSeries)
HtmlChartHolder.Controls.Add(radChart)
Peter Milchev
Telerik team
 answered on 06 Apr 2017
12 answers
232 views
Hi,
 I am using Rad grid control for displaying some data and also using command Iterm display property on rad grid.
There is problem for showing static  headers.Multiple headers and Command Items  are displaying when i set static headers property true .Hoping a favourable solutions for my problem.

Thanks in advance,
Preethy
Pavlina
Telerik team
 answered on 06 Apr 2017
0 answers
70 views

Hello All,

Before this we had an issue related to Firefox and already resolved by this solution - http://www.telerik.com/forums/radeditor-paste-not-working-in-firefox.

Ultimately, after the changes made as given in above link we are facing another issue and observed that after copy pasting the text/word the cursor should appear at the end but it remains at the starting position
E.g. If we copy paste the text as 'testing' then the cursor appears just before 't' it should appear after 'g'.

We are using Telerik.Web.UI.dll of 2013.3.114.35.

Thanks,
Shivlila

Pranav
Top achievements
Rank 1
 asked on 06 Apr 2017
5 answers
277 views

label formattig issue with comma

 

for example ,

 

123456789

i need to display it as 1,23,456,789

see attached file

Stamo Gochev
Telerik team
 answered on 06 Apr 2017
0 answers
177 views

Hi,

I have RadComboBoxes in a templated RadListView:

<telerik:RadListView ID="RadListView_ProductDetails" runat="server" OnNeedDataSource="RadListView_ProductDetails_NeedDataSource" DataKeyNames="ID" ItemPlaceholderID="ProductDetailsItemContainer" OnItemCommand="RadListView_ProductDetails_ItemCommand" OnItemDataBound="RadListView_ProductDetails_ItemDataBound">
    <LayoutTemplate>
        <div style="clear: both; margin-bottom: 3px">
            <asp:PlaceHolder ID="ProductDetailsItemContainer" runat="server"></asp:PlaceHolder>
        </div>
    </LayoutTemplate>
    <ItemTemplate>
        <div class="productdetail">
            <div class="productdetailcolumn productdetailtitle"><%#Eval("ProductDetailTitle")%></div>
            <div class="productdetailcolumn productdetailoptions"><telerik:RadComboBox ID="RadComboBox_ProductDetail" ClientIDMode="Static" AllowCustomText="false" EnableTextSelection="false" runat="server" Width="200px" DataTextField="ProductDetailItemKey" DataValueField="ProductDetailItemValue"></telerik:RadComboBox></div>
            <div class="productdetailcolumn productdetailbutton addbutton"><telerik:RadButton ID="RadButton_AddProductDetail" runat="server" Text="Ekle" CommandName="Add"><Icon PrimaryIconCssClass="rbAdd" /></telerik:RadButton></div>
        </div>
    </ItemTemplate>
</telerik:RadListView>

On ItemDataBound, rename all RadCombobox ID's to unique one.

protected void RadListView_ProductDetails_ItemDataBound(object sender, Telerik.Web.UI.RadListViewItemEventArgs e)
{
    RadListViewDataItem rlvi = (RadListViewDataItem) (e.Item);
    Int32 iProductDetailTitleID = Convert.ToInt32(rlvi.GetDataKeyValue("ID").ToString());
    RadComboBox rcb = (RadComboBox) rlvi.FindControl("RadComboBox_ProductDetail");
    rcb.ClientIDMode = ClientIDMode.Static;
    rcb.ID = "RadComboBox_ProductDetail_" + iProductDetailTitleID;
}

Then add items to all comboboxes:

RadListView_ProductDetails.Rebind();
foreach (RadListViewDataItem rlvi in RadListView_ProductDetails.Items)
{
    Int32 iProductDetailTitleID = Convert.ToInt32(rlvi.GetDataKeyValue("ID").ToString());
    RadComboBox rcb = (RadComboBox) rlvi.FindControl("RadComboBox_ProductDetail_" + iProductDetailTitleID);
    RadControlActions.FillRadComboBox(rcb, "SELECT PreviouslyUsedValue AS ItemText, PreviouslyUsedValue AS ItemValue FROM ProductDetailTitlesPreviousValues WHERE ProductDetailTitleID = " + iProductDetailTitleID + " ORDER BY PreviouslyUsedValue", "");
}

 

All OK to this point. 

But when i hit save button, i can't access selected values of RadComboBoxes with this method, because RadComboBox is null:

foreach (RadListViewDataItem rlvi in RadListView_ProductDetails.Items)
{
    Int32 iProductDetailTitleID = Convert.ToInt32(rlvi.GetDataKeyValue("ID").ToString());
    RadComboBox rcb = (RadComboBox) (rlvi.FindControl("RadComboBox_ProductDetail_" + iProductDetailTitleID));
    String strProductDetail = rcb.SelectedValue
}

I get error "System.NullReferenceException: Object reference not set to an instance of an object."

How can get new selected values of this comboboxes?

Thanks.

H. Baris
Top achievements
Rank 1
 asked on 06 Apr 2017
1 answer
170 views

How do we get the material design look for input as shown here: http://www.material-ui.com/#/components/text-field 

Using the Telerik input controls?

 

also, is there a demo page where I can toggle the page 'skin' to see what the skin looks like on a multitude of Telerik Controls?

Doug
Top achievements
Rank 1
 answered on 05 Apr 2017
4 answers
117 views
Hi,

i want to use Radmaskedtextbox in different sytle,like if i set mask as 'None' it has to behave like textbox(which allows any character).

Could you please help me
Scott
Top achievements
Rank 1
 answered on 05 Apr 2017
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?