Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
177 views
When I try to group by a GridAutoCompleteColumn (dragging the column header in the grouping header) I get this error.
Don't know if is a known bug/limitation of that type of column or there is something messed in my implementation.

Expression cannot be null or empty
 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: Telerik.Web.UI.GridGroupByException: Expression cannot be null or empty
 
Source Error:
 
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
 
Stack Trace:
 
 
[GridGroupByException: Expression cannot be null or empty]
   Telerik.Web.UI.GridGroupByExpression.SetExpression(String expression) +134
   Telerik.Web.UI.GridGroupByExpression..ctor(GridColumn column) +213
   Telerik.Web.UI.RadGrid.RaisePostBackEvent(String eventArgument) +7253
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804
Massimiliano
Top achievements
Rank 1
 answered on 12 Nov 2013
4 answers
175 views
Hi everyone

I have a HTMLChart that gets populated via the database, based on a drop down.

It works fine, it populates and sets the pie chart, but the legend doesn't update. For example, if the first selection has 2 values, I get two legends, but when I then I get a selection with 4 values, it stays 2 values in the legend? Also, I have set the DataFormatString, but it stays with 4 decimals for the yValue?

<telerik:RadHtmlChart ID="uxPieChart" runat="server">
    <PlotArea>
        <Series>
            <telerik:PieSeries StartAngle="90">
                <LabelsAppearance Position="Circle" DataFormatString="{0:C}" />
                <TooltipsAppearance DataFormatString="{0:C}" />
            </telerik:PieSeries>
        </Series>
    </PlotArea>
    <ChartTitle Text=""/>
</telerik:RadHtmlChart>
uxPieChart.PlotArea.Series.Clear();               
 
int fundID = int.Parse(uxFundList.SelectedValue);
 
DataTable dt = Fund.BudgetBreakDown(fundID);
 
PieSeries pieSeries = new PieSeries();
SeriesItem item;
 
foreach (DataRow budgetRow in dt.Rows)
{
    item = new SeriesItem();
    item.YValue = Decimal.Parse(budgetRow["Amount"].ToString());
    item.Name = budgetRow["Header"].ToString();
    pieSeries.Items.Add(item);
}
 
uxPieChart.PlotArea.Series.Add(pieSeries);
Any ideas?

Thank you

[EDIT] It was due to 0 Values coming through from the DB, you couldn't see it on the chart, but it created a legend. Sorted it out now.
Jako
Top achievements
Rank 1
 answered on 12 Nov 2013
2 answers
126 views
Hello,

First of all, I'm not good at English. I'm sorry for that.
I have a TreeList and I used the OnItemSelected and OnItemDeselected client event.
In this event, how can i know user is selected the header checkbox column or row checkbox column?
I try the whole day but I still can't find it.
Anyone, please help me!.

Thanks & Regards,
Sundee
Shinu
Top achievements
Rank 2
 answered on 12 Nov 2013
2 answers
64 views
i am trying to get the text that i have typed into my radcombobox.

The combobox is defined as :

cmb = New RadComboBox
      cmb.ID = "cmbSearch"
      cmb.ShowDropDownOnTextboxClick = False
      cmb.MarkFirstMatch = True
      cmb.DataTextField = "TextField"
      cmb.DataValueField = "ValueField"
      cmb.ShowToggleImage = False
      ' cmb.AutoPostBack = True
 
      cmb.Attributes("onkeyup") = "handleKeyPress();"
 
      If Not Page.IsPostBack Then
          cmb.DataSource = _recipe.getAllStockItems(_security.UserID, _security.DivisionId)
          ViewState("cmbDataSource") = cmb.DataSource
          cmb.DataBind()
      End If
      Master.Menubar.Add(cmb)


now, every time i type something into the box, the 'handleKeyPress' javascript function runs - as you can see in the above code.


this javascript function is defined as:

