Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
80 views
my chart has open end on right side.
how can I tell it to close the plot area?
Vessy
Telerik team
 answered on 06 Aug 2015
0 answers
102 views
In web application, the kendo tab strip loads all the tabs along with their contents on an ASPX page. Each tab loads IFRAME and IFRAME has dynamic URLs(src). To optimize, I need to load kendo tab content only after selecting a tab. Please suggest.
Rahul
Top achievements
Rank 1
 asked on 06 Aug 2015
1 answer
44 views

We have custom inline editable grid, on button postback populating rad grid with some text box and label's, till 149 records in grid everything working fine, but on 150th record page is throwing error on hosting environment, error is sys.WebForms.PageRequestMangerServerErrorException, returning code 500. Please suggest if anyone have any idea

Pavlina
Telerik team
 answered on 06 Aug 2015
1 answer
81 views
We have RadGrid with custome inline edit behavior, on button postback populating grid with some textbox's and label's, till 149 records everything is ok but for 150th record it throwing error on hosting environment, sys.WebForms.PageRequestManagerServerErrorException, return 500.Please suggest if any one have any idea about.
Pavlina
Telerik team
 answered on 06 Aug 2015
5 answers
155 views

Hello Telerik team.

I'm using Telerik 2014.1.403.40 version.

It looks  today of speicalday property time is depends on server time.

 My PC location timezone is UTC +09:00 (Seoul)

and Web Serv timezone is  UTC  -08:00 Pacific Time (US&Canada).

When I open the Dateopicker popup, today marked 7/28 but actual today is 7/29.

I would like to set today time correctly.

 Here's my code

01.<telerik:RadDatePicker ID="RadDatePickerDateFrom" runat="server" Calendar-FastNavigationStep="12" Calendar-ShowRowHeaders="false" Width="100%" TabIndex="12">
02.    <Calendar ID="CalendarDateFrom" runat="server">
03.        <FastNavigationSettings EnableTodayButtonSelection="true" />
04.            <SpecialDays>
05.                <telerik:RadCalendarDay Repeatable="Today" ItemStyle-BackColor="Yellow" />
06.            </SpecialDays>
07.    </Calendar>
08.    <DateInput AutoCompleteType="Disabled" ID="DateInputDateFrom" runat="server" DateFormat="M/d/yyyy" SelectionOnFocus="SelectAll" />
09.</telerik:RadDatePicker>

Maria Ilieva
Telerik team
 answered on 06 Aug 2015
30 answers
263 views
Hello

I want to know how I can delete the image attached in a forum post.
Pavlina
Telerik team
 answered on 06 Aug 2015
1 answer
104 views

I have a RadGrid with a HyperLink column and using Paging.

When a user clicks on the Hyperlink column, they will be directed to another ASP.Net page that displays all the detailed data for that record.  On that page, there is a button for them to click on to bring them back to the page with the RadGrid on it.  When the user clicks on the button and brought back to the page with the RadGrid, the RadGrid starts back at page 1 no matter what page the user was on before.

I need it to remember the page number when they click on the HyperLink column and then when the user clicks on the button to bring them back to the page with the RadGrid on it, the RadGrid will be reloaded and set to the page number they came from. 

How to do that?

