Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
99 views
Hello,

I've been developing for sharepoint 2010 a aplication where i use a radscheduler. The schdualer will be showned on a sharepoint pop up. Here at my company, the schedualer works fine and i have no problem whatsoever. The problem comes when i try this out at the client server.

 

Both servers, at my company and client, the specs are identical:
Windows Server 2008 R2 Standard de 64 bits

IIS 7.5

EDIT: We're using IE8 as the testing browser.

The image in attachment, reflects whats happening at the client.

Here is the code i'm using:

<telerik:RadScheduler ID="radSchedual" DataSourceID="odsSchedual" AllowDelete="true" AllowEdit="true" AllowInsert="true" DataEndField="EndDate"   
                          DataStartField="StartDate" DataKeyField="Id" DataSubjectField="Subject" FirstDayOfWeek="Monday" LastDayOfWeek="Friday" 
                          StartEditingInAdvancedForm="true" StartInsertingInAdvancedForm="true" SelectedView="WeekView" Skin="Vista" Height="550px">  
           
        <AdvancedForm Modal="true" /> 
        <AppointmentTemplate> 
            <div><%# Eval("Subject") %></div>  
        </AppointmentTemplate> 
    </telerik:RadScheduler> 
 
<asp:ObjectDataSource ID="odsSchedual" EnablePaging="false" OldValuesParameterFormatString="{0}" runat="server"    
                            SelectMethod="Get" UpdateMethod="Update" DeleteMethod="Delete" InsertMethod="Set" 
                            TypeName="Cil.ReunioesDigitais.Business.BoardMeetingBusiness, Cil.ReunioesDigitais.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9fcff07d8bed6e3a">  
        <InsertParameters> 
            <asp:Parameter DbType="Guid" Name="userGuid" /> 
        </InsertParameters> 
        <UpdateParameters> 
            <asp:Parameter DbType="Guid" Name="userGuid" /> 
        </UpdateParameters> 
    </asp:ObjectDataSource> 

I'm hoping some help in resolving this issue. I've search the web for a similar problem, but didnt find any.

Thank you for your time.

Peter
Telerik team
 answered on 07 Jul 2010
1 answer
77 views
I have a usercontrol using FileUpload and ProgressArea.
I checked and found that more other control on my usercontrol (textbox, label,...) is another larger discrepancies (about total size file upload on progress area).
Please help me resolve this problem.
Regards,
Genady Sergeev
Telerik team
 answered on 07 Jul 2010
3 answers
205 views
I am trying to set the pagertextformat from the codebehind.

I have tried doing so from the Page_Load and also from the NeedDataSource functions, but neither is working.

When I use set the format from the aspx page, it works fine.

Here is the line I am using:

gv.PagerStyle.PagerTextFormat =

"Page:{4} Page {0} of {1}";

 

Is there some other method I need to be using?

Grid code below.  Again, if I just put it inline with the grid declaration, it works fine.

Thanks.

<telerik:RadGrid ID="gv"   
                                        OnNeedDataSource="gv_NeedDataSource" 
                                        OnItemCommand="gv_OnItemCommand" 
                                        AllowMultiRowSelection="true"   
                                        PageSize="50"   
                                        Width="625px"   
                                        Skin="Windows7" 
                                        CssClass="Custom"    
                                        runat="server" > 
 
                                        <ClientSettings> 
                                            <Selecting AllowRowSelect="true" /> 
                                        </ClientSettings> 
                                          
                                        <MasterTableView DataKeyNames="messageID, messageRead" AutoGenerateColumns="False" Width="100%"  AllowSorting="true" AllowPaging="true" AllowCustomPaging="true" TableLayout="Fixed">  
                                          <PagerStyle  Mode="NextPrevAndNumeric"  Position="TopAndBottom" PageButtonCount="5"    /> 
                                            <Columns> 
                                                <telerik:GridClientSelectColumn HeaderStyle-Width="35px" ItemStyle-Width="35px" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"   /> 
                                                                                                 <telerik:GridTemplateColumn  SortExpression="Subject" UniqueName="Subject" EditFormColumnIndex="2">  
                                                    <ItemTemplate> 
                                                        <asp:LinkButton ID="lbMsg" Text='<%#Eval("subject")%>' runat="server" CommandArgument='<%#Eval("messageID")%>' CommandName="msg"/>  
                                                    </ItemTemplate> 
                                                </telerik:GridTemplateColumn> 
 
                                                <telerik:GridTemplateColumn  SortExpression="messageDate" UniqueName="Date" EditFormColumnIndex="3">  
                                                    <ItemTemplate> 
                                                        <%#GetDate(Eval("messageDate"), Eval("messageRead"))%> 
                                                    </ItemTemplate> 
                                                </telerik:GridTemplateColumn> 
 
                                            </Columns> 
                                        </MasterTableView> 
                                    </telerik:RadGrid> 
 
