Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
91 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
323 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
70 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
133 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
384 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
114 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
225 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
179 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
1 answer
149 views
Hi,

I'm trying to achieve something very complex and i hope you can help me with it.

Imagine there is an ActiveX control which outputs file name and paths (like C:\testDir\testFile.txt) when executed. Once i capture the OCX event, i would like to set this path information to RadAsyncUpload control without using the Browse button.

I have completed OCX part, captured the path information and event on client, i just don't know how to set the value to RadAsynctUpload control present on the page. Is this possible in any way so that once i give the filename, it will start uploading automatically ?

I am using Q1.2010 NET35

Best Regards,

Ozan GUNCELER
Peter Filipov
Telerik team
 answered on 04 May 2011
1 answer
61 views
I need to create my menu with columns for some of the parent menu items, so the format has to be like this

item1                                       item2                                      item3
item1               item2               item1              item2                item
item3               item4               item3              item3                item
item5               item6                                                              item


and so on, I'm using the sitemapdatasource to populate my data, so can I achieve this format using radmenu 
Kate
Telerik team
 answered on 04 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?