Here is how my RadGrid is:

        <telerik:RadGrid ID="rgEDILog" runat="server" GroupPanelPosition="Top" Height="326px" Width="950px" AutoGenerateColumns="False" AllowPaging="True" PageSize="2000">
            <ExportSettings>
                <Pdf AllowPrinting="False">
                </Pdf>
            </ExportSettings>
            <ClientSettings>
                <Selecting AllowRowSelect="True" />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                
            </ClientSettings>
            <MasterTableView>
                <CommandItemSettings ShowAddNewRecordButton="False" ShowRefreshButton="False" />
                <Columns>
                    <telerik:GridHyperLinkColumn AllowSorting="False" DataTextField="EDI_KEY" FilterControlAltText="Filter column7 column" HeaderText="EDI Key" UniqueName="column7" DataNavigateUrlFields="EDI_KEY,SERIAL_NO,TRACKING_NO,SUPPLIER_CODE,MILL_COIL_NO,MAILBOX_NAME,EDI_ACTION,ENTRY_DATE" DataNavigateUrlFormatString="CustomReports9b?EDI_KEY={0}&SERIAL_NO={1}&TRACKING_NO={2}&SUPPLIER_CODE={3}&MILL_COIL_NO={4}&MAILBOX_NAME={5}&EDI_ACTION={6}&ENTRY_DATE={7}">
                    </telerik:GridHyperLinkColumn>
                    <telerik:GridBoundColumn DataField="SERIAL_NO" FilterControlAltText="Filter column column" HeaderText="Serial No." ReadOnly="True" UniqueName="column">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="TRACKING_NO" FilterControlAltText="Filter column1 column" HeaderText="Tracking No." ReadOnly="True" UniqueName="column1">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="SUPPLIER_CODE" FilterControlAltText="Filter column2 column" HeaderText="Supplier Code" ReadOnly="True" UniqueName="column2">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="MILL_COIL_NO" FilterControlAltText="Filter column3 column" HeaderText="Mill Coil No." ReadOnly="True" UniqueName="column3">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="MAILBOX_NAME" FilterControlAltText="Filter column4 column" HeaderText="Mailbox Name" ReadOnly="True" UniqueName="column4">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DOC_NAME" FilterControlAltText="Filter column5 column" HeaderText="Doc Name" ReadOnly="True" UniqueName="column5">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="EDI_ACTION" FilterControlAltText="Filter column6 column" HeaderText="EDI Action" ReadOnly="True" UniqueName="column6">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="FIRST_COMM_DATE" FilterControlAltText="Filter column7 column" HeaderText="First Comm Date" ReadOnly="True" UniqueName="column7">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ENTRY_DATE" FilterControlAltText="Filter column8 column" HeaderText="Entry Date" ReadOnly="True" UniqueName="column8">
                    </telerik:GridBoundColumn>
                </Columns>
            </MasterTableView>
            <PagerStyle Mode="NextPrevNumericAndAdvanced" />
        </telerik:RadGrid>

​

Eyup
Telerik team
 answered on 06 Aug 2015
2 answers
108 views

Hi All,

 

I have an issue with a RadWindow. It's got a RadTabStrip and a RadMultiPage on it.

On changing the Tab, I postback, and reload the window using :-

 

