or
RadScheduler1.GroupBy = GroupByExpression;
private
string
GroupByExpression
{
get
{
return
GroupByTeacherCheckBox.Checked ?
"Teacher"
:
""
;
}
}
<
div
class
=
"left"
>
<
telerik:RadListBox
ID
=
"ticketListbox"
runat
=
"server"
ItemPlaceholderID
=
"TicketContainer"
EnableViewState
=
"False"
Font-Names
=
""Helvetica 65 Medium",Arial,sans-serif"
Font-Size
=
"Medium"
ForeColor
=
"#C36029"
Width
=
"275px"
AllowTransfer
=
"True"
TransferToID
=
"splitListbox"
AutoPostBackOnTransfer
=
"True"
SelectionMode
=
"Multiple"
ontransferred
=
"ticketListbox_Transferred"
>
<
ButtonSettings
TransferButtons
=
"All"
></
ButtonSettings
>
<
ItemTemplate
>
<
table
style
=
"font-family: Arial, Helvetica, sans-serif; font-size: medium; color: #C36029"
>
<
td
>
<%#Eval("Quantity")%>
</
td
>
<
td
>
<%#Eval("Name")%>
</
td
>
<
td
>
<%#Eval("Price","{0:c}")%>
</
td
>
</
table
>
</
ItemTemplate
>
</
telerik:RadListBox
>
</
div
>
<
div
class
=
"centerElements"
>
<
telerik:RadListBox
ID
=
"splitListbox"
runat
=
"server"
ItemPlaceholderID
=
"splitContainer"
EnableViewState
=
"False"
Font-Names
=
""Helvetica 65 Medium",Arial,sans-serif"
Font-Size
=
"Medium"
ForeColor
=
"#C36029"
Width
=
"275px"
AllowTransfer
=
"False"
>
<
ButtonSettings
TransferButtons
=
"All"
></
ButtonSettings
>
<
ItemTemplate
>
<
table
style
=
"font-family: Arial, Helvetica, sans-serif; font-size: medium; color: #C36029"
>
<
td
>
<%#Eval("Quantity")%>
</
td
>
<
td
>
<%#Eval("Name")%>
</
td
>
<
td
>
<%#Eval("Price","{0:c}")%>
</
td
>
</
table
>
</
ItemTemplate
>
</
telerik:RadListBox
>
</
div
>
protected
void
Page_Load(
object
sender, EventArgs e)
{
if
(!User.Identity.IsAuthenticated)
{
Response.Redirect(
"http://localhost:64501/LogOn.aspx"
);
}
if
(!Page.IsPostBack)
{
ticketListbox.DataBind();
splitListbox.DataBind();
}
}
protected
void
Button1_Click(
object
sender, EventArgs e)
{
CaffeBravoContext tc =
new
CaffeBravoContext();
int
tableNo = System.Convert.ToInt16(tableTextbox.Text);
var table = from t
in
tc.Tickets
where (t.Table==tableNo)&&
(t.Closed_==
false
)
select t;
if
(table.Count()==0)
{
statusLbl.Text=
"There is no open ticket for that table!"
;
}
else
{
var tickets = from d
in
tc.Ticket_Details
where d.Ticket_ == table.FirstOrDefault().Ticket_Number
select d;
ticketListbox.DataSource = tickets.ToList();
ticketListbox.DataBind();
}
}
protected
void
ticketListbox_Transferred(
object
sender, RadListBoxTransferredEventArgs e)
{
foreach
(RadListBoxItem item
in
e.Items)
{
item.DataBind();
}
}
}
}
.Item1 .rmSlide
{
left: 695px !important;
max-width: 200px !important;
min-width: 200px !important;
}