Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
153 views
I noticed that after I submit a form that fails validation, my window (with autosize="true" set) does not auto-resize to account for the validation summary.

In my click event, I am trying to call autoSize() directly if IsValid id false without much success.  

private void Save_Click(object sender, EventArgs e)
        {
            if (this.IsValid)
            {
                    // save
            }
            else
            {
                    string autoSize = "getRadWindow().autoSize(true);";
                    // Register a startup script which will manually call autoSize() on radWindowActivity
                    RadScriptManager.RegisterStartupScript(
                    this,
                    this.GetType(),
                    "resizeWindow",
                    autoSize,
                    true);
            }

Neil
Top achievements
Rank 1
 answered on 05 Apr 2011
4 answers
159 views
Greetings,

 
 <telerik:RadTabStrip ID="RadTabStrip1" runat="server"   
SelectedIndex="0" MultiPageID="TabContainer1" Width="800px" >  
    <Tabs>  
    <telerik:RadTab runat="server" Text="tab1" PageViewID="tbpnl1" Selected="True" >  
    </telerik:RadTab>  
    <telerik:RadTab runat="server" Text="tab2" PageViewID="tbpnl2" >   
    </telerik:RadTab>  
    <telerik:RadTab runat="server" Text="tab3" PageViewID="tbpnl3" >  
    </telerik:RadTab>  
                                   
    </Tabs>  
</telerik:RadTabStrip>  
  
    <telerik:RadMultiPage ID="TabContainer1" runat="server" SelectedIndex="0"   
    Width="800px" Height="180px" >  
                              
    <telerik:RadPageView ID="tbpnl1" runat="server" Width="800px" Height="180px" >  
                                   
       <telerik:RadGrid ID="radgrid1" runat="server"  Width="800px" Height="180px"   
 
 
 

I'm using simple binding for radgrid, there is one grid in each pageview, as 1st load the page everything looking fine but  I am facing a problem when I click my asp:button to bind radgrids again, only the selected tab grid looks fine and other two grids are behaving like in img file
before(bfr.jpg) and after(aftr.jpg) clicking refresh button


Rony
Top achievements
Rank 1
 answered on 05 Apr 2011
5 answers
164 views
Hello,

I'm trying to create two ListBoxes, where items can be transferred from one ListBox to the other. The problem is that when items are transferred the items do not look like the original (they are missing the bound image). 

Here is the code I am using: 
     
                <telerik:RadListBox runat="server" ID="RadActorListBoxSource" Height="400px" Width="300px"
                    AllowTransfer="true" AllowTransferOnDoubleClick="true" ButtonSettings-ShowTransferAll="false"
                    EnableDragAndDrop="true" TransferToID="RadActorListBoxDestination" SelectionMode="Multiple"
                    DataSourceID="LinqDataSource4" CausesValidation="false" TransferMode="Move" DataValueField="ActorId">
                    <ItemTemplate>
                        <div>
                            <telerik:RadBinaryImage runat="server" ID="ActorImage" Width="50px" DataValue='<%# ((Binary) Eval("ActorImage")).ToArray() %>'
                                AutoAdjustImageControlSize="False" />
                            <%#  Eval("Name") %>
                        </div>
                    </ItemTemplate>
                </telerik:RadListBox>
                <telerik:RadListBox runat="server" ID="RadActorListBoxDestination" Height="400px"
                    Width="300px" EnableDragAndDrop="true" TransferMode="Move" SelectionMode="Multiple"
                    EmptyMessage="Please select at least one actor" CausesValidation="true" ValidationGroup="addSceneSubmit">
                    <ItemTemplate>
                        <div>
                            <telerik:RadBinaryImage runat="server" ID="ActorImage" Width="50px" DataValue='<%# ((Binary) Eval("ActorImage")).ToArray() %>'
                                AutoAdjustImageControlSize="False" />
                            <%#  Eval("Name") %>
                        </div>
                    </ItemTemplate>
                </telerik:RadListBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="RadActorListBoxDestination"
                    ErrorMessage="Please select at least one actor" ValidationGroup="addSceneSubmit">
                </asp:RequiredFieldValidator>
<asp:LinqDataSource ID="LinqDataSource4" runat="server" ContextTypeName="DataClassesDataContext"
        OrderBy="Name" Select="new (ActorId, Name, ActorImage)" TableName="Actors">
    </asp:LinqDataSource>

Any ideas what is going on? 

Thanks,
Zeyad
Helen
Telerik team
 answered on 05 Apr 2011
6 answers
264 views
Hi,

I have fully ajaxified app, inside 1 dynamically loaded user control I have async upload:
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUploadElementAttachments"  MultipleFileSelection="Automatic"<BR>                        
MaxFileInputsCount="5" MaxFileSize="31457280" InputSize="50"  Width="100%"  OnFileUploaded="RadAsyncUploadElementAttachments_FileUploaded"<BR>                        
OnClientFilesUploaded="onClientFilesUploaded"  OnClientFileUploading="onClientFileUploading"  TemporaryFolder="" ></telerik:RadAsyncUpload>

Above I have:

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

Once I upload file, polling starts and contunies (I can see in Fiddler constant requests to /Telerik.RadUploadProgressHandler.ashx
When I upload another file, polling speed increases, I believe it's because getRadProgressManager().startProgressPolling();  is called again, another file upload - again, speed of polling increases.

ProgressManager and ProgressArea are in masterpage and are outside of any update panels:
<telerik:RadProgressManager ID="Radprogressmanager1" runat="server" RegisterForSubmit="false"  />
    <telerik:RadProgressArea ID="progressArea1" runat="server" Culture="(Default)" Height="200px" Skin="Default" Width="400px" style="position: absolute !important; top: 300px !important; left: 280px !important; z-index:10100 !important;"  />

Question is:how to stop it from polling, I would like to start/stop polling manually (this will also solve poll speed increase issue, I think)?

P.S.: getRadProgressManager().hideProgressAreas(); is commented out cause progress area automatically disappears when upload has completed. Also when I load another user control polling speed drops to initial speed (first file upload case)

Thanks!
Shukhrat Nekbaev
Top achievements
Rank 1
 answered on 05 Apr 2011
2 answers
168 views
In the AdvancedInsertTemplate, if you use a radcombobox, expand it, and scroll with the mouse while its expanded, the list breaks from the combobox. You can view this occurance going here:
 http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx then
Edit an appointment then expand or drop down  reminder or  room radcomboboxes. Afterwards, scroll with your mouse while its expanded.

I believe the issue is that the radscheduler is not modal.  If we can set the radscheduler to modal or not move in the background that would be great.

Jeremy
Kalina
Telerik team
 answered on 05 Apr 2011
0 answers
73 views
If I select a TimeSlot in javascript code, get_selectedSlots() does not update correctly.

function TimeSlotContextMenu(sender, eventArgs) {
        var RadScheduler = $find("<%= RadScheduler.ClientID %>");
        // RadScheduler.get_selectedSlots().length = 1
        eventArgs.get_targetSlot().set_selected(true);
        // RadScheduler.get_selectedSlots().length still = 1
}

I'm using 2010.3.1109.40 version.
Jorge
Top achievements
Rank 1
 asked on 05 Apr 2011
5 answers
153 views
I have a Parent RadGrid, you can click on the Rows and the child rad grid will appear. You can then go and add items to the child grid, once a new item is inserted I need to rebind the parent grid but still maintain the originally selected row.

I have the folllowing code, it rebinds the parent gird but i lose my selected row.

Protected Sub rgRiskAssessmentItems_ItemInserted(ByVal source As Object, ByVal e As Telerik.Web.UI.GridInsertedEventArgs) Handles rgRiskAssessmentItems.ItemInserted
        If Not e.Exception Is Nothing Then
            e.ExceptionHandled = True
            e.KeepInInsertMode = True
            SetMessage("Risk Assessment Item cannot be inserted. Reason: " + e.Exception.Message)
        Else
            SetMessage("New Risk Assessment Item has been added!")
            'Make sure we get a submit button in the top grid after adding an item to the lower grid
            rgRiskAssessment.Rebind()
            'rgRiskAssessmentItems.Rebind()
 
        End If
 
    End Sub

Thanks for reading..
Pavlina
Telerik team
 answered on 05 Apr 2011
3 answers
162 views
Hi,
I want to change autocomplete extender from ACT with RadComboBox ( because of loading on demand and virtual scrolling ). Loading and scrolling is working correctly. But I am populating data from WebServis and I need to send additional info to webservis ( like contextKey in autocompleteextender ) -  this value can be set from codebehind and I also need OnClientItemSelectedEvent ( when I hoover over item in combobox I want to show additional info about that item ).

Another thing I dont understand is: in aspx page I set parameter ItemsPerRequest, but how can I get that value in webservis??
In ace it is a parameter for web servis method - method signature ( string prefixText, int count, string contextkey ).

Is there a way how to do this??

Thanks in advance
Dimitar Terziev
Telerik team
 answered on 05 Apr 2011
3 answers
93 views
Using RadMenuTelerik Version 2011.1.315.40 in Internet Explorer 9.

When hovering over a menu Item Group that has a seperator in it:  The menu will dropdown but the first menu item's text will shift 2 or more pixels down (after the seperator).  Is there a fix for this?

This menu item is fine.
<Item IsSeparator="True" />
This menu item's text will display then shift down a few pixels.

Thanks,

Mike
Kate
Telerik team
 answered on 05 Apr 2011
3 answers
155 views
Hi forums,

I have a working rotator (type CarousselButtons) with images (in colors).

I was wondering. Is there any chance (by using the client API or the like), that I can only show the current item index image in colors and the others (not current item index) in say semi transparent...maybe apply the semi transparent-ness at the client side..

Basically my need is to "highlight" the current index and to put the other indexes "away"..

Hope this post is meaningful..

Regards

Henrik
Marin Bratanov
Telerik team
 answered on 05 Apr 2011
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?