radWindow.Visible = True
Dim script As String = "function f(){$find(""" + radWindow.ClientID & """).show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);"
ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "key", script, True)

 

This works most of the time, but occasionally I get the following error (happens more on the WebSever vs Localhost) :-

 

<script type="text/javascript">
//<![CDATA[
function f(){$find("radWindow").show(); Sys.Application.remove_load(f);}Sys.Application.add_load(f);
document.getElementById('vcmValidationSummary').dispose = function() {
    Array.remove(Page_ValidationSummaries, document.getElementById('vcmValidationSummary'));
}
//]]>
</script>

 

And the Error is "Microsoft JScrips runtime error: Unable to get value of the property 'show'; object is null or undefined".

It's as if the RadWindow hasn't been loaded. Any ideas where I'm going wrong?

Eyup
Telerik team
 answered on 06 Aug 2015
1 answer
88 views

Hi,

I need to create a questionnaire in my website. I was using standalone multipage explained here:

http://demos.telerik.com/aspnet-ajax/tabstrip/examples/multipage/standalone-multipage/defaultcs.aspx

I have a set of radio button questions and I use page views to divide them into pages.On the last page I show a​ result graph based on the answers chosen. I need the questions to be required without defaulting a radio button value. Howevere, I am not able to do the validation on a page basis.

Below is the code that I am using.​ Please advise:

<script type="text/javascript">
 
       var minIndex = 0,
           maxIndex = 5,
           globalSelectedIndex,
           multiPage,
           NextPage,
           PreviousPage;
 
       function pageLoad() {
           multiPage = $find("<%= rmRiskTolerance.ClientID %>");
           PreviousPage = $find("<%= PreviousPage.ClientID %>");
           NextPage = $find("<%= NextPage.ClientID %>");
 
           //Initialization of the global selected index of the RadMultiPage control
           globalSelectedIndex = multiPage.get_selectedIndex();
       }
 
       function PrevClicked(sender, args) {
 
           globalSelectedIndex--;
           multiPage.set_selectedIndex(globalSelectedIndex);
 
           if (globalSelectedIndex == minIndex) {
               sender.set_enabled(false);
           }
 
           if (!NextPage.get_enabled()) {
               NextPage.set_enabled(true);
           }
       }
 
       function NextClicked(sender, args) {
           Page_ClientValidate("QuestionnaireValidationGroup");
           if (Page_IsValid) {
 
               globalSelectedIndex++;
               multiPage.set_selectedIndex(globalSelectedIndex);
 
               if (globalSelectedIndex == maxIndex) {
                   sender.set_enabled(false);
               }
 
               if (!PreviousPage.get_enabled()) {
                   PreviousPage.set_enabled(true);
               }
               return true;
           }
           else {
               return false;
           }
 
       }
   </script>
   <div class="page_header">
       <h1>Risk Tolerance Questionnaire</h1>
   </div>
   <div>
       <telerik:RadMultiPage ID="rmRiskTolerance" runat="server" SelectedIndex="0">
           <telerik:RadPageView ID="pvStep1" runat="server">
               
               <h2>Step 1 : Complete the Questionnaire</h2>
               <p>
                   <h4>1. When do you expect to begin distributions from the Plan?
                   </h4>
                   <asp:RequiredFieldValidator ID="rbBeginDistributionRequired" runat="server" ControlToValidate="rbBeginDistribution" ErrorMessage="* Required" SetFocusOnError="true"
                       ValidationGroup="QuestionnaireValidationGroup"></asp:RequiredFieldValidator>
                   <asp:RadioButtonList ID="rbBeginDistribution" runat="server">
                       <asp:ListItem Text="Within 5 years" Value="2"></asp:ListItem>
                       <asp:ListItem Text="In 5–10 years" Value="4"></asp:ListItem>
                       <asp:ListItem Text="In 5–10 years" Value="8"></asp:ListItem>
                       <asp:ListItem Text="In more than 15 years" Value="12"></asp:ListItem>
                   </asp:RadioButtonList>
               </p>
               <p>
                   <h4>2. Once you begin taking distributions from the Plan, how long do you expect the distributions to last?
                   </h4>
                   <asp:RequiredFieldValidator ID="rbDistributionTimeRequired" runat="server" ControlToValidate="rbDistributionTime" ErrorMessage="* Required" SetFocusOnError="true"
                       ValidationGroup="QuestionnaireValidationGroup"></asp:RequiredFieldValidator>
                   <asp:RadioButtonList ID="rbDistributionTime" runat="server">
                       <asp:ListItem Text="I plan to take a lump sum distribution" Value="1"></asp:ListItem>
                       <asp:ListItem Text="1 to 5 years" Value="2"></asp:ListItem>
                       <asp:ListItem Text="5 to 10 years" Value="3"></asp:ListItem>
                       <asp:ListItem Text="10 years or more" Value="4"></asp:ListItem>
                   </asp:RadioButtonList>
               </p>
               
           </telerik:RadPageView>
           <telerik:RadPageView ID="pvStep2" runat="server">
 
               <h2>Step 1 : Continued</h2>              
               <p>
                   <h4>3. Investing involves a trade-off between risk and return.  Which statement best describes your investment goals?
                   </h4>
                   <asp:RequiredFieldValidator ID="rbInvestmentGoalsRequired" runat="server" ControlToValidate="rbInvestmentGoals" ErrorMessage="* Required" SetFocusOnError="true"
                       ValidationGroup="QuestionnaireValidationGroup"></asp:RequiredFieldValidator>
                   <asp:RadioButtonList ID="rbInvestmentGoals" runat="server">
                       <asp:ListItem Text="Protect the value of my account. In order to minimize the chance for loss, I am willing to accept the lower long-term returns provided by conservative investments." Value="1"></asp:ListItem>
                       <asp:ListItem Text="Keep risk to a minimum while trying to achieve slightly higher returns than the returns provided by investments that are more conservative." Value="3"></asp:ListItem>
                       <asp:ListItem Text="Balance moderate levels of risk with moderate levels of returns." Value="6"></asp:ListItem>
                       <asp:ListItem Text="Maximize long-term investment returns. I am willing to accept large and sometimes dramatic fluctuations in the value of my investments." Value="10"></asp:ListItem>
                   </asp:RadioButtonList>
 
               </p>
               <p>
                   <h4>4. Select the portfolio you would be most comfortable investing in:
                   </h4>
                   <asp:RequiredFieldValidator ID="rbPortfolioRequired" runat="server" ControlToValidate="rbPortfolio" ErrorMessage="* Required" SetFocusOnError="true"
                       ValidationGroup="QuestionnaireValidationGroup"></asp:RequiredFieldValidator>
                   <asp:RadioButtonList ID="rbPortfolio" runat="server">
                       <asp:ListItem Text="Portfolio 1—Annual investment return of 5% or loss of 4%." Value="2"></asp:ListItem>
                       <asp:ListItem Text="Portfolio 1—Annual investment return of 10% or loss of 8%." Value="3"></asp:ListItem>
                       <asp:ListItem Text="Portfolio 1—Annual investment return of 20% or loss of 16%." Value="5"></asp:ListItem>
                       <asp:ListItem Text="Portfolio 1—Annual investment return of 30% or loss of 25%." Value="6"></asp:ListItem>
                   </asp:RadioButtonList>
               </p>
           </telerik:RadPageView>
           <telerik:RadPageView ID="pvStep3" runat="server">
               <h2>Step 1 : Continued</h2>
 
               <p>
                   <h4>5. If the value of your portfolio decreased by more than 20% in one year, how would you react?
                   </h4>
                   <asp:RequiredFieldValidator ID="rbPortfolioDecreaseRequired" runat="server" ControlToValidate="rbPortfolioDecrease" ErrorMessage="* Required" SetFocusOnError="true"
                       ValidationGroup="QuestionnaireValidationGroup"></asp:RequiredFieldValidator>
                   <asp:RadioButtonList ID="rbPortfolioDecrease" runat="server">
                       <asp:ListItem Text="I would not change my portfolio." Value="11"></asp:ListItem>
                       <asp:ListItem Text="I would wait at least one year before changing to options that are more conservative." Value="8"></asp:ListItem>
                       <asp:ListItem Text="I would wait at least three months before changing to options that are more conservative." Value="3"></asp:ListItem>
                       <asp:ListItem Text="I would immediately change to options that are more conservative." Value="1"></asp:ListItem>
                   </asp:RadioButtonList>
 
               </p>
               <p>
                   <h4>6. If the stock market increased by 15% in one year while the value of your portfolio (invested primarily in bonds and cash) increased by 4% in the same year, how would you react?
                   </h4>
                   <asp:RequiredFieldValidator ID="rbStockMarketIncreaseRequired" runat="server" ControlToValidate="rbStockMarketIncrease" ErrorMessage="* Required" SetFocusOnError="true"
                       ValidationGroup="QuestionnaireValidationGroup"></asp:RequiredFieldValidator>
                   <asp:RadioButtonList ID="rbStockMarketIncrease" runat="server">
                       <asp:ListItem Text="I would replace the bond and cash positions of my portfolio with stocks." Value="10"></asp:ListItem>
                       <asp:ListItem Text="I would add more stocks to my portfolio but not enough to make them a majority position." Value="3"></asp:ListItem>
                       <asp:ListItem Text="I would not change my portfolio." Value="1"></asp:ListItem>
                   </asp:RadioButtonList>
 
               </p>
           </telerik:RadPageView>
           <telerik:RadPageView ID="pvResult" runat="server">
               <h2>Step 2 : Score your Questionnaire</h2>
               <p>
                   Your score is <b>
                       <asp:Literal ID="litScore" runat="server"></asp:Literal></b> and the corresponding M Portfolio Allocation Model is <b>
                           <asp:Literal ID="litAllocationModel" runat="server"></asp:Literal></b>.
               </p>
                   
           </telerik:RadPageView>
       </telerik:RadMultiPage>
       <div class="buttonContainer">
           <telerik:RadButton ID="PreviousPage" Text="Previous" ToolTip="Click to see previous page" runat="server" Enabled="false" AutoPostBack="false" OnClientClicked="PrevClicked">
           </telerik:RadButton>
           <telerik:RadButton ID="NextPage" Text="Next" ToolTip="Click to see next page" runat="server" CausesValidation="true" AutoPostBack="true" OnClientClicked="NextClicked" OnClick="NextPage_Click">
           </telerik:RadButton>
       </div>
   </div>

code behind:

 protected void NextPage_Click(object sender, EventArgs e)
        {
            if (rmRiskTolerance.SelectedPageView.ID == "pvResult")
            {
                List<int> scoreList = new List<int>();
                GetRadioButtonListValues(rmRiskTolerance, scoreList);
                GetQuestionnaireResult(scoreList);
            }
        }​

I could not find any other tool to design a questionnaire. I will be happy to give something else a try if this scenario isn't possible.
Dimitar
Telerik team
 answered on 06 Aug 2015
5 answers
126 views
Hi,

Does chunk upload functionality work on Safari browsers (Safari for Win and Safari for Mac)?
Cannot make it working on Safari(5+) for win7.
I use FileAPI or IFrame plugins. No Flash and Silverlight.

Best regards,
Denis
Geoff
Top achievements
Rank 1
 answered on 06 Aug 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?