Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
210 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
76 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
100 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
334 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
75 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
154 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
2 answers
394 views
I am creating a RadGrid in C# and adding it to a placeholder.

RadGrid RadGrid1 = new RadGrid();
RadGrid1.ID = "RadGrid1";
// Add the RadGrid instance to the controls
this.PlaceHolder1.Controls.Add(RadGrid1);
 
RadGrid1.DataSourceID = "SqlDataSource1";
RadGrid1.MasterTableView.DataKeyNames = new string[] { "Jobnumber" };
RadGrid1.Skin = "Default";
RadGrid1.Width = Unit.Percentage(100);
RadGrid1.PageSize = 15;
RadGrid1.AllowPaging = true;
RadGrid1.AllowSorting = true;
RadGrid1.AllowFilteringByColumn = true;
RadGrid1.AutoGenerateColumns = false;
RadGrid1.GridLines = GridLines.Both;
RadGrid1.ItemCommand += new GridCommandEventHandler(RadGrid1_ItemCommand);
 
//Add columns
 
GridBoundColumn boundColumn;
 
foreach (DataRow dr in dt.Rows)
{
    //Add column
 
            boundColumn = new GridBoundColumn();
            boundColumn.DataField = dr["DataField"].ToString().Trim();     // Initalize the DataField value.
            boundColumn.HeaderText = dr["HeaderText"].ToString().Trim();   // Initialize the HeaderText field value.
            boundColumn.HtmlEncode = false;
            boundColumn.ReadOnly = true;
            boundColumn.SortExpression = dr["SortExpression"].ToString().Trim();
            boundColumn.HeaderStyle.CssClass = "headerstyle";
            if (dr["align"].ToString().Trim().ToUpper().Equals("RIGHT"))
                boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Right;
            if (dr["align"].ToString().Trim().ToUpper().Equals("LEFT"))
                boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Left;
            if (dr["align"].ToString().Trim().ToUpper().Equals("CENTER"))
                boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center;
 
            if (dr["width"].ToString().Length == 0)
                boundColumn.HeaderStyle.Width = 100;
            else
                boundColumn.HeaderStyle.Width = Convert.ToInt32(dr["width"].ToString().Trim());
 
            RadGrid1.MasterTableView.Columns.Add(boundColumn);
 }

<asp:PlaceHolder ID="PlaceHolder1" runat="server" />

The problem I am having is accessing the RadGrid in my other functions.

   protected void btn1AusePrint_Command(GridCommandEventArgs e)
    {
        RadGrid Grid1 = (RadGrid)PlaceHolder1.FindControl("RadGrid1");
 
       Grid1.PageSize = 1;                           // Set to one record per page when displaying document
 :
:
}

I get the following error on "Grid1.PageSize = 1;" when I build the solution

Error    1    'System.Web.UI.ControlCollection' does not contain a definition for 'Grid1' and no extension method 'Grid1' accepting a first argument of type 'System.Web.UI.ControlCollection' could be found (are you missing a using directive or an assembly reference?)   
Pat
Top achievements
Rank 1
 answered on 04 May 2011
5 answers
119 views
Hi,

I'm using the Outlook skin and the date in the month header is gray against blue background. So it's very hard to read it.
A screen shot image is attached. How do I change the font color to some light color such as "White"? Thanks.

Han
KJRB
Top achievements
Rank 1
 answered on 04 May 2011
9 answers
236 views
Hello guys!

When loading panel opens on Internet explorer 7 it's image doesn't show up. Does anyone knows why?

I'm attaching an image showing the problem.

The image is displayed properly on all other browsers: Opera, Firefox, Chrome and Safari. Only IE7 (a.k.a. crappy browser) does this.

Thanks!

Cezar
Archana
Top achievements
Rank 1
 answered on 04 May 2011
1 answer
187 views
Hi,

We've enabled RadCompression on a website that also uses an other 3rd party component which does it's own compression on it's response to AJAX requests to it's httphandler.
Because this component's gzip compression happens before the RadCompression the RadCompression causes the output to be double compressed.
When looking at the response header for this request it has a 'Content-Encoding' value of: 'gzip, gzip'. This causes the response to be dropped by browsers.

How should we handle this situation? We are not able to turn the other component's compression off.
Martin
Telerik team
 answered on 04 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?