Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
75 views
Hello Telerik,
It's very strange that the datetimepicker works very well on my local computer , but after I uploaded the website to the server,the part of "time" can not be selected(no response when I click it), I can only select "date", it confuse me a lot....
Pavel
Telerik team
 answered on 05 May 2011
2 answers
63 views
The attached Image shows what happens when I configure my RadScheduler with the following settings:


In my markup I have:
<TimelineView TimeLabelSpan="4" SlotDuration="00:15" NumberOfSlots="48"
ColumnHeaderDateFormat="HH:mm" HeaderDateFormat="HH:mm"
GroupingDirection="Vertical" StartTime="06:00" />


And once I've initiated my data programmatically I have
RadScheduler1.WorkDayStartTime = startTime;
RadScheduler1.WorkDayEndTime = endTime;
var duration = RadScheduler1.WorkDayEndTime - RadScheduler1.WorkDayStartTime;
RadScheduler1.TimelineView.StartTime = RadScheduler1.WorkDayStartTime;
RadScheduler1.TimelineView.NumberOfSlots =
duration.Hours * 4 + duration.Minutes / 15 + 1;



Note: I've tried it with & without the '+ 1'...It doesn't matter, still doesn't line up.
Veronica
Telerik team
 answered on 05 May 2011
3 answers
137 views
I have created a simple test to check to see if the date is properly filtering and it seems to be failing every time when I have two dates with different years ... Please look at this code and test it and let me know what I am doing wrong if anything.
<telerik:RadGrid ID="gridUsers" AllowAutomaticDeletes="true" runat="server" AllowPaging="true" AllowSorting="true" AllowFilteringByColumn="true" PageSize="10" AutoGenerateColumns="false">
                        <GroupingSettings CaseSensitive="false" />
                        <HeaderStyle Font-Bold="true" />
                        <PagerStyle Mode="NextPrevAndNumeric" AlwaysVisible="true" Visible="true" EnableSEOPaging="true"/>
                        <ClientSettings>
                            <Scrolling AllowScroll="False" />
                        </ClientSettings>
                        <MasterTableView CommandItemDisplay="Top" AllowNaturalSort="false" DataKeyNames="Created">
                            <Columns>
                                <telerik:GridDateTimeColumn HeaderText="Created" ItemStyle-Wrap="false" UniqueName="Created" DataField="Created" FilterListOptions="VaryByDataType" FilterImageUrl="~/images/filter_icon.gif" />
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>
Protected Sub gridUsers_NeedDataSource(ByVal source As Object, ByVal e As Telerik.Web.UI.GridNeedDataSourceEventArgs) Handles gridUsers.NeedDataSource
        Dim myDT As New DataTable
        myDT.Columns.Add("Created")
  
        Dim row1 As DataRow = myDT.NewRow
        row1("Created") = Date.Now
  
        Dim row2 As DataRow = myDT.NewRow
        row2("Created") = Date.Now.AddDays(12)
  
        Dim row3 As DataRow = myDT.NewRow
        row3("Created") = Date.Now.AddYears(-2)
  
        Dim row4 As DataRow = myDT.NewRow
        row4("Created") = Date.Now.AddYears(-3)
  
        myDT.Rows.Add(row1)
        myDT.Rows.Add(row2)
        myDT.Rows.Add(row3)
        myDT.Rows.Add(row4)
  
        gridUsers.DataSource = myDT
    End Sub

The first bit is my code behind for the datasource of the grid and the second is the asp code. Try and filter something like "1/1/2010" without the quotes and place the filter on less then and the results come back empty. The inverse being greater then where the no filtering occurs.

Please help asap,
Thanks!
Trevor
Princy
Top achievements
Rank 2
 answered on 05 May 2011
3 answers
63 views
hello everyone,

I have a problem with the UI of RadGrid when using grouping functionality. It happens at the first time when a page is loaded, the UI of grouping icon does not appear as expected. When I click on to expand/collapse, the UI seems to be OK now.

The group load mode is client side and the grid is put on a web part deployed in sharepoint 2010.
Please see the attached file to see the problem in detail.

