Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
412 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
241 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
144 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
808 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
166 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
2 answers
251 views
Hi, I'm using Telerik.Web.UI v. 2014.1.403.45
I have a chart in my page to display wind polar data.
The chart is binded to SqlServer data, and the query result data are displayed correctly (i.e. the chart is binded to the data source).
What is not working is the x-axis label data binding: i set the DataLabelsField field to have a textual value displayed, instead of the numeric one, but nothing happens, and the numeric data is not replaced.

                 <telerik:RadHtmlChart ID="radHtmlChart" runat="server" Width="1024px" Height="768px" Transitions="true">
                        <PlotArea>
                            <XAxis StartAngle="90" Reversed="true" Type="Category" Visible="true" DataLabelsField="TXT">
                            </XAxis>
                            <Series>
                                <telerik:PolarAreaSeries Name="WindData" DataAngleField="DEGR" DataRadiusField="NUM">
                                </telerik:PolarAreaSeries>
                            </Series>
                        </PlotArea>
                    </telerik:RadHtmlChart>



Danail Vasilev
Telerik team
 answered on 17 Apr 2014
5 answers
140 views
I have a master page that has a table in it and one row with 2 cells in the table.  The left cell is Navigation on the master page.  The right cell is the main content.  Is there a way I can put a loading panel ONLY on the navigation cell when the user clicks a web page to go to?  I've tried this already with the ajaxsetting - using the radpanelbar id and then I put the cell within a panel and use it to show the loading panel. That seems to not work. So is this even possible?  The loading panels work perfect on my content pages when I want to show the loading panel on the grid or the table where I have my search criteria entered. 
Kostadin
Telerik team
 answered on 17 Apr 2014
1 answer
142 views
Is there a way to remove the ability to rename and delete of the folders?  I only want to give the users the ability to rename a delete files but the folders to be set and not allowed to modify.
Vessy
Telerik team
 answered on 17 Apr 2014
13 answers
1.5K+ views
I have a combox box that I need to be required field.
I have 2 BUTTONS on page.
The first button "test" able to validate but second button doesnt!!Any help! Thanks,

<td valign="top">
<telerik:RadComboBox ID="cbSite" runat="server" EmptyMessage="Select" Height="200"
Width="200">
</telerik:RadComboBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="cbSite" 
runat="server" ErrorMessage="RequiredFieldValidator"></asp:RequiredFieldValidator>
<asp:Button ID="test" runat="server" Text="test" />
</td>
<td style="text-align: left">
</td>
<td valign="bottom">
<asp:Button ID="btnSubmit" runat="server" Text="Submit"  /><-- THIS DOESNT VALIDATE
</td>
Aneliya Petkova
Telerik team
 answered on 17 Apr 2014
1 answer
115 views
Hello Telerik Team,

We have Event Management kind of asp.net web application and we have used the Telerik toolkit in our application. The current Telerik version currently we

are using is 2012.2.912.35. We have used RadComboBox in our application extensively and most of the places we have set MarkFirstMatch property of RadComboBox to TRUE.

Previously when we access our application in IE9 browser then RadcomboxBox filtering feature was working very smoothly but later on we started using IE 10 and IE11 browsers then we noticed that the text at the top of RadComboBox diappears. In our Application we have used IE=EmulateIE7 Metatags from long time in all of the pages and in previous IE browsers i.e.  IE9, IE8 the DDL works perfectly but in IE 10 and IE11 browsers we facing the DDL filtering text issue. We tried to find out why IE=EmulateIE7 tag breaks the DDL filtering feature only in IE 10 and IE 11 browsers but we ddidnt get the reason and also so far we didnot got the fix for this issue. Please not we cannot remove the IE=EmulateIE7 tag from all pages because it will mess up the design of our pages.

In following screenshot you can see the country RadComboBox. I am using IE 10 or IE11 browser and suppose I search for “Boise”.Now when I started typing the alphabets in RadComboBox, the text at the top of DDL disappear and an X appears toward the center of the DDL. Please refer following screenshot:

[Refer ss1.png]

NOTE: The same problem is appearing for all of the RadComboboxes which are present in all of the pages of our application.

In above screenshot, we can see that RadComboBox filters the results correctly but the text at top of DDL disappears and X appears at center which doesn’t looks well.

This is the code of our web page where the country RadComboBox is located.  

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager runat="server" ID="RadScriptManager1" EnableScriptCombine="false">
            <Scripts>
            </Scripts>
        </telerik:RadScriptManager>
        <br />
        <br />
        <telerik:RadComboBox ID="cbCities" runat="server" Width="200px" MarkFirstMatch="true" ExpandDirection="Down">
            <Items>
                <telerik:RadComboBoxItem Text="Atlanta" Value="1" />
                <telerik:RadComboBoxItem Text="Austin" Value="2" />
                <telerik:RadComboBoxItem Text="Baltimore" Value="3" />
                <telerik:RadComboBoxItem Text="Boise" Value="4" />
                <telerik:RadComboBoxItem Text="Boston" Value="5" />
            </Items>
        </telerik:RadComboBox>
    </form>   
</body>
</html>

We also tried by changing the compatibility view setting but still issue persist.

I have also tried adding the script given in below link but this didn’t resolved the issue at our end.
http://www.telerik.com/forums/patch-ms-update-kb2586448-breaks-radcombobox-markfirstmatch-in-versions-older-than-2009-3-1314-inclusive

Please suggest any generic workaround so that the filtering feature of all RadComboBox present in our application works as desired in IE11 and IE 10 browsers.

Thanks,
Ashish
Aneliya Petkova
Telerik team
 answered on 17 Apr 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?