Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
144 views
Hello-

I am using a radgrid with a nested details grid. I am trying to do something that would seem rather simple. When the user clicks the expand button on a row  with details, any other row's expanded details will collapse. I have tried to collapse all rows in the itemCommand event, but have had no success. Here is my item command event:

Protected Sub grdAvailability_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles grdAvailability.ItemCommand

        If e.CommandName = "ExpandCollapse" Then

            Dim parentGrid = CType(source, RadGrid)

            For Each item As GridDataItem In parentGrid.Items

                item.Expanded = False

            Next

            grdAvailability.Items(e.Item.ItemIndex).Selected = True

        End If

    End Sub

This does not work. When I expand a new row, the details of the previous row are still expanded. Any Ideas on how this can be achieved?

Thanks
MFitzpatrick
Top achievements
Rank 1
 answered on 30 Jul 2010
1 answer
60 views
I have a RadComboBox with a list of possible items, and I'm trying to implement filtering (Filter = Constains) so as to search in any part of the item's text.

The problem is that the user is allowed to enter any text, and it's possible that the entered value is not in the item list. What I need is to clear combo's text when this happens, so as not to allow an invalid value to postback to the server.

Thanks for your help!
Jorge
Top achievements
Rank 1
 answered on 30 Jul 2010
3 answers
64 views
How do I show JUST the all day event block in the Schedulers Day\Week view?  My schedules are for vacations...which are always all day
sitefinitysteve
Top achievements
Rank 2
Iron
Iron
Veteran
 answered on 30 Jul 2010
0 answers
1.2K+ views
Symptoms: A log-in prompt is presented to the user upon uploading files and the site uses Windows Authentication. If the site is configured with Forms Authentication the upload will fail without error message.

Cause
: RadAsyncUpload will not send an authentication cookie when the end-user has Flash Installed.

Solution: Exclude the Telerik.Web.UI.WebResource.axd handler from authentication:

<location path="Telerik.Web.UI.WebResource.axd">
    <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</location>

Note: Anonymous authentication must be enabled on the site for this workaround to work. If AA is disabled, you must disable the RadAsyncUpload Flash module altogether by inserting this script right before the control definition on the page:

<script type="text/javascript">
    Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function() { return false; }
</script>

We're investigating the possibility to automatically send the authentication cookie.
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 30 Jul 2010
1 answer
146 views
Hi,

is there a way to show (maybe in scheduler's header) the current week number in both Week and Day view mode?

thanks in advance, bye

Leo
Peter
Telerik team
 answered on 30 Jul 2010
1 answer
99 views
Hi All,

I did search for related posts to this but couldn't find anything that seemed similar.

We have written a content management system using RadEditors that enables administrators to edit the content of various sections of their website. In basic terms, if the user is authenticated and authorised they see the full editor and can change the content sections. If they are not authenticated or not authorised they just see the text (not the editor). In the case where they don't have permission we set the Enabled property of the editor to False.

We are using version 2010.1.309.20 and I have yet to try this with the latest version.

We have noticed that when the editor is not Enabled there still appears to be quite a performance hit in the PreRender even though we would have thought that a lot of the processing should not be required as it just needs to display the content and not load any of the editing scripts. This is causing us problems on pages with lots of editors - as every user has the performance hit and not just the admins who are editing the content.

We tried a few examples using different combination of settings on the editor: Enabled=True/False and Visible=True/False.

Below is what we found by using Trace:

                                                               Category           Message                         From First(s)                    From Last(s)

(.Enabled = False     .Visible = False)    aspx.page           End PreRender                 0.113901169180098         0.000381

(.Enabled = False     .Visible = True)     aspx.page           End PreRender                 0.493980624395962         0.079942

(.Enabled = True      .Visible = True)     aspx.page           End PreRender                 0.300766392569965         0.125472


You can see that if the editor is Visible and Editable there is a bit of overhead but this is expected as there is a lot of functionality to load.
But if we set Enabled to False, then there is still quite a hit.
If the editor is not Visible then the hit is minimal.

So we thought about setting the Visible property to False just before the editor's PreRender is fired, and then set it to True straight afterwards. This worked, the non-editable content was displayed on the webpage as normal and the performance hit was minimal.

Is this something that has been addressed in a later version or if not can anything be done so that there is not such a bit hit when the editor is not Enabled.

Many thanks,
Andy




Rumen
Telerik team
 answered on 30 Jul 2010
4 answers
184 views
Hi,

How can I remove the underline from the tree nodes while hovering over?

Many thanks.
MG
FISCAL
Top achievements
Rank 1
 answered on 30 Jul 2010
1 answer
68 views
Hi,

I insert an image from image manager, it shows correct the path.  However, I am intending to have have full path (include the http:// and url) in the path.  How can I set this?

Kind Regards,

Duy
Rumen
Telerik team
 answered on 30 Jul 2010
2 answers
124 views
Hello,

I want to open a radwindow through radmenu. But its not working.

<telerik:RadAjaxManager runat="server">
</telerik:RadAjaxManager>
<telerik:RadWindowManager runat="server">
<Windows>
<telerik:RadWindow ID="RadWindowEmailClient" runat="server" ShowContentDuringLoad="false"
Behaviors="Close" AutoSize="true" VisibleStatusbar="false" Title="Create New Customer Party"
Animation="Slide" Skin="Vista">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>


<telerik:RadMenu ID="RadMenuIndex" runat="server" Style="padding-top: 20px; padding-bottom: 30px;"
EnableRoundedCorners="true" EnableShadows="true" Skin="Web20" OnClientItemClicked="openRadWin">
</telerik:RadMenu>

javascript function is as follows:
<script type="text/javascript">
//<![CDATA[
function openRadWin(sender, eventArgs) {
//var selectedImportType = eventArgs.item.value();
window.radopen("Search.aspx", 'RadWindowEmailClient');
return false;
}
//]]>                                                                        
</script>

Also the errormessage is attached in the image. Can you please let me know why this error is comming in ?
prayag ganoje
Top achievements
Rank 1
 answered on 30 Jul 2010
2 answers
100 views
hi, i'm trying enabling and disabling the editor with javascript but i havent results
I'm trying with

 var editor = $find("<%=RadEditor1.ClientID%>");
  editor.enabled(false);

or

editor.enabled=false;

but nothing ¿how can i do this?
thanks
Rumen
Telerik team
 answered on 30 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?