or
Protected Sub RadGrid1_UpdateCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.UpdateCommand Dim item As GridEditableItem = TryCast(e.Item, GridEditableItem) Dim ein = item.GetDataKeyValue("EIN").ToString() Dim distributor = DbContext.Distributors.Where(Function(n) n.EIN = ein).FirstOrDefault() item.UpdateValues(distributor) Dim channel = DbContext.Channels.Where(Function(n) n.ChannelId = distributor.ChannelId).FirstOrDefault() If channel Is Nothing Then displayError("Distributor was not updated. Please enter a valid channelId.") Else() Try DbContext.SubmitChanges() Catch ex As Exception displayError("Record cannot be updated") End Try End IfEnd SubHow to set the backcolor ... it comes out white no matter what I try...
<telerik:RadNotification ID="NotifyNotClockedIn" runat="server" AutoCloseDelay="10000" VisibleTitlebar="false" Width="95%" Animation="Slide" EnableRoundedCorners="true" BackColor="Black" OnCallbackUpdate="NotifyNotClockedIn_Update" OnClientUpdated="OnClientUpdated" Height="225px" Position="TopCenter" EnableShadow="true" Title="Not Clocked In" AnimationDuration="5000"><telerik:RadGrid ID="radGrid1" runat="server" AllowPaging="True" AllowSorting="True" CellSpacing="0" GridLines="None" AllowCustomPaging="True" PageSize="50" Width="100%" Skin="Outlook" onneeddatasource="radGrid1_NeedDataSource" AutoGenerateColumns="False" OnItemCommand="radGrid1_ItemCommand" OnPreRender="radGrid1_PreRender"> <ExportSettings HideStructureColumns="true" /> <ClientSettings> <Selecting CellSelectionMode="None" EnableDragToSelectRows="True"></Selecting> <Scrolling SaveScrollPosition="false" AllowScroll="True" UseStaticHeaders="true" ScrollHeight="300px" /> </ClientSettings> <MasterTableView> <Columns> <telerik:GridBoundColumn Visible="false" UniqueName="id" HeaderText="id" DataField="id"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="name" SortExpression="name" HeaderText="Name" DataField="name"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="Dob" SortExpression="Dob" HeaderText="DOB" DataField="Dob" DataFormatString="{0:MM/dd/yyyy}"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="Creation_date" SortExpression="Creation_date" HeaderText="Request Date" DataField="Creation_date" DataFormatString="{0:MM/dd/yyyy}"> </telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="Status" SortExpression="Status" HeaderText="Test Status" DataField="Status"> </telerik:GridBoundColumn> </Columns> </MasterTableView> <ClientSettings EnablePostBackOnRowClick="true" Selecting-AllowRowSelect="true" AllowKeyboardNavigation="true" /></telerik:RadGrid>Hi ,
I have a image control inside the RadDock and Problem is image size is large , then Scrolling coming for RadDock. Is there any property to Autofit the image inside the RadDock. Please help
Thanks in Advance
Jesmon Joseph
<MasterTableView EditMode="EditForms" CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage">

[ClientScriptResource("MyControls.ImageControl", "MyControls.ImageControl.js")]public class ImageControl : Panel, IScriptControl{ private RadAsyncUpload AsyncUpload; protected override void OnInit(EventArgs e) { base.OnInit(e); AsyncUpload = new RadAsyncUpload(); AsyncUpload.OnClientAdded = "Added"; }}Type.registerNamespace("MyControls");MyControls.ImageControl = function () {}MyControls.ImageControl.prototype = { Added: function (sender, args) { alert('bla'); },}
MyControls.ImageControl.registerClass('MyControls.ImageControl', System.Web.UI.WebControls.Panel)