Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
44 views
Hello,
I noticed that the PivotTable control is not compatible with touchscreen tablet on Windows 8.
How do I use it better?

Thanks
Francesco
Dimitar
Telerik team
 answered on 18 Apr 2014
1 answer
52 views
Just curious if it works before investing too much time into it.  I have tried to implement it and have had no luck.  Please advise.
Genady Sergeev
Telerik team
 answered on 18 Apr 2014
1 answer
39 views
Hello there,

i am using RADtreeview within my User Control (*.ascx). I also configured it to get its nodes from a webservice. So far so good, all is working fine as long as i open the Page with "http://". I see the Control is sending its request with POST to my WebService and gets all needed information to populate the Tree.

But as soon as i switch to "https://" the Control is asking the WebService with GET instead of POST. How to configure it to always send POST?

UseHttpGet="false" doens't change anything. Also my WebService only have a POST OperationContract.

WebService Contract:

[OperationContract]
[WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.WrappedRequest, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
RadTreeNodeData[] GetNodes(RadTreeNodeData node, IDictionary<string, object> context);

User Control (*.ascx):

<telerik:RadTreeView
    ID="RadTreeView1"
    runat="server"
    Width="100%"
    PersistLoadOnDemandNodes=   "false"
    EnableViewState         =   "false"
    LoadingStatusPosition   =   "AfterNodeText"
     
    >
    <ExpandAnimation Type="none"></ExpandAnimation>
    <CollapseAnimation Type="none"></CollapseAnimation>
    <WebServiceSettings Path="http://localhost/_vti_bin/xxxx.xxxx.xxxx/myTopBarNavigation.svc" Method="GetNodes" UseHttpGet="false"></WebServiceSettings>
    <Nodes>
        <telerik:RadTreeNode Text="Root Node" ExpandMode="WebService">
        </telerik:RadTreeNode>
    </Nodes>
</telerik:RadTreeView>
Hristo Valyavicharski
Telerik team
 answered on 18 Apr 2014
1 answer
147 views
I have a grid looks with a RadButton for editing with paging allowed. Out of grid I have a button for filtering. The problem is when the session is lost, the buttons for editing not works neither buttons for paging.

In code design, it looks like this:

    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
    </telerik:RadStyleSheetManager>
    <telerik:RadAjaxManager ID="RadAjaxManager" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RbtFiltrar">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RgParametros"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadWindowManager ID="RadWindowManager" runat="server">
    </telerik:RadWindowManager>

    <telerik:RadGrid ID="RgParametros" AllowPaging="true" PageSize="14" runat="server"
        AutoGenerateColumns="False" GridLines="none" OnItemDataBound="RgParametros_ItemDataBound"
        EnableLinqExpressions="true" meta:resourcekey="RgParametros" OnNeedDataSource="RgParametros_NeedDataSource"
        OnSortCommand="RgParametros_SortCommand" OnDataBound="RgParametros_DataBound">
        <GroupingSettings CaseSensitive="False" />
        <PagerStyle PageSizeControlType="None" />
        <MasterTableView DataKeyNames="Id,Nombre" AllowSorting="true" TableLayout="Fixed"
            AllowMultiColumnSorting="true" HeaderStyle-HorizontalAlign="Center">
            <Columns>
                <telerik:GridBoundColumn UniqueName="ColCodigo" SortExpression="Id" DataField="Id"
                    meta:resourcekey="ColCodigo">
                    <ItemStyle Width="13%" Wrap="false" />
                    <HeaderStyle Width="13%" Wrap="false" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="ColNombre" SortExpression="Nombre" DataField="Nombre"
                    meta:resourcekey="ColNombre">
                    <ItemStyle Width="60%" Wrap="false" />
                    <HeaderStyle Width="60%" Wrap="false" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="ColTipo" SortExpression="Tipo" DataField="Tipo"
                    meta:resourcekey="ColTipo">
                    <ItemStyle Width="13%" Wrap="false" />
                    <HeaderStyle Width="13%" Wrap="false" />
                </telerik:GridBoundColumn>
                <telerik:GridBoundColumn UniqueName="ColValores" SortExpression="Valores" DataField="Valores"
                    meta:resourcekey="ColValores">
                    <ItemStyle Width="10%" Wrap="false" HorizontalAlign="Right" />
                    <HeaderStyle Width="10%" Wrap="false" />
                </telerik:GridBoundColumn>
                <telerik:GridTemplateColumn ItemStyle-HorizontalAlign="Right" UniqueName="ColEditar">
                    <ItemTemplate>
                        <telerik:RadButton ID="RbtEditar" runat="server" CausesValidation="false" OnClick="RbtEditar_Click"
                            Width="20px" Height="20px" Style="margin-right: 15px" HoveredCssClass="classHoveredImage"
                            DisabledButtonCssClass="classDisabledImage" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Id") %>'>
                            <Image EnableImageButton="true" ImageUrl="<%$ Resources:Iconos,VER_DETALLE %>" DisabledImageUrl="<%$ Resources:Iconos,VER_DETALLE_DISABLED %>"
                                HoveredImageUrl="<%$ Resources:Iconos,VER_DETALLE_HOVER %>" />
                        </telerik:RadButton>
                    </ItemTemplate>
                </telerik:GridTemplateColumn>
            </Columns>
            <SortExpressions>
                <telerik:GridSortExpression FieldName="Id" SortOrder="Ascending" />
            </SortExpressions>
        </MasterTableView>
    </telerik:RadGrid>

Eyup
Telerik team
 answered on 18 Apr 2014
1 answer
80 views

Hi,
 I am getting telerik versioning exception in IE 10 browser. And i had attached the snapshot of that exception.So please help me.
       Telerik version  =  2014.1.225.40
Peter Filipov
Telerik team
 answered on 18 Apr 2014
1 answer
326 views
Hello Guys,

Right now I'm working with my clients to develop an Image viewer, using the components RadImageEditor and RadGrid. The RadGrid is implemented to be the thumbnail part of the viewer and each row is an image of the document, when its clicked loads the image.url to the Image Editor. I'm handling here documents so I want to make annotations, highlights, add text, rotate, crop, all the basic operations that an image viewer do. But I'm having some troubles. 1) The memory consumption its to high when each image is loaded, here its a script that change the route of the image with ajax, the image editor consumes more and more memory, there is an option to dispose the memory or maybe I'm loading wrong the images? 2)  The images are loaded fine in the beginning, and when you click each image I just change the image URL, also my images are in a share folder so all my access are fine, but when i try to do some operations of the Image Editor a java exception raises and the operations dialog are not loaded fine and don't work.

