Checklist One|+- What is your age? | +- Age : Under 40 | | | +- Do you like cake? (Available answers : Yes, no) (Score: 3) | | | +- Do you like pie? (Available answers : Yes, no) (Score: 3) | | | +- Do you like cake more than pie? (Available answers : Yes, no, equally) (Score: 2) | +- Age : At or Over 40 | +- Do you like cake? (Available answers : Yes, no) (Score: 3) | +- Do you like pie? (Available answers : Yes, no) (Score: 3) | +- Do you like cake more than pie? (Available answers : Yes, no, equally) (Score: 2) | +- Do you diet often? | +- Answer : More or less, yes. | | | +- Does your love of cake and/or pie interfere with your dieting? (Available answers : Yes, no) (Score: 1) | | | +- Do you wish you loved cake and/or pie less? | | | +- Answer : It would help, yes. | | | | | +- Would you rather love cake or pie less? (Available answers : Cake, pie, both) (Score: 1) | | | +- Answer : No. Dieting is the price I pay to enjoy cake and/or pie. | | | +- Answer : Heck, no! You're crazy for even thinking that. | | | +- Are you offended at the thought of loving cake or pie less? (Available answers : Yes, no) (Score: 1) | | | +- Would you like some cake and/or pie right now? (Available answers : Yes, no) (Score: 1) | +- Answer : No, dieting is not something I need or want to do.
Checklist Two
|
+- Do you like coffee? (Available answers : Yes, no) (Score: 3)
|
+- Do you like tea? (Available answers : Yes, no) (Score: 3)
<telerik:RadListView ID="RadListView1" runat="server" AllowPaging="True" DataKeyNames="idutente" ItemPlaceholderID="Contenitore" PageSize="8" Width="700px" OnNeedDataSource="RadListView1_NeedDataSource"> <LayoutTemplate> <fieldset style="width: 700px; border:0px; background-color: #FFFFFF; background-image: none;" id="FieldSet1"> <div id="Contenitore" runat="server"> </div> </fieldset> </LayoutTemplate> <ItemTemplate> <div class="item-sponsor"> <asp:Image ID="Image1" runat="server" ImageUrl='<%# CType(Container.DataItem, PropertyUtente).imageprofile%>' CssClass="img"/> <span class="name"> <%# CType(Container.DataItem, PropertyUtente).utente%> </span> <span class="title"> <%# CType(Container.DataItem, PropertyUtente).Desccategoria%></span> </div> </ItemTemplate></telerik:RadListViewthis.ProvinciaRadComboBox.DataSource = DiccionarioDatos.provincias; // Provincia[]this.ProvinciaRadComboBox.DataTextField= "nombre";this.ProvinciaRadComboBox.DataBind(); //<---the error is raised hereHi all
I have a problem with an Telerik Grid.
Until I can editing direct in the Grid (with AJAX), i have the following problem:
If i’ll editing all data from a line, i go to a editing window with this command:
columns.Command(commands => { commands.Custom("editDetail") .ButtonType(type) .HtmlAttributes(new { @class = "editDetail" }) .Text("edit") .DataRouteValues(route => route.Add(o => o.GeschaeftID).RouteKey("GeschaeftID")) .Ajax(false) .Action("Edit", "Geschaeft"); }).Width(38).Title("");When i finished with the editing, i get back to the site with the Grid.
And now i‘ve lost all filters and sortings.
If i don’t need the AJAX for edting direct in the Grid i don’t loosing the filter and sortings.
I guess the problem ist by the AJAX.
Do you have an idea, what to do that i don't lose the filters and sortings when i using AJAX?
This is my Code:
@(Html.Telerik().Grid<Model>() .Name("Grid") .DataKeys(keys => keys.Add(c => c.GeschaeftID)) .ToolBar(commands => { commands.SubmitChanges(); }) .DataBinding(dataBinding => dataBinding.Ajax() .Select("_Index", "Geschaeft") .Update("_SaveBatchEditing", "Geschaeft") ) .Columns(columns => { columns.Command(commands => { commands.Custom("editDetail") .ButtonType(type) .HtmlAttributes(new { @class = "editDetail" }) .Text("edit") .DataRouteValues(route => route.Add(o => o.GeschaeftID).RouteKey("GeschaeftID")) .Ajax(false) .Action("Edit", "Geschaeft"); }).Width(38).Title(""); columns.Bound(o => o.xy) .ClientTemplate("<#=xy? 'ja' : 'nein' #>") .Title("A") .HeaderHtmlAttributes(new { title = "xy" }) .Width(12); columns.Bound(o => o.xz) .Width(84) .Title("xz") .ReadOnly() .ClientTemplate("<#=xz#>"); columns.Bound(o => o.xf) .Title("xf") .Width(250) .ReadOnly(); }) .DetailView(details => details.ClientTemplate( Html.Telerik().Grid<Model>() .Name("V") .Columns(columns => { columns.Bound(o => o.vx) .Width(90) .Title("vx") .ReadOnly(); columns.Bound(o => o.vz) .Title("vz") .ReadOnly(); }) .DataBinding(dataBinding => dataBinding.Ajax() .Select("_DetailViewAjax", "Geschaeft", new { geschaeftID = "<#= GeschaeftID #>" })) .ToHtmlString() )) .ClientEvents(events => events .OnDataBinding("Grid_onDataBinding") .OnError("Grid_onError")) .Editable(editing => editing.Mode(GridEditMode.InCell)) .Scrollable(scrolling => scrolling.Enabled(false).Height("auto")) .TableHtmlAttributes(new { style = "table-layout = fixed" }) .Resizable(resizing => resizing.Columns(true)) .Sortable() .Filterable() .Groupable() .Pageable(paging => paging .PageSize(ViewBag.PageSize) .Style(GridPagerStyles.Status) .Position(GridPagerPosition.Bottom) ) )I want my GridCheckBoxColumn on insert is visible=false
But in EditMode i want the GridCheckBoxColumn visible=true
How do i that?
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="tabNavigate.aspx.cs" Inherits="tabNavigate" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><!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"> <title></title> <link href="StyleSheet2.css" rel="stylesheet" type="text/css" /> <link href="TabStrip.WebBlue.css" rel="stylesheet" type="text/css" /> <link href="Ajax.Office2010Silver.css" rel="stylesheet" type="text/css" /></head><body> <form id="form1" runat="server"> <telerik:RadScriptManager ID="Rd" runat="server"> </telerik:RadScriptManager> <div> <telerik:RadTabStrip ID="rdtabPersonalDetails" runat="server" UnSelectChildren="True" AutoPostBack="true" OnTabClick="rdtabPersonalDetails_Click" Skin="WebBlue" EnableEmbeddedSkins="False" ClickSelectedTab="True" SelectedIndex="0"> <Tabs> <telerik:RadTab runat="server" Text="Overview"> </telerik:RadTab> <telerik:RadTab runat="server" Text="Personal"> </telerik:RadTab> <telerik:RadTab runat="server" Text="Contact"> </telerik:RadTab> <telerik:RadTab runat="server" Text="Salary"> </telerik:RadTab> <telerik:RadTab runat="server" Text="Bank"> </telerik:RadTab> <telerik:RadTab runat="server" Text="Taxes"> </telerik:RadTab> </Tabs> </telerik:RadTabStrip> </div> </form></body></html>using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Telerik.Web.UI;public partial class tabNavigate : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { } protected void rdtabPersonalDetails_Click(object sender, RadTabStripEventArgs e) { RadTab tab1 = new RadTab(); switch (e.Tab.Text) { case "Overview": tab1.NavigateUrl = "Default1.aspx"; break; case "Personal": tab1.NavigateUrl = "Default2.aspx"; break; case "Contact": tab1.NavigateUrl = "Default3.aspx"; break; case "Salary": tab1.NavigateUrl = "Default4.aspx"; break; case "Bank": tab1.NavigateUrl = "Default5.aspx"; break; case "Taxes": tab1.NavigateUrl = "Default6.aspx"; break; } }}
Need some direction on how to implement this. Any and all assistance is greatly appreciated!
Have a rather abstract business problem, but is huge in my company, so I’m translating it into something simpler to understand.
We’ve collected data on how much coffee people drink, on a daily basis, and need to chart it, showing how much they actually consumed compared to what they should have consumed.
The Data looks like this:
Person DateExamined Budgeted Cups Actual Cups Consumed
Fred 3/1/13 2 1
Fred 3/2/13 2 4
Fred 3/3/13 2 2
Bob 3/1/13 3 5
Bob 3/2/13 3 4
Bob 3/3/13 3 5
Steve 3/1/13 1 1
Steve 3/2/13 1 0
Steve 3/3/13 1 0
So by looking at the data we can see how much coffee people actually drank, compared to what they were supposed (budgeted) to drink, on a daily basis.