| Private Function CheckPermissions(ByVal virtualPath As String, ByVal permissions As Telerik.Web.UI.Widgets.PathPermissions) As Boolean |
| If String.IsNullOrEmpty(virtualPath) Then |
| Return False |
| End If |
| Dim fPermissions As Telerik.Web.UI.Widgets.PathPermissions |
| Dim path As String = Context.Server.MapPath(virtualPath) |
| Dim PortalSettings As DotNetNuke.Entities.Portals.PortalSettings = DotNetNuke.Entities.Portals.PortalController.GetCurrentPortalSettings() |
| If Directory.Exists(path) Then |
| If (PortalSettings.ActiveTab.ParentId = PortalSettings.SuperTabId) Then |
| path = path.Substring(DotNetNuke.Common.Globals.HostMapPath.Length) |
| Else |
| path = path.Substring(PortalSettings.HomeDirectoryMapPath.Length) |
| End If |
| Dim fixedPath As String = path.Replace("\", "/").TrimEnd(New Char() {"/"c}) & "/" |
| Dim writeRoles As String = FileSystemUtils.GetRoles(fixedPath, PortalSettings.PortalId, "WRITE") |
| If (PortalSecurity.IsInRoles(writeRoles)) Then |
| fPermissions = fPermissions Or Telerik.Web.UI.Widgets.PathPermissions.Upload Or Widgets.PathPermissions.Delete |
| End If |
| Dim readRoles As String = FileSystemUtils.GetRoles(fixedPath, PortalSettings.PortalId, "READ") |
| If (PortalSecurity.IsInRoles(readRoles)) Then |
| fPermissions = fPermissions Or Telerik.Web.UI.Widgets.PathPermissions.Read Or Telerik.Web.UI.Widgets.PathPermissions.Upload |
| End If |
| End If |
| Return (fPermissions And permissions) > 0 |
| End Function |
| if ((e.Appointment.Resources.GetResourceByType("Service") as Resource).Key.ToString() != (e.ModifiedAppointment.Resources.GetResourceByType("Service") as Resource).Key.ToString() ) |
| e.Cancel = true; |
Hi
I am using combobox, but problem is it is not getting align to the postion i am setting expecting to. Whenever I put mouse over dropdown it is moving to the left side and when mouse is out , it goes back to previous position.
I am having simple code.... as follows
<
telerik:RadComboBox ID="ddlGroup" runat="server" BorderStyle="None"
AllowCustomText="false" EnableTextSelection="false"
ShowToggleImage="true" Skin="Outlook" Width="184px" >
</telerik:RadComboBox>
Please Suggest the way to fix it. I want it should not move from its position.
Thanks and Regards,
Pradip

<
telerik:GridBinaryImageColumn DataField="PictureImg" HeaderText="Image" UniqueName="PictureImg"
ImageAlign="Middle" ImageHeight="200px" ImageWidth="200px" ResizeMode="Fit">
<HeaderStyle Width="10%" />
codebehind:
protected class PictureTemplate
{
public Guid PictureID { get; set; }
public string PictureName { get; set; }
public byte[] PictureImg { get; set; }
public string PictureDesc { get; set; }
}
protected void RadGrid1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
List<PictureTemplate> picTemplate;
using (DianaOnlinePhotoEntities db = new DianaOnlinePhotoEntities())
{
picTemplate = (
from p in db.tblPicture
where p.PictureID != null
select new PictureTemplate
{
PictureID = p.PictureID,
PictureName = p.PictureName,
PictureImg = p.PictureImg,
PictureDesc = p.PictureDesc
}).ToList();
RadGrid1.DataSource = picTemplate;
}
}
| function GetFilterData() { |
| var filterString = ""; |
| var filter = $find(GridMasterView).get_filterExpressions(); |
| for (var i = 0; i < filter.length; i++) |
| filterString += filter[i].get_columnUniqueName() + "~" + expression.get_fieldValue() + "~"; |
| return filterString; |
| } |