Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
136 views

I found a problem with the date components for some reason the system will never accept that I enter a date of any first Sunday after the 15th of the month of October every year.

When I enter one of these dates and move the focus out of the component, the system automatically switches to the previous day.

You can notice the issue even in the pages of the demonstration site:
RadDatePicker
http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/custompopup/defaultcs.aspx

RadDateInput
http://demos.telerik.com/aspnet-ajax/input/examples/raddateinput/firstlook/defaultcs.aspx

Calendar / Range Selection
http://demos.telerik.com/aspnet-ajax/calendar/examples/functionality/rangeselection/defaultcs.aspx

Dates:
10/19/2014
10/20/2013
10/21/2012
10/16/2011
10/17/2010
10/18/2009
10/19/2008
10/21/2007
10/22/2006
10/16/2005
10/17/2004
10/19/2003
10/20/2002
10/21/2001
10/22/2000
10/17/1999
10/18/1998
10/19/1997
10/20/1996
10/22/1995
10/16/1994
10/17/1993
10/18/1992
10/20/1991
10/21/1990
10/22/1989
10/16/1988
10/18/1987
10/19/1986
10/20/1985
10/21/1984
10/16/1983
10/17/1982
10/18/1981
10/19/1980

Vasil
Telerik team
 answered on 03 Nov 2011
6 answers
378 views

Hi,

I want to use dropdowns in a radgrid.

When i enter into edit mode, i want to show the selected value in the dropdown .

How can i do this?
So far this is my code.

Thanks




<telerik:GridTemplateColumn HeaderText="City">
                        <ItemTemplate>
                            <asp:Label ID="lblcity" runat="server" Text='<%# Bind("CityID") %>'></asp:Label>
                          
                              
                        </ItemTemplate>
                        <EditItemTemplate>
                          
                            <asp:DropDownList ID="ddlCity" runat="server">
                            </asp:DropDownList>
                          
                          
                        </EditItemTemplate>
                          
                          
                        </telerik:GridTemplateColumn>




Code Behind:

protected void gdv_Drivers_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e)
       {
            
           if ((e.Item is GridEditableItem && ((GridEditableItem)e.Item).IsInEditMode))
           {
               string where = null;
             //  string cityid = ((DropDownList)e.Item.FindControl("ddlcity")).SelectedValue;
             //  string stateid = ((DropDownList)e.Item.FindControl("ddlstate")).SelectedValue;
             //  string zipid = ((DropDownList)e.Item.FindControl("ddlzip")).SelectedValue;
               DropDownList ddlcity, ddlstate, ddlzip;
               ddlcity = ((DropDownList)e.Item.FindControl("ddlCity"));
               ddlstate = ((DropDownList)e.Item.FindControl("ddlState"));
               ddlzip = ((DropDownList)e.Item.FindControl("ddlZip"));
               myGlobal.LoadDropDown(ddlcity, "tbl_CityLkup", "CityID", "CityNm", "GCRPC", "CityID", "CityNm", where);
               myGlobal.LoadDropDown(ddlstate, "tbl_StateLkup", "StateID", "StateNm", "GCRPC", "StateID", "StateNm", where);
               myGlobal.LoadDropDown(ddlzip, "tbl_ZipLkup", "ZipID", "ZipCd", "GCRPC", "ZipID", "ZipCd", where);
                         
             
           }
            
       }
Shinu
Top achievements
Rank 2
 answered on 03 Nov 2011
1 answer
194 views
Hello Telerik Team,

I have a Radgrid on my aspx page which is using Nested View Template for drill down of data based on a datakeyname in the first level.
I want to disable the drilldown ability only for the first row and keep it as is for rest of the rows in Radgrid.
This is because the first row on drill down does not contain any data, in any case in our implementation.
Hence, drill down for first row needs to be disabled.
Please let me know if it is possible to do that.
Jayesh Goyani
Top achievements
Rank 2
 answered on 03 Nov 2011
3 answers
188 views
Hello,

Last year I had this problemDate 10/17/2010 is not a valid date? bug? I could not solve, and did not give more priority to it.

Now, after almost a year, need to resolve this to avoid problems with customers.

When I select the date from the calendar by 16/10/2011 telerik, telerik put the date 15/10/2011 in RadDatePicker.
I tried to fix this in the event ClientEvents-OnDateSelected, changing the time the date 16/10/2011, but in the same way, the telerik days back the date to 15/10/2011.
I also tried changing the date directly in DateInput (get_dateInput().set_value("16/10/2011")), but the telerik also changes the date to 15/10/2011.
Vasil
Telerik team
 answered on 03 Nov 2011
1 answer
65 views