Any suggestion?

Regards,
TNgo



Tsvetoslav
Telerik team
 answered on 05 May 2011
1 answer
200 views
Hi,
This is a complex scenario which I will try to explain as good as I can.
I have a Master Page(MasterPage1) and their is another MasterPage(MasterPage2) inherited from the MasterPage1.
So in MasterPage2, I have a RadDatePicker which is inside a RadPageView which is inside a RadPanelBar.

Now, i want the ClientID of this RadDatePicker. Presently I am trying it using $find(<%= id_radDatePicker.ClientID%>), which says that id_radDatePicker doesnt exist in the scenario.

I would appreciate if you can let me know how to get around with this.

regards
Yash
Princy
Top achievements
Rank 2
 answered on 05 May 2011
2 answers
75 views


Data will be saved only if there is which radtab is changed that controls should be saved , its possible RadTabStrip
Dimitar Terziev
Telerik team
 answered on 05 May 2011
2 answers
95 views
Hi,

Is there a way to incorporate horizontal positional tab stops in to the editor? similar to MS word. We do not care about the ruler, we are looking for a simple API( rad window with TAB stop options, like in MS Word Paragraph TAB property dialogue) to insert TAB Stops.

This is a very crucial feature for our client and became a show stopper in our project, truly appreciate your response.

Thanks,
Indira.
Dobromir
Telerik team
 answered on 05 May 2011
1 answer
328 views
hi people!

i wanna rebind my RadGrid after updating data to database, everything works well except that the RadGrid cant rebind data after the action completed, here is my source code.

        protected DataClasses1DataContext context = new DataClasses1DataContext();

        protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
        {
            foreach (GridDataItem item in RadGrid1.MasterTableView.Items)
            {
                if ((item["Name"].FindControl("Name") as Label).Text == "Action")
                {
                    var group = (from g in context.Groups where g.Name == "Action" select g).Single();
                    group.Note = "note!";
                    context.SubmitChanges();
                    item.Enabled = false;
                }
            }    
            // i cant call back Rebind() method in RadGrid here because RadGrid does not allow while databinding
        }
i wanna show my data that has been updated in this event but havent still found out the ways to do it yet.
anyone can handle this problem please help me to fix it.

thanks in advance.

kind regards.
Daniel
Telerik team
 answered on 05 May 2011
1 answer
73 views
Hi,

I have attempted many other solutions regarding skin loss without resolution. 

Ajax RadGrid in an  RadAjaxPanel loses skin in these conditions when loaded dynamically into a PageView.
IE 8 with IIS 7

IE8 with IIS 6 works.

All other browsers work fine also (Safari, Chrome, Firefox)

any ideas ?

ver: 2011.1.413.40

Thanks
Eric
TheLostLeaf
Top achievements
Rank 2
 answered on 04 May 2011
2 answers
141 views
Sorry, posted it in the wrong forum, ASP.NET instead of ASP.NET AJAX, however the question was:

Im trying to make a RadChart with dynamic series, which are added from the code behind. Beneath i have the code server side with a dynamic added serie to the radchart:

        private void InitRadChart() 
        { 
            RadChart1.ChartTitle.TextBlock.Text = "Pensioen overzicht"
 
            RadChart1.Chart.Series.Clear(); 
            RadChart1.PlotArea.XAxis.AutoScale = false
            RadChart1.PlotArea.XAxis.AddRange(intPrePensioenLeeftijd, intEindeXAsLeeftijd, 1); 
 
            int intHuidigInkomenRest = intHuidigInkomen%5000; 
 
            RadChart1.PlotArea.YAxis.AutoScale = false
            RadChart1.PlotArea.YAxis.AddRange(0, intHuidigInkomen-intHuidigInkomenRest+10000 , 5000); 
 
 
            ChartSeries csPrePensioen = new ChartSeries("PrePensioen", ChartSeriesType.StackedBar); 
            int intPPAOWGerechtigdeLeeftijd = intAOWGerechtigdeLeeftijd; 
            int intPPPrePensioenLeeftijd = intPrePensioenLeeftijd; 
            csPrePensioen.ActiveRegionToolTip = "test"
            csPrePensioen.Appearance.BarWidthPercent = 100; 
 
            for (int i = intPPPrePensioenLeeftijd; i < intPPAOWGerechtigdeLeeftijd; i++) 
            { 
                ChartSeriesItem citem = new ChartSeriesItem(); 
                 
                citem.XValue = i; 
                citem.YValue = intPrepensioen; 
                csPrePensioen.AddItem(citem); 
            } 
            csPrePensioen.Appearance.LabelAppearance.Visible = false
            RadChart1.Series.Add(csPrePensioen); 
 
    } 