function handleKeyPress()
{
    var combo = $find('<%=cmb.ClientID%>');
     
    //  alrt('error');
    document.getElementById('<%=hidAutoComplete.ClientID%>').value = combo._filterText;
    document.getElementById('<%=hidAutoComplete.ClientID%>').blur();
 //   alrt('error');
    <%=Page.ClientScript.GetPostBackEventReference(hidAutoComplete, "Change")%>
 
 
}


this is almost ok.
The point that is confusing me is that the 'combo._filterText' gives me my text that i have typed, and this would look like it works.
e.g:
the radcombobox has an item 'david'. i type in 'da' and the radcomobobx autocompletes it to 'david' but combo._filtertext gives me 'da'.
this is correct and how i would expect it to work.

now, if i typed 'daa' (which doesn't exist in the combobox), the combobox stops me from adding this extra 'a' and will autocomplete it to 'david'.
this is also correct. unfortunately, and this is the problem, 'combo._filtertext' shows 'daa'.

is it possible to get just 'da'. that is, only the text i have entered, and that i am allowed to enter?
David
Top achievements
Rank 1
 answered on 12 Nov 2013
1 answer
51 views
Hello,

I want on my listview item user can drag it over some list as well they can click on that item as well,below is my code which works fine in firefox,google chrome and safari but IE is not happy with my code.   

<asp:LinkButton runat="server" ID="LinkButton1"  CommandName="profiledetails"  CommandArgument='<%# Eval("id")%>' >
                                            <div id="Div1" style="position: relative; z-index: 10;margin-top: -180px;top:0px;left: 0px;"  >
                                                <telerik:RadListViewItemDragHandle ID="RadListViewItemDragHandle1" Height="160" Width="160"   
                                                    CssClass="dragdrophandleimage" runat="server" ToolTip="Drag and drop it on the list to">
                                                </telerik:RadListViewItemDragHandle>
                                            </div>
                                            </asp:LinkButton>

Can anyone help me with this? I should be drag the whole item as well as i should be able to click listview item as well.Is there any better way to achieve this?

Please help,
Thanks
Foram
Maria Ilieva
Telerik team
 answered on 12 Nov 2013
3 answers
104 views
Hi,

I am trying to set the background for our main items in the bar.
Attached please find the current look , and what I want it to look like.

Main requirements are:
1. Rounded edges
2. Gradient color
3. Text on top of the image, and not as a part of it.

I don't mind setting the bg color directly, or setting bg image,
but I'm not sure how to do this.

Could you please advise?

Thanks,
Omer
Magdalena
Telerik team
 answered on 12 Nov 2013
1 answer
163 views
On my chart (see attached), the value is zero where the green arrow is.  I want the label to show "Current: 0" there.  Instead, it shows nothing.  The value is actually 0 and not null.  My users are going to think it's "missing".  How can I get the label to show?
Stamo Gochev
Telerik team
 answered on 12 Nov 2013
1 answer
136 views
Hi

When I click the select button the file browser dialog opens with all image files listed. There I am able to check the preview Option of the FileDialog to preview the files I am about to upload. So by default can I force the preview mode in all browsers?
Shinu
Top achievements
Rank 2
 answered on 12 Nov 2013
7 answers
1.0K+ views
Hi,

I have a website that uses common ASP.NET Ajax controls. The site is being scanned by IBM Rational AppScan 7.9.0.3, which flags it with a security vulnerability for having client-side SQL returned in some calls to Telerik.Web.UI.WebResource.axd. I understand that this is an HTTP Handler that simply returns JavaScript from Telerik.Web.UI.dll, but don't know how to get past having it flagged. I looked at the returned JavaScript and don't see any SQL.

Anyone else having issues with AppScan? I saw this related thread (http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/radcontrols-and-rational-appscan-web-site-security-software.aspx) but it doesn't really discuss how to satisfy AppScan. If I can't get it to scan, I need to convince the security team that it's not an issue.

Thanks,
Dan

Antonio Stoilkov
Telerik team
 answered on 12 Nov 2013
3 answers
83 views
Dears,
Telerik have any product is website authoring design tool?  It can use to layout the website full page in the first step in our website designing.

Thanks.

Kate
Telerik team
 answered on 12 Nov 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?