Do you have some tips to handle this better?

Thanks,
Javier
Vessy
Telerik team
 answered on 17 Apr 2014
3 answers
196 views
Hi,
Referring to the screencap http://upload.ximnet.com.my/huisheng/crop.png

Requirement: I want to let user crop a 300x300 thumbnail:

1. I have locked the width and height and hide the aspect ratio using JavaScript:

//This code sets the initial dimensions of the CropBox and the aspect ratio
       this._widthTxt.value = 300;
       this._heightTxt.value = 300;
       var ratio = 100 / 100; // (w/h)
       this._setCropBoxRatio(ratio);
       this._sizeRatio = ratio;
       this._updateCropBoxFromControls();


2. But if user drag the resize handler, they are still able to change the thumbnail size.
How do I lock the resize handler to prevent user from re-sizing when cropping?

3. What is the best way / correct way to load the thumbnail size from database?  Is it to use Ajax call in the ascx or there is a better method?

Thanks.

Vessy
Telerik team
 answered on 17 Apr 2014
4 answers
107 views
Is there any way to hide the pager control in a rad pivot grid.  I see that it is possible in normal grid but I am not sure how to do this in a pivot grid.

Thanks
Kalyani
Top achievements
Rank 1
 answered on 17 Apr 2014
28 answers
683 views
I have gone through a couple of examples to achieve this. I am unable to bind my combobox to a datasource. The combobox on dropdown doesn't display a list of values.
I have a RadGrid as follows:
_RadGrid1.MasterTableView.DataKeyNames = new string[] { this._PopRuleList.PopCapabilityRuleIdColumn.ColumnName };             _RadGrid1.Width = Unit.Percentage(98);             _RadGrid1.PageSize = 15;             _RadGrid1.AllowPaging = true;             _RadGrid1.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric;             _RadGrid1.AllowSorting = true;             _RadGrid1.AllowFilteringByColumn = _ShowFilter;             _RadGrid1.ShowStatusBar = _ShowFilter;             _RadGrid1.AutoGenerateColumns = false;             _RadGrid1.MasterTableView.NoMasterRecordsText = "There are no exceptions.";             _RadGrid1.Skin = "WebBlue";             _RadGrid1.MasterTableView.Width = Unit.Percentage(100);             _RadGrid1.ItemCommand += RadGrid1_ItemCommand;             _RadGrid1.ShowHeader = true;
	
	   string ColumnName = "Bandwidth";
            boundColumn = new GridBoundColumn();
            boundColumn.FilterTemplate = new MyTemplate(ColumnName, _RadGrid1);
            _RadGrid1.MasterTableView.Columns.Add(boundColumn);
            boundColumn.DataField = this._PopRuleList.BandwidthsColumn.ColumnName;
            boundColumn.AllowFiltering = true;
            boundColumn.HeaderText = "Bandwidth";
            boundColumn.UniqueName = "Bandwidth";
            boundColumn.HeaderStyle.Width = Unit.Pixel(25);