Here is the code of the RadChart:

<telerik:RadChart ID="RadChart1" runat="server" Skin="Metal" Height="400px" Width="700px"
    <PlotArea> 
        <EmptySeriesMessage Visible="True"
            <Appearance Visible="True"
            </Appearance> 
        </EmptySeriesMessage> 
        <XAxis> 
            <Appearance Color="Transparent" MajorTick-Color="174, 174, 174"
                <MajorGridLines Color="40, 255, 255, 255" PenStyle="Solid" /> 
                <TextAppearance TextProperties-Color="51, 51, 51"
                </TextAppearance> 
            </Appearance> 
            <AxisLabel> 
                <TextBlock> 
                    <Appearance TextProperties-Color="51, 51, 51"
                    </Appearance> 
                </TextBlock> 
            </AxisLabel> 
            <Items> 
                <telerik:ChartAxisItem Value="100"
                </telerik:ChartAxisItem> 
            </Items> 
        </XAxis> 
        <YAxis> 
            <Appearance Color="Transparent" MajorTick-Color="174, 174, 174" MinorTick-Color="174, 174, 174"
                <MajorGridLines Color="40, 255, 255, 255" /> 
                <MinorGridLines Color="40, 255, 255, 255" /> 
                <TextAppearance TextProperties-Color="51, 51, 51"
                </TextAppearance> 
            </Appearance> 
            <AxisLabel> 
                <TextBlock> 
                    <Appearance TextProperties-Color="51, 51, 51"
                    </Appearance> 
                </TextBlock> 
            </AxisLabel> 
        </YAxis> 
        <Appearance Corners="Round, Round, Round, Round, 4"
            <FillStyle FillType="Image"
                <FillSettings BackgroundImage="{plotarea}" ImageAlign="Top" ImageDrawMode="Flip" 
                    ImageFlip="FlipY"
                </FillSettings> 
            </FillStyle> 
            <Border Color="174, 174, 174" Width="4" /> 
        </Appearance> 
    </PlotArea> 
    <Appearance Corners="Round, Round, Round, Round, 10"
        <FillStyle FillType="Image"
            <FillSettings ImageDrawMode="Flip" BackgroundImage="{chart}"
            </FillSettings> 
        </FillStyle> 
        <Border Color="111, 111, 111"></Border> 
    </Appearance> 
    <ChartTitle> 
        <Appearance> 
            <FillStyle MainColor="Transparent"
            </FillStyle> 
        </Appearance> 
        <TextBlock> 
            <Appearance TextProperties-Font="Arial, 16pt"
            </Appearance> 
        </TextBlock> 
    </ChartTitle> 
    <Legend> 
        <Appearance Position-AlignedPosition="TopRight" Dimensions-Margins="16%, 3%, 1px, 1px"
            <ItemTextAppearance TextProperties-Color="Black"
            </ItemTextAppearance> 
            <FillStyle MainColor="Transparent"
            </FillStyle> 
            <Border Color="Transparent"></Border> 
        </Appearance> 
    </Legend> 
</telerik:RadChart> 
 
Whatever i try, the barwidthpercent can't be set from the code behind, the bars keep a distance between each other.

I can't see what im doing wrong either, whenever i try to make a serie in the client side, the barwidthpercent does work, but the problem of that is that i cant dynamicly add series to the chart, depending on how much i need. Any solution?

thanks in advance


Travis
Top achievements
Rank 1
 answered on 04 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?