or
| namespace Elevate.DBSchema | |
| { | |
| public class DBStore : System.Web.UI.Page | |
| { | |
| private string _localConn; | |
| private string _userConn; | |
| public string userConn | |
| { | |
| get { return _userConn; } | |
| } | |
| public string localConn | |
| { | |
| get { return _localConn; } | |
| } | |
| protected override void OnLoad(EventArgs e) | |
| { | |
| if ((Session["userConn"] == null) || (Session["localConn"] == null)) | |
| { | |
| FormsAuthentication.SignOut(); | |
| Response.Redirect("/login.aspx"); | |
| } | |
| else | |
| { | |
| _localConn = Session["localConn"].ToString(); | |
| _userConn = Session["userConn"].ToString(); | |
| } | |
| base.OnLoad(e); | |
| } | |
| } | |
| } | |
| namespace Elevate | |
| { | |
| public partial class WebForm10 : DBSchema.DBStore | |
| { | |
| protected void loadGroups(object sender, GridNeedDataSourceEventArgs e) | |
| { | |
| SqlConnection conn = new SqlConnection(userConn); | |
| SqlCommand comm = new SqlCommand("SELECT * FROM [elevate_marketing_Groups]", conn); | |
| SqlDataReader reader; | |
| DataTable dt = new DataTable(); | |
| try | |
| { | |
| conn.Open(); | |
| reader = comm.ExecuteReader(); | |
| dt.Load(reader); | |
| reader.Close(); | |
| RadGrid1.DataSource = dt; | |
| } | |
| catch (Exception exc) | |
| { } | |
| finally | |
| { | |
| conn.Close(); | |
| } | |
| } | |
| } | |
| } |

| <telerik:GridDropDownColumn |
| DataField="CategoryId" |
| HeaderText="Category" |
| UniqueName="CategoryId" |
| ListTextField="CategoryName" |
| ListValueField="CategoryId" /> |
| protected void uxApplicationGrid_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) |
| { |
| if (e.Item is GridEditableItem && e.Item.IsInEditMode) |
| { |
| GridEditableItem editedItem = e.Item as GridEditableItem; |
| GridEditManager editMan = editedItem.EditManager; |
| GridDropDownColumnEditor editor = editMan.GetColumnEditor("CategoryId") as GridDropDownColumnEditor; |
| string selectedValue = editor.SelectedValue; |
| editor.DataSource = CategoryDAL.GetCategorys(); // get List<> back from DAL |
| editor.DataBind(); |
| } |
| } |
Hi,
There is a problem in scheduler day view while stretching the appointment which raise "OnClientAppointmentResizeEnd" client side event. If this event is cancelled by setting " eventArgs.set_cancel(true) ", it increases scheduler height and shows vertical scrollbar with stretching the appointment block upto the scheduler height.
Thanks
Venu