Hi ,

My requirement is to diaplay data in TreeStructure .So I have chosen RadTreelist because I need to select an Item or items.

My requirement  is to  ,when expanding a heading  should dispaly  radtreelist.Under this radtreelist I need another heading .
when expanding the second heading should diplay another radtreelist.

How is it possible?Is it possible for adding RadTreeList inside another RadTreeList ? how ?


Thanks,
Sindu.

.
Marin
Telerik team
 answered on 03 Nov 2011
1 answer
88 views
I want to refresh a RadGrid using RadTicker. Each time the RadGrid must refresh and bring the new data from Sql database.
Back end am using C# code.

Thanks in Advance. :) 
Sebastian
Telerik team
 answered on 03 Nov 2011
3 answers
89 views
Hi,
        I am using Customized Advance form in radscheduler. ZIndex is not working for RadSchedulerRecurrenceEditor, in that Calendar is going beyond the pop up. I am not able to select the value from Calendar. Please look into my attached file for better understanding.
Kate
Telerik team
 answered on 03 Nov 2011
0 answers
103 views
I am using RADUplaod Telerik control

Issue : When i am trying to upload small file. The progress bar initially showed activity but did not update the percentage and then suddenly the entire file was uploaded and showing 100%. Can't we show the progress correctly. For the case of large file - it is showing progress till last 5 seconds left, then it stuck for 5 second and file got uploaded. I dont want to show 2 progress bars actually i want to show only 1 progress bar with smooth transition.

Can you please help me out to solve this issue. 

Below are the code lines i wrote in my page.

(In *.aspx)
 <telerik:RadUpload ID="Radupload1" runat="server" InitialFileInputsCount="1" TargetFolder="~Temp"
                                    TargetPhysicalFolder="C:\Temp" ControlObjectsVisibility="None" />
  <asp:Button ID="buttonSubmit" runat="server" Text="Upload" OnClientClick="SetFileFromUpload(); StopSessionTimers();return ValidateCheck()"
                                    OnClick="buttonSubmit_Click" CssClass="btn" />

  <telerik:RadProgressManager ID="Radprogressmanager1" runat="server" />
  <telerik:RadProgressArea ID="RadProgressArea1" runat="server" Localization-EstimatedTime="Estimated time"
     Localization-TransferSpeed="Speed" DisplayCancelButton="false" Width="375px" OnClientSubmitting="submit" OnClientProgressUpdating="RadProgressArea1_OnClientProgressUpdating" ProgressIndicators="TransferSpeed,TimeEstimated,TimeElapsed,FilesCountBar,FilesCount,CurrentFileName,FilesCountPercent,RequestSize,TotalProgress, TotalProgressBar,TotalProgressPercent">
 </telerik:RadProgressArea>

On aspx.cs
protected void buttonSubmit_Click(object sender, System.EventArgs e)
    {
        Radupload1.TargetFolder = @"Temp";
            if (Radupload1.UploadedFiles.Count > 0)
            {
             const int total = 100;
            RadProgressContext progress = RadProgressContext.Current;
            progress.SecondaryTotal = total;
            for (int i = 0; i < total; i++)
            {
                progress.SecondaryValue = i;
                progress.SecondaryPercent = i;
                progress.CurrentOperationText = "Step " + i.ToString();

    if (!Response.IsClientConnected)
                {
                    break;                     //Cancel button was clicked or the browser was closed, so stop processing
                }
                System.Threading.Thread.Sleep(100);                //Stall the current thread for 0.1 seconds
            }
      }
}

Thanks
Vandana
Vandana
Top achievements
Rank 1
 asked on 03 Nov 2011
1 answer
74 views

If you define a custom palette in RadChart and use the LoadFromXml() method, the control will throw an error in FillStyle.GetHashCode().  Basically, what I think is going on there is that the PalettesCollection.GetPalette() method is throwing an error because the "CustomPalettes" property has not yet loaded the custom palette that is defined declaratively in the control’s XML markup on the aspx page.

 

Relevant code in Telerik.Charting.PalettesCollection.PalettesCollection.cs:

 

public static Palette GetPalette(string name, Chart chart)

{

      if (!chart.CustomPalettes.Contains(name))

      {

        throw new ChartException(string.Format("There is no Palette with name: {0}", name));

      }

 

      return chart.CustomPalettes.GetPalette(name);

}

 

Declarative definition sample in the aspx page:

