Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
415 views
Hello, all.

I'm just getting started in telerik charting, and I'm tasked with trying to produce a real-estate stacking plan.  It's a fairly industry-standard chart that is essentially a zero-gap "StackedBar100" chart, where the items are rentable units, grouped by floor, proportioned by rentable area.  So, for example, the attached data would produce, roughly, the attached chart.  (The colors will be set item by item, based on other data, and the floors will be reversed, high to low, to mimic the building layout.)

I'm understanding most of what I need to do, but my stumbling point is the grouping field.  How do I tell the chart that series items need to be grouped based on the "Floor" field?

As I said, I'm very unfamiliar with charting programming, in Telerik or elsewhere, so I might be getting tripped up on terminology.

Thanks!

John



Danail Vasilev
Telerik team
 answered on 14 May 2014
7 answers
751 views
 


No property or field 'FilterExpression' exists in type 'DataRowView'

No property or field 'FilterExpression' exists in type 'DataRowView'

 

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.ParseException: No property or field 'FilterExpression' exists in type 'DataRowView'

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:

[ParseException: No property or field 'FilterExpression' exists in type 'DataRowView']
   Telerik.Web.UI.ExpressionParser.ParseMemberAccess(Type type, Expression instance) +957
   Telerik.Web.UI.ExpressionParser.ParseIdentifier() +385
   Telerik.Web.UI.ExpressionParser.ParsePrimaryStart() +31
   Telerik.Web.UI.ExpressionParser.ParsePrimary() +14
   Telerik.Web.UI.ExpressionParser.ParseUnary() +262
   Telerik.Web.UI.ExpressionParser.ParseMultiplicative() +26
   Telerik.Web.UI.ExpressionParser.ParseAdditive() +29
   Telerik.Web.UI.ExpressionParser.ParseComparison() +29
   Telerik.Web.UI.ExpressionParser.ParseLogicalAnd() +26
   Telerik.Web.UI.ExpressionParser.ParseLogicalOr() +26
   Telerik.Web.UI.ExpressionParser.ParseExpression() +23
   Telerik.Web.UI.ExpressionParser.Parse(Type resultType) +24
   Telerik.Web.UI.DynamicExpression.ParseLambda(ParameterExpression[] parameters, Type resultType, String expression, Object[] values) +47
   Telerik.Web.UI.DynamicExpression.ParseLambda(Type itType, Type resultType, String expression, Object[] values) +65
   Telerik.Web.UI.GridDynamicQueryable.Where(IQueryable source, String predicate, Object[] values) +62
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData35() +2325
   Telerik.Web.UI.GridDataTableFromEnumerable.FillData() +779
   Telerik.Web.UI.GridResolveEnumerable.Initialize() +35
   Telerik.Web.UI.GridResolveEnumerable.EnsureInitialized() +24
   Telerik.Web.UI.GridEnumerableFromDataView..ctor(GridTableView owner, DataView dataView, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) +208
   Telerik.Web.UI.GridDataSourceHelper.CreateGridEnumerable(GridTableView owner, IEnumerable enumerable, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) +71
   Telerik.Web.UI.GridDataSourceHelper.GetResolvedDataSource(GridTableView owner, Object dataSource, String dataMember, Boolean caseSensitive, Boolean autoGenerateColumns, GridColumnCollection presentColumns, String[] additionalField, Boolean retrieveAllFields, Boolean enableSplitHeaderText) +103
   Telerik.Web.UI.GridTableView.get_ResolvedDataSource() +163
   Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource) +33
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +66
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +128
   System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +33
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +143
   Telerik.Web.UI.GridTableView.PerformSelect() +16
   System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +74
   Telerik.Web.UI.GridTableView.DataBind() +260
   Telerik.Web.UI.RadGrid.DataBind() +87
   Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +2435
   Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +130
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean 
Abbas
Top achievements
Rank 1
 answered on 14 May 2014
7 answers
605 views
Hi

I am getting the following error when trying to access certain examples on the development server:

"

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

"

I suspect this is happening due to not installing the SQL database that came with Telerik?
The reason for this is that I already have a SQL Express server running.

How do I get the database for these examples into my instance of SQL Express??

Thanks


Vikas
Top achievements
Rank 1
 answered on 14 May 2014
13 answers
669 views
Hi

I have a radGrid with a template column:

<telerik:GridTemplateColumn UniqueName="colPrimaryProcedure" HeaderText="" ItemStyle-HorizontalAlign="Center"><HeaderStyle  HorizontalAlign="Center"  />
                                                                       <ItemTemplate>
                                                                           <asp:checkbox ID="chkPrimary" runat="server"  />
                                                                       </ItemTemplate>
                                                                   </telerik:GridTemplateColumn>

