Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 views
Hi.

I have a GridClientSelectColumn in my grid. The feature I need is the following:
When SELECT ALL checkbox is checked or unchecked, before it performs the action, confirmation message is required, depending on the status:
"Are you sure you want to ...(select/deselect all entries)"
.

How do I accomplish that?
Thanks!
Shinu
Top achievements
Rank 2
 answered on 31 Jul 2009
2 answers
97 views
I have a page that is fully decorated with the FormDecorator. There is a Delete button that on page load is disabled and the style is good.  After a user action on the page, when in edit mode, the button is enabled via the client side JavaScript without  a postback. The button retains it's original disabled style.

If I try something like this, it works partially, better in FF than IE 8 when using the WebBlue theme as an example...

...

var

 

delBtn - get the button reference...

 

 

//find the decorated container and set the skin.

 

delBtn.parentNode.className =

'RadForm_WebBlue.rfdButton';
...

Any advice?

Thanks.

 

ZSN
Top achievements
Rank 1
 answered on 31 Jul 2009
1 answer
138 views
Hi. I have a two column page. When trying to display a RadTabStrip inside the second column it always breaks to the first. Here is my code below:

<form id="form1" runat="server">  
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
        </telerik:RadScriptManager> 
        <div style="float: left">  
            <h1> 
                LEFT</h1> 
        </div> 
        <div> 
            <h1> 
                MAIN</h1> 
            <telerik:RadTabStrip runat="server" ID="rtsNews" Skin="Simple" Orientation="HorizontalTop" 
                SelectedIndex="0" MultiPageID="rmpNews">  
                <Tabs> 
                    <telerik:RadTab Text="Corporate">  
                    </telerik:RadTab> 
                    <telerik:RadTab Text="Products">  
                    </telerik:RadTab> 
                    <telerik:RadTab Text="Services">  
                    </telerik:RadTab> 
                </Tabs> 
            </telerik:RadTabStrip> 
            <telerik:RadMultiPage runat="server" ID="rmpNews" SelectedIndex="0" Height="218px" 
                Width="396px">  
                <telerik:RadPageView runat="server" ID="RadPageView1">  
                    <ul> 
                        <li>Corporate Info</li> 
                        <li>Press Center</li> 
                        <li>Customers</li> 
                        <li>Awards</li> 
                    </ul> 
                </telerik:RadPageView> 
                <telerik:RadPageView runat="server" ID="RadPageView2">  
                    <ul> 
                        <li>RadControls for ASP.NET</li> 
                        <li>RadControls for WinForms</li> 
                        <li>Telerik Reporting</li> 
                        <li>Sitefinity CMS</li> 
                    </ul> 
                </telerik:RadPageView> 
                <telerik:RadPageView runat="server" ID="RadPageView3">  
                    <ul> 
                        <li>Enterprise Services</li> 
                        <li>Enterprise Account Manager</li> 
                        <li>On-site Training</li> 
                        <li>GoToMeeting Sessions</li> 
                    </ul> 
                </telerik:RadPageView> 
            </telerik:RadMultiPage> 
        </div> 
    </div> 
    </form> 
Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 31 Jul 2009
1 answer
146 views
I know this is really basic coding, have searched around here cannot find an answer... I need to change the value of a data cell if a condition is met, the column is say InvoiceStatusID, say it has a value of "O" if that condition is met I just need to change the output to "Invoice" the code I have tried obviously doesn't work and I'm new to ASP.NET.
    Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated 
        Dim dataItem As GridDataItem = Nothing 
        Dim data As Data.DataRowView = Nothing 
        Try 
 
            If TypeOf e.Item Is GridDataItem Then 
 
                dataItem = CType(e.Item, GridDataItem) 
                data = CType(dataItem.DataItem, Data.DataRowView) 
 
 
                If CType(data.Row.Item("InvoiceStatusID"), String) = "O" Then 
                    CType(data.Row.Item("InvoiceStatusID"), TextBox).Text = "Invoice" 
                Else 
                    CType(data.Row.Item("InvoiceStatusID"), TextBox).Text = "Closed" 
                End If 
 
            End If 
        Catch ex As Exception 
 
        Finally 
 
            dataItem = Nothing 
            data = Nothing 
        End Try 
    End Sub 
.. be kind lol, here is what doesn't work:
Mark
Top achievements
Rank 1
 answered on 31 Jul 2009
0 answers
63 views

I am using RadProgress Area with FileUpload Control. When I try to upload large files it takes very long time to display the progress area and in the browser (FireFox) I can see the "transferring data from <websitename>...." message during that period.

Can anyone help me to fix this issue to get the progress area sooner?



-Nad-
Nad Ran
Top achievements
Rank 1
 asked on 30 Jul 2009
2 answers
168 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
186 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
185 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 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 
 

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
115 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
106 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?