Angie
Top achievements
Rank 1
 answered on 07 Jul 2010
1 answer
75 views
I have a RadPane with contentURL set to a domain network path to a txt file containing text.

On my dev box when I run the app it is perfect. The content is displayed in the RadPane.

When I depoy the app and test the deployed version on my machine (server2008r2, ie8) it again displays the content in the RadPane as expected.

When i go to another user machine (win7, ie8) and run the app, the web page presents a dialog prompt asking the user to open or save the file. If they choose open it open the file in notepad. The content never gets displayed in the RadPane ???

any ideas?

thanks
jason

update: 6/6/2010  - was thinking of using File.Read(..) to just read the text file into a string. How could I then set the content of a RadPane to be the contents of the string.

string text = file.read(myfile);
radPane. ? = text;
Jason Bourdette
Top achievements
Rank 1
 answered on 07 Jul 2010
1 answer
113 views
Hello I'm adding controls to a radCalander and to TooltipManager dynamically.
the controls are added to the rad calander and to the TooltipManager on dayRender event. days added to the current displayed month displayed properly and are working properly,controls added to days beyond the 15 of the next month are added and displayed properly but do not invoke the tooltipManager.
I noticed they are beeing added with day render When U page to to the next month, and not on PageLoad like those who work properly.
Is there a solution to this problem or instructions on were to add tooltipmanager tooltips so that they will work on months beyond the current.
Svetlina Anati
Telerik team
 answered on 07 Jul 2010
3 answers
148 views
I have a grid with a MasterTable and a DetailsTable.

If I expand a row on the MasterTable I can, as you would expact, collapse it again.

If, however, I select a row in the DetailTable and then try and collapse the MasterTable row, I get the following JScript error (in IE8)...
"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Collection was modified; enumeration operation may not execute."

I haven't got any client-side script of my own so it's nothing I've done (at least, not knowingly).

FWIW, the error is reported 62,099 characters in to line 6 of MicrosoftAjax.js.