The values in this grid also appear later down the page in a combo box. What I'm trying to do is if a checkbox is selected the same value in the combo box is also selected.

I can do this Server side, but how do I achieve this on the client. I can't find the selected value corresponding to the ticked item in the grid.

Only 1 tickbox in the grid can be true at any one time. (this is working OK)

Andy
Andy Green
Top achievements
Rank 2
 answered on 14 May 2014
11 answers
188 views
Hello friends, 

i have an issue here. as we know, checkbox's inside radgrid dont work properly(we have to put checkbox cell on edit mode, otherwise we cant update checkbox value unless we select the row first), so i made a simple js script + add an atribute to the checkbox to put it in edit mode with onmouseenter:

vb:
Dim chk As CheckBox = DirectCast(item("BlockCheck").Controls(0), CheckBox)
chk.Enabled = True
chk.Attributes.Add("onmouseenter", "changeEditor(this)")

js:
function changeEditor(sender) {
    var grid = $find("<%=RadGrid1.ClientID%>");
    var cell = Telerik.Web.UI.Grid.GetFirstParentByTagName(sender, "td");
    var batchManager = grid.get_batchEditingManager();
    grid.get_batchEditingManager().openCellForEdit(cell);
}

aspx:
<telerik:GridCheckBoxColumn DataField="BlockCheck" UniqueName="BlockCheck" AutoPostBackOnFilter="true">
    <HeaderStyle ForeColor="Black" Width="20%"></HeaderStyle>
</telerik:GridCheckBoxColumn>
<telerik:GridTemplateColumn DataField="BlockCheck" Visible="false">
            <ItemTemplate>
               <asp:CheckBox ID="Cb1" Checked='<%# Eval("BlockCheck")%>' runat="server"/>
            </ItemTemplate>
            <EditItemTemplate>
              <asp:CheckBox ID="Cb2" Checked='<%# Bind("BlockCheck")%>' runat="server" />
           </EditItemTemplate>
</telerik:GridTemplateColumn>

the issue is: this works wonderfull on chrome and firefox, but on internet explorer, this keeps bugging the state of the checkbox, after i changed it. its like, loosing the state on mouseout/disable celleditmode(??)
onmouseover also dont work on ie. can you guys help? 

thanks in advance,
Mike
MikeS
Top achievements
Rank 1
 answered on 14 May 2014
5 answers
589 views
Hello,

I have a grid that is already defined, with several columns, in the markup. Based on the data returned I may have to dynamically add additional columns to this grid. The additional columns can potentially have spaces in them. When setting the SortExpression property on the dynamically created GridBoundColumn I am wrapping the string value in brackets, for example GridBoundColumn.SortExpression = "[Dynamic Column Name]".

When I sort by this column I am getting the following error: [Dynamic Column Name] is neither a DataColumn nor a DataRelation for table Table.

I am creating the columns on page load when IsPostBack = false.

Any idea on how to get these things to sort?

Thanks!
Kostadin
Telerik team
 answered on 14 May 2014
0 answers
176 views
I want sample code to sending sms through way2sms/fullonsms
pls help me......
NA
Top achievements
Rank 1
 asked on 14 May 2014
1 answer
148 views
Is it possible to use the poster when a video is not playing as place holder?

The poster shows up in playlist but I would like it also to be in place when the play button is shown.

Markus
Eyup
Telerik team
 answered on 14 May 2014
1 answer
272 views
When using combobox with RenderMode="Lightweight" and DropDownAutoWidth="Enabled" it renders two vertical scrollbars.

E.g. see attached image for the code below (data source is Dictionary<string,string>)
<telerik:RadComboBox ID="rcbCountry" runat="server"
    AppendDataBoundItems="true"
    DataSourceID="CountriesDataSource" DataTextField="Value" DataValueField="Key"
    Width="100px" DropDownAutoWidth="Enabled"
    RenderMode="Lightweight">
    <Items>
        <telerik:RadComboBoxItem Text="All" />
    </Items>
</telerik:RadComboBox>
Aneliya Petkova
Telerik team
 answered on 14 May 2014
1 answer
96 views
Currently radGrid doesn't provide paging based on visual (not collapsed) rows. E.g. go to http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/grouping/grouping/defaultcs.aspx, collapse all 3 "Received" groups and radGrid show three rows only but pager reads "Item 1 to 20 of 52". Thus, if there are many groups then there is no way to see other groups on the current page by collapsing them - the only way is to go to another page which pretty inconvenient and annoying.

I'd like to have functionality similar to http://demos.devexpress.com/ASPxgridviewDemos/GroupingSorting/Grouping.aspx - try to collapse countries.

Do you have a workaround to achieve that or any plans to implement this feature?
Radoslav
Telerik team
 answered on 14 May 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?