<CustomPalettes>

            <telerik:Palette Name="CustomPaletteColorful">

                <Items>

                    <telerik:PaletteItem MainColor="0xff, 0xba, 0x4a" SecondColor="0xff, 0xf4, 0xe3">

                    </telerik:PaletteItem>

                    <telerik:PaletteItem MainColor="0x15, 0xc5, 0x16" SecondColor="0xda, 0xf6, 0xda">

                    </telerik:PaletteItem>

                    <telerik:PaletteItem MainColor="0xff, 0x5b, 0" SecondColor="0xff, 0xe5, 0xd7">

                    </telerik:PaletteItem>

                </Items>

            </telerik:Palette>

</CustomPalettes>
Ves
Telerik team
 answered on 03 Nov 2011
3 answers
216 views
Radtabstrip css is not displaying after postback in Google Chrome but its working in FireFox.

<table width="100%">
                    <tr>
                        <td>
                            <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" RegisterWithScriptManager="false">
                            </telerik:RadAjaxLoadingPanel>
                            <asp:UpdatePanel ID="DispalyGrid" runat="server" UpdateMode="Always">
                                <ContentTemplate>
                                    <telerik:RadGrid ID="wRGViewCustomer" runat="server" Width="100%" PageSize="15" OnNeedDataSource="wRGViewCustomer_NeedDataSource"
                                        OnItemCommand="wRGViewCustomer_RowCommand" AllowPaging="True" Skin="WebBlue"
                                        ShowGroupPanel="true" AllowSorting="true" GridLines="None" AutoGenerateColumns="False"
                                        AllowFilteringByColumn="true">
                                        <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                                        <MasterTableView DataKeyNames="COProductId" AllowMultiColumnSorting="false" GroupLoadMode="Server"
                                            TableLayout="Fixed" EnableHeaderContextMenu="true" >
                                            <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
                                            <NestedViewTemplate>
                                                <asp:Panel runat="server" ID="InnerContainer" Visible="false" BackColor="#BDD097">
                                                    <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                        <tr>
                                                            <td>
                                                                <telerik:RadTabStrip runat="server" ID="TabStip1" Skin="Forest" MultiPageID="Multipage1"
                                                                    SelectedIndex="0" EnableViewState="true">
                                                                    <Tabs>
                                                                        <telerik:RadTab runat="server" Text="Fitter Order" PageViewID="PageView1">
                                                                        </telerik:RadTab>
                                                                        <telerik:RadTab runat="server" Text="PO" PageViewID="PageView2">
                                                                        </telerik:RadTab>
                                                                        <telerik:RadTab runat="server" Text="Bill" PageViewID="PageView3">
                                                                        </telerik:RadTab>
                                                                    </Tabs>
                                                                </telerik:RadTabStrip>
                                                                <telerik:RadMultiPage runat="server" ID="Multipage1" SelectedIndex="0" EnableViewState="true">
                                                                    <telerik:RadPageView runat="server" ID="PageView1" BorderStyle="Solid" BorderWidth="3"
                                                                        BorderColor="#BDD097" Skin="Forest" Width="99.5%">
                                                                        <div>
                                                                            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                                                <tr>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td>
                                                                                        <telerik:RadGrid ID="wRGFO" runat="server" Skin="Telerik" AllowSorting="true" AutoGenerateColumns="false"
                                                                                            GridLines="Both">
                                                                                            <PagerStyle Mode="NumericPages"></PagerStyle>
                                                                                            <MasterTableView DataKeyNames="FOId">
                                                                                                <Columns>
                                                                                                    <telerik:GridBoundColumn UniqueName="DocNo" HeaderText="DocNo" DataField="DocNo">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                    <telerik:GridBoundColumn UniqueName="DocDate" HeaderText="Date" DataField="DocDate">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                    <telerik:GridBoundColumn UniqueName="FitterName" HeaderText="Fitter Name" DataField="FitterName">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                    <telerik:GridBoundColumn UniqueName="Status" HeaderText="Status" DataField="Status">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                    <telerik:GridBoundColumn UniqueName="TotalFee" HeaderText="TotalFee" DataField="TotalFee">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                    <telerik:GridBoundColumn UniqueName="Instruction" HeaderText="Instruction" DataField="Instruction">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                    <telerik:GridBoundColumn UniqueName="Remark" HeaderText="Remark" DataField="Remark">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                </Columns>
                                                                                            </MasterTableView>
                                                                                        </telerik:RadGrid>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </telerik:RadPageView>
                                                                    <telerik:RadPageView runat="server" BorderStyle="Solid" BorderWidth="3" BorderColor="#BDD097"
                                                                        Skin="Forest" ID="PageView2" Width="99.5%">
                                                                        <div>
                                                                            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                                                <tr>
                                                                                    <td>
                                                                                        <telerik:RadGrid ID="wRGPO" runat="server" Skin="Telerik" AllowSorting="true" AutoGenerateColumns="false"
                                                                                            GridLines="Both">
                                                                                            <MasterTableView DataKeyNames="POId">
                                                                                                <Columns>
                                                                                                    <telerik:GridBoundColumn UniqueName="docno" HeaderText="Doc No" DataField="docno">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                    <telerik:GridBoundColumn UniqueName="docdate" HeaderText="Date" DataField="docdate"
                                                                                                        DataFormatString="{0:d}">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                    <telerik:GridBoundColumn UniqueName="supplierName" HeaderText="Supplier Name" DataField="supplierName">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                    <telerik:GridBoundColumn UniqueName="status" HeaderText="status" DataField="status"
                                                                                                        DataFormatString="{0:d}">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                </Columns>
                                                                                            </MasterTableView>
                                                                                        </telerik:RadGrid>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </telerik:RadPageView>
                                                                    <telerik:RadPageView runat="server" BorderStyle="Solid" BorderWidth="3" BorderColor="#BDD097"
                                                                        Skin="Forest" ID="PageView3" Width="99.5%">
                                                                        <div>
                                                                            <table width="100%" cellpadding="0" cellspacing="0" border="0">
                                                                                <tr>
                                                                                    <td>
                                                                                        <telerik:RadGrid ID="wRGBill" runat="server" Skin="Telerik" AllowSorting="true" AutoGenerateColumns="false"
                                                                                            GridLines="Both">
                                                                                            <MasterTableView DataKeyNames="POId">
                                                                                                <Columns>
                                                                                                    <telerik:GridBoundColumn UniqueName="docno" HeaderText="Doc No" DataField="docno">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                    <telerik:GridBoundColumn UniqueName="docdate" HeaderText="Date" DataField="docdate"
                                                                                                        DataFormatString="{0:d}">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                    <telerik:GridBoundColumn UniqueName="supplierName" HeaderText="Supplier Name" DataField="supplierName">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                    <telerik:GridBoundColumn UniqueName="status" HeaderText="status" DataField="status"
                                                                                                        DataFormatString="{0:d}">
                                                                                                    </telerik:GridBoundColumn>
                                                                                                </Columns>
                                                                                            </MasterTableView>
                                                                                        </telerik:RadGrid>
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </div>
                                                                    </telerik:RadPageView>
                                                                </telerik:RadMultiPage>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </asp:Panel>
                                            </NestedViewTemplate>
                                            <Columns>
                                                <telerik:GridBoundColumn UniqueName="AccountName" HeaderText="DocNo" DataField="docno"
                                                    FilterControlWidth="20px" HeaderStyle-Width="5%">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn UniqueName="docdate" HeaderText="DocDate" HeaderStyle-Width="11%"
                                                    DataField="docdate">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn UniqueName="DueDate" HeaderText="DueDate" HeaderStyle-Width="11%"
                                                    DataField="DueDate">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn UniqueName="PartyName" HeaderText="Name" HeaderStyle-Width="11%" FilterControlWidth="40px"
                                                    DataField="PartyName">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn UniqueName="PartyAddress" HeaderText="Address" HeaderStyle-Width="12%"
                                                    DataField="PartyAddress">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn UniqueName="MobileNo" HeaderText="MobileNo" HeaderStyle-Width="7%"
                                                    FilterControlWidth="40px" DataField="MobileNo">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn UniqueName="PhoneNo" HeaderText="PhoneNo" HeaderStyle-Width="7%"
                                                    FilterControlWidth="40px" DataField="PhoneNo">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn UniqueName="frameno" HeaderText="FNo" DataField="frameno"
                                                    FilterControlWidth="20px" HeaderStyle-Width="4%">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn UniqueName="productdescription" HeaderText="ProductDescription"
                                                    FilterControlWidth="170px" DataField="productdescription" HeaderStyle-Width="22%">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn UniqueName="status" HeaderText="Status" DataField="status"
                                                    FilterControlWidth="30px" HeaderStyle-Width="8%">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridTemplateColumn HeaderText="IsNew" HeaderStyle-Width="6%" ReadOnly="true" FilterControlWidth="25px">
                                                    <ItemTemplate>
                                                        <asp:CheckBox ID="chknew" Checked='<%#Bind("NewProduct") %>' runat="server" ShowFilterIcon="false" Enabled="false" />
                                                    </ItemTemplate>
                                                </telerik:GridTemplateColumn>
                                            </Columns>
                                            <HeaderStyle HorizontalAlign="Left" />
                                        </MasterTableView>
                                    </telerik:RadGrid>
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                </table>
Dimitar Terziev
Telerik team
 answered on 03 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?