Anyone any ideas why?

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 07 Jul 2010
1 answer
208 views
I'm using Visual Studio 2010 Ultimate/Framework 4.0 final and "Telerik RadControls for ASP.NET Ajax 2010.1.415.40" in a normal web application.
I have a Templated asp:Login control inside a RadAjax Panel; like this:
                        <telerik:RadAjaxPanel ID="rap" runat="server" EnablePageHeadUpdate="false" LoadingPanelID="ralp" ClientEvents-OnRequestStart="function() {return false;}"
                            <asp:Login ID="l1" runat="server" onauthenticate="l1_Authenticate" onloggedin="l1_LoggedIn"
                                <LayoutTemplate> 
                                    <fieldset> 
                                        <div class="field"
                                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" /> 
                                            <asp:TextBox ID="UserName" runat="server" CssClass="text en" MaxLength="512" autocomplete="off" /> 
                                            <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" CssClass="validation-error"  
                                                ValidationGroup="Login1" SetFocusOnError="true" EnableClientScript="true" /> 
                                        </div> 
                                        <div class="field"
                                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" /> 
                                            <asp:TextBox ID="Password" runat="server" TextMode="Password" CssClass="text en"></asp:TextBox> 
                                            <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" CssClass="validation-error"  
                                                ValidationGroup="Login1" SetFocusOnError="true" EnableClientScript="true" /> 
                                        </div> 
                                        <div class="field"
                                            <asp:Label ID="RememberMeLabel" runat="server" Text="" AssociatedControlID="RememberMe" /> 
                                            <asp:CheckBox ID="RememberMe" runat="server" Text="" /> 
                                            <span class="validation-error">&nbsp;</span> 
                                        </div> 
                                        <asp:Panel ID="pnlCap" runat="server" Visible="false" class="field captcha"
                                            <asp:Label ID="lblEnterCaptchaCode" runat="server" AssociatedControlID="txtCaptchaCode" /> 
                                            <asp:TextBox ID="txtCaptchaCode" runat="server" CssClass="text en" Width="130" ValidationGroup="Login1" /> 
                                            <asp:RequiredFieldValidator ID="rfvCap" runat="server" ControlToValidate="txtCaptchaCode" CssClass="validation-error"  
                                                ValidationGroup="Login1" SetFocusOnError="true" /> 
                                            <br /> 
                                            <br /> 
                                            <telerik:RadCaptcha ID="captcha" runat="server" ValidationGroup="Login1" CaptchaAudioLinkButtonText=""  
                                                CaptchaTextBoxLabel="" EnableRefreshImage="True" CaptchaLinkButtonText="<span>تولید ØªØµÙˆÛŒØ± Ø¬Ø¯ÛŒØ¯</span>"  
                                                ValidatedTextBoxID="txtCaptchaCode"
                                                <CaptchaImage TextColor="#009900" EnableCaptchaAudio="True" FontFamily="Courier New" UseAudioFiles="True" LineNoise="Medium"  
                                                UseRandomFont="False" ImageAlternativeText="کد Ø§Ù…نیتی" Width="150" RenderImageOnly="True" /> 
                                            </telerik:RadCaptcha> 
                                        </asp:Panel> 
                                        <div class="buttons left"
                                            <asp:ImageButton ID="LoginButton" runat="server" CommandName="Login" CssClass="login-button" AlternateText="Log In" ImageUrl="http://cdn.samservice.dev/images/spacer.gif" 
                                                ValidationGroup="Login1" /> 
                                        </div> 
                                        <div class="message-field"
                                            <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal> 
                                        </div> 
                                    </fieldset> 
                                </LayoutTemplate> 
                            </asp:Login> 
                        </telerik:RadAjaxPanel> 

If I remove the ClientEvents-OnRequestStart="function() {return false;}" form RadAjaxPanel, the client-side validation only works the first time the page loads. The first time I use a wrong username/password to login, the page comes back with no validator attached! and from now on the page only will validate server-side.
I tried almost everything I found around the internet and nothing seemed to be able to stop this behavior.
The only solution I've came across is that return false on OnRequestStart!
Is there something I'm doing wrong?

Update: and this solution only works in firefox. Tested in IE and the faulty behavior persists...
Update2: I just found out that after the first callback returns, Page_Validators is [ ] while it was [span#cph_l1_UserNameRequired.validation-error, span#cph_l1_PasswordRequired.validation-error] at the first load...
I'll try to reconstruct it on ResponseEnd...
Update3: It seems the whole mechanism is lost after the first callback. C# code:
rap.ClientEvents.OnResponseEnd = String.Format("EnableValidators(['{0}', '{1}', '{2}']);", rfvCap.ClientID, rfvPW.ClientID, rfvUN.ClientID); 
Javascript (jQuery) Code:
function EnableValidators(list) { 
    //Page_Validators  
    var a = $(list).filter(function (index, el) { 
        return (document.getElementById(el) != null); 
    }).toArray(); 
    Page_Validators = jQuery.makeArray($(jQuery.map(a, function (el, i) { 
        return (document.getElementById(el)); 
    })).toArray()); 
 but the validationGroup is lost too; even if I reset the Page_Validators as above and call the Page_ClientValidate("Login1"); client-side function, the page stays valid!

Somebody help!!!
Achilles
Top achievements
Rank 1
 answered on 07 Jul 2010
2 answers
154 views
Hello Telerik Team,

I have a client side Combo box that I am populating from a Web Service.  I would like to use the 'IsSeparator' functionality to populate the combo box with Separator items.

Is this possible using JSON results from the server?

Thanks
Bob

Bob
Top achievements
Rank 1
 answered on 07 Jul 2010
1 answer
81 views
Is there a built-in fonction in the editor to disable the <a> tags when in preview mode?
Rumen
Telerik team
 answered on 07 Jul 2010
4 answers
485 views
i want get Datatable from RadGrid in code behind.
this is way is possible?
i need datatable in my code .
please help me.

IT
Top achievements
Rank 2
 answered on 07 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?