Also I have the following class:
class MyTemplate : ITemplate
{
    protected RadComboBox combo;
    private string colname;
    RadGrid radgrid;
    GlobalCrossing.IFO.ServerControls.Pops.CapabilitiesExceptionListCtrl ce = new GlobalCrossing.IFO.ServerControls.Pops.CapabilitiesExceptionListCtrl();
 
    public MyTemplate(string cName, RadGrid grid)
    {
        colname = cName;
        radgrid = grid;
    }
    public void InstantiateIn(System.Web.UI.Control container)
    {
        combo = new RadComboBox();
        combo.ID = "RadComboBoxControl";
        combo.DataBinding += new EventHandler(RadComboBoxControl_DataBinding);
        container.Controls.Add(combo);
        combo.AutoPostBack = true;
        combo.SelectedIndexChanged += new RadComboBoxSelectedIndexChangedEventHandler(RadComboBoxControl_SelectedIndexChanged);
    }
 
    public void RadComboBoxControl_DataBinding(object sender, EventArgs e)
    {
        RadComboBox combo = (RadComboBox)sender;
        GridFilteringItem container = (GridFilteringItem)combo.NamingContainer;
 
        combo.DataTextField = ce._PopRuleList.BandwidthsColumn.ColumnName;
        combo.DataValueField = ce._PopRuleList.BandwidthsColumn.ColumnName;
        combo.DefaultItem.Text = "All";
        combo.EnableAutomaticLoadOnDemand = true;
        combo.AllowCustomText = true;
        combo.DataSource = ce._PopRuleList;
    }
 
    void RadComboBoxControl_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
    {
        RadComboBox combo = sender as RadComboBox;
        string filterExpression;
        filterExpression = "([Bandwidth] LIKE '" + e.Value + "')";
        radgrid.MasterTableView.FilterExpression = filterExpression;
        radgrid.MasterTableView.Rebind();
    }
}
Please let me know how can I bind the RadComboBox so that it displays a list of values to select from.

Viktor Tachev
Telerik team
 answered on 17 Apr 2014
5 answers
124 views
I'm not sure where to post this, but is everything ok to install with 2013?  The telerik control panel only seemed to have support for 2012.  I'm using a little bit older dlls from q1 because we don't want to upgrade yet.
Ianko
Telerik team
 answered on 17 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?