Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
161 views
Hi,

I am trying to change Items' font to "Tahoma" without changing the skin. I tried setting Font-Names on the ListBox, on every item (programmatically, Font.Names and Font.Name, even "Font-family:Tahoma;" in Style), no success. Please help. I also have this problem on DropDown and DatePicker.


Thanks in advance,

Irene
Irene
Top achievements
Rank 2
 answered on 30 Jul 2009
4 answers
182 views
Hi and thank you for an excellent UI Component Library!

We're using it heavily in our development projects.

My case:
I'm using a Toolbar with Orientation = Vertical.
The last item in the Toolbar is a DropDown.
When I click the DropDown item the sub items of the DropDown will open in a list to the right of the DropDown item.
I would like the DropDown list to open beneath the DropDown item.

How can achieve this beaviour?

Thanks
Dave
Top achievements
Rank 1
 answered on 30 Jul 2009
1 answer
177 views
Hey Community,

I just wanted to pop in to see if anyone else has experienced an issue with Module Editors not having permissions to upload a file to the File System using the image editor (or other editor popups). We have been looking at this on our upgrade environment for our corporate intranet.

It seems that there is a deficiency in the (App_Code/TelerikWebUI/)RadEditorProvider.vb file that only allows READ permissions for module editors. So, unless you are an administrator you can't upload files. Seems to me that if you have access to an "Edit control" at all, you should be able to upload files to the file system.

Also the code simply throw's an error stating that you don't have permissions! I would imagine that Telerik may want to revisit this module simply because it doesn't have a nicer error page for end users, but really, I would challenge their thinking about how they are allowing access.

As for my time line,

I changed the bold line of code below. It works for now, and I can go back and re-factor it once our roll out is completed.

        Private Function CheckPermissions(ByVal virtualPath As StringByVal 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 
 

The bottom line is that I extended the Read permissions to include Upload permissions. The administrators are still the only people who have access to delete files from the file system and my module editors can upload files system wide now.

As for re-factoring the code, I plan to change this function to see if the parent page is an edit page, then allow uploads. I think that there is wisdom in granting delete privileges to administrators only - for my company anyway...

I hope that this post can help someone in some way. Also, as always, if I am missing something and there is a way to handle this without changing code could someone please point it out to me? I would absolutely welcome any constructive feedback with regard to this work around.

Kind Regards,

John
johnv
Top achievements
Rank 2
 answered on 30 Jul 2009
1 answer
104 views
I am trying to access the VisualRangeEnd and VisualRangeStart for querying my data to populate the Scheduler.  On PostBack I have a Scheduler_Populate subroutine but the VisualRangeEnd and VisualRangeStart is displaying the previous Range rather than what it was jsut changed to.  How do I access the new Range?
Vic
Top achievements
Rank 1
 answered on 30 Jul 2009
2 answers
101 views
after upgrading to the new version of Telerik I have this error on page contain RadAjaxManager control
when I try to assign RadAjaxManager   to a javascript variable , it say Error: 'ajaxManager' is undefined


 
while it is defined ,

I define it here
 Page.ClientScript.RegisterStartupScript(Page.GetType(), "manID", "var ajaxManager=" + ajaxMan.ClientID + ";  \n", true);


Sinan
Top achievements
Rank 1
 answered on 30 Jul 2009
0 answers
179 views
I am getting the below error when I am loading data from WCF service onDemand.

Microsoft JScript runtime error: 'length' is null or not an object

Any help is appreciated. I beleive it has to do with AJAX.

Thanks

Telerikuser
Top achievements
Rank 1
 asked on 30 Jul 2009
5 answers
246 views

Hello,
 Im finding myself in a dead-end can't understand the issue origin. I explain gradually and post my code blocks if you ask me to.
Using RadScheduler and a new Advanced Form edit template in it for inserting and editing of my appointments, following exactly the pattern as your demo shows (LINK).

My Resources are 3:
- Services    (let's say its the Room from your example)  presented as ResourceControl.ascx (RadComboBox with entries)
- Operators (it's Alex, bob, charly that are able to solve services) as ResourceControl.ascx (another RadComboBox)
- Users ( Only Radscheduler has this one, i don't put this one into AdvancedForm.ascx) i only need this on Session level (login etc)

Mainly it's the Services-Operator couples that defines appointments.

Before describe My issue: i have DayView grouped by Services (like rooms in your case) and once inserted the appointment the drag-n-drop edit is only possible for start/end (vertical only) you can't drag it on another service.

so all i do is controll on Appointment_Update event

        if ((e.Appointment.Resources.GetResourceByType("Service") as Resource).Key.ToString() != (e.ModifiedAppointment.Resources.GetResourceByType("Service") as Resource).Key.ToString() ) 
            e.Cancel = true

this works perfectly.
If i control the resources there're 3 on Appointment and 3 on ModifiedAppointment (Service,Operator and User respectively).
Notice doing so the AdvancedForm is of course not shown

But once the thing Goes on AdvancedForm the resources are LOST !

example: I open already inserted appointment and modify let's say Subject and click Update, if i debug the AdvancedForm.ascx.cs (i put the Update_Button_Click Event to control some things) during that, i see the Appointment object (passed from scheduler to here has it's resources and there're all 3 of them during Update_button_click. After that it goes till MainPage.aspx where scheduler is, and of course till Appointment_Update event. When it goes to IF sentence i wrote before the NullReference happens :

ModifiedAppointment.Resources.GetResourceByType("Service") = null     !!!

if i debug this , i see the original Appointment still has 3 resources (Service, Operator, User)
BUT then modifiedAppointment has ONLY 1 (User)

It's as the Binding inside AdvancedForm the Two of my resources (Service and Operator) they're being sucked away by AdvancedForm or being forgot to add inside ModifiedApointment or else ... 

i debugged deeply inside all events of AdvancedForm.ascx.cs and haven't found any remove or loss of these resources, but as soon as the code goes to main page to scheduler events , the modifiedAppointment has 2 (binded) resources lost.

I'm in jeopardy, please help me  >_<

Egor
Top achievements
Rank 1
 answered on 30 Jul 2009
1 answer
108 views

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

 

Kamen Bundev
Telerik team
 answered on 30 Jul 2009
2 answers
355 views
Hi! I have a grid which has binaryimagecolumn which binds data in sql db. My problem is I still can't display the image correctly in the grid, even if the object which corresponds into the binaryimagecolumn has a byte[] type in c# and image type in sql database.

markup:

<

 

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;

}

}



Hope I can fix the problem, Thanks!!

reynald lawrence
Top achievements
Rank 1
 answered on 30 Jul 2009
3 answers
181 views
I am trying to retrieve the filter client-side to pass to a dialog window being displayed.  I am calling the get_filterExpression() method on the MasterTableView but an empty string is being returned.  Is this a bug or does it require something special.

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;  
          

Please let me know how I can accomplish this.

Thanks

Stephen
Veli
Telerik team
 answered on 30 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?