Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
102 views
We are using the Telerik RAD controls (Q3 2008).

When I use the Property Builder to structure my grid, I'm able to set the grid up the way I want it to appear.  However, when I press the "OK" button, those changes are not persisted back to the source code.  At one time I thought I saw a confirmation dialogue way in the upper left hand corner after I press "OK", but I'm not longer able to see that.

Is there some soft of confirmation dialogue after pressing "OK", and if there is, how do we reset telerik so that the location of the dialogue is once again visible?

Or is there some other reason as to why my changes might not be saved to the file?

Thanks
Shinu
Top achievements
Rank 2
 answered on 26 Feb 2009
1 answer
131 views
Hi All

I have a requirement to have a grid that can display, update, insert and delete items from multiple tables.  I will have a dropdown list which contains the list of tables and then a grid which is bound when a dropdown list item is selected.  The grid is setup to generate the columns headers at runtime.

I basically have a function that takes a table name and returns the data for that table.  Select * from "table_name".

The problem comes when I need to insert, update and delete.  The grid control requires me to bind to a ObjectDataSource or SQLDataSource control.  I obviously cannot use a SQLDataSource as the table / select statement changes.  A ObjectDataSource could bind to a class that some how constructed the statements on the fly but you start to get issues.

Is there any simpler way of doing this ?  Has anyone done it before?  Would apperciate some help.

Thanks

Michael
Princy
Top achievements
Rank 2
 answered on 26 Feb 2009
3 answers
177 views
Hello,

Is there a way to have a RadGrid slider pagination control have its control and text on the same line.  With PagerStyle  Mode="Slider" I am getting the 'Page: X out of Y pages" text under the slider control - which works fine - Ideally I'd like to occupy less vertical space by having this same text but instead to the right of the slider...

Thanks in advance!
C#, VS2008, latest asp.net telerik libs
Princy
Top achievements
Rank 2
 answered on 26 Feb 2009
10 answers
397 views
In the same grid, I have a GridBoundColumn with MaxLength="50" and another GridBoundColumn with MaxLength="6". On the Edit Form both columns are represented by textboxes of the same width which is too short for one of them and too long for another. Is there a way to control textbox width without turning the columns into GridTemplateColumns?
Princy
Top achievements
Rank 2
 answered on 26 Feb 2009
3 answers
90 views
Hi,

How can I make a row inside the grid selected/highlighted using javascript?

I tried assigning some index to the property sender._selectedIndexes[0] but it doesn't seem to work.

Please guide.
Shinu
Top achievements
Rank 2
 answered on 26 Feb 2009
1 answer
144 views
I am having a really hard time trying to figure out how to specify the width of a textbox in the insert/edit forms of a grid.  This should be really, really easy...but I can't figure it out.
Princy
Top achievements
Rank 2
 answered on 26 Feb 2009
2 answers
270 views
Hi, I have an issue where the rad chart control is putting a large amount of chart renders into cache. Is there any way to turn this off?

To help setup the scenario we only use the charting control on one page, and that page is only viewable from a PC which displays the chart on a monitor. It's to help our sales guys and bosses to see turn around time for quotes. So it isn't an issue where a lot of people are hitting the chart because only one PC does. The page auto-refreshes the data once a minute using the Microsoft Ajax Timer control so no page post-back occurs. If I clear the cache, within a minute about 100 renders are cached again. The cache key is something like this "2888f173-6587-4610-aa66-c1b7ab206eb2_chart_ctl00$cphMainContent$chartTurnAround" cphMainContent is the content place holder ID, and chartTurnaround is the ID I gave to the chart.

Thanks,
Cary.

Code included below:
Telerik Rad Ajax chart version 2008.3.1105.35

                    <telerik:RadChart ID="chartTurnAround" runat="server" Skin="BlueStripes" Width="700px" 
                        SkinsOverrideStyles="true"
                    </telerik:RadChart> 

            chartTurnAround.DataSource = var 
            Dim ser As New Telerik.Charting.ChartSeries("Turn Around", Telerik.Charting.ChartSeriesType.Bar) 
 
            ser.DataLabelsColumn = "TurnAround" 
            ser.DataYColumn = "TurnAround" 
 
            chartTurnAround.Series.Add(ser) 
            chartTurnAround.SeriesOrientation = Telerik.Charting.ChartSeriesOrientation.Horizontal 
            chartTurnAround.PlotArea.XAxis.DataLabelsColumn = "FullName" 
 
            Dim max As Decimal = (From v In var Select v.TurnAround).Max() 
            max = IIf(max = 0, 10, max) 
            chartTurnAround.PlotArea.YAxis.AutoScale = False 
            chartTurnAround.PlotArea.YAxis.MinValue = 0 
            chartTurnAround.PlotArea.YAxis.MaxValue = max + (max Mod 10) 
            chartTurnAround.PlotArea.YAxis.Step = 10 
 
            chartTurnAround.ChartTitle.TextBlock.Text = "Average TurnAround Time (days)" 
            chartTurnAround.Legend.Visible = False 
            chartTurnAround.AutoLayout = True 
 
            chartTurnAround.PlotArea.EmptySeriesMessage.TextBlock.Text = "No Tasks have been completed in the last 7 days." 
            chartTurnAround.DataBind() 
 

Cary
Top achievements
Rank 2
 answered on 25 Feb 2009
2 answers
151 views
Does anyone know how I can change the Type for the RadNumericTextBox on the clientside?  I have a textbox that is defaulted to a Percent and need to switch between Percent and Currency.  I have a checkbox that the user selectes to switch between Percent and Currency. 

Thanks,

Jason
Jason Maronge
Top achievements
Rank 1
 answered on 25 Feb 2009
2 answers
102 views

in a grid with multiselection turned on, I'd like to be able to examine the underlying data row when each row is being created so I can decide whether or not I want that row in the table to be selectable or not (i.e. whether to show the checkbox on the far left for selection).

With the normal datagrid I could use code such as the below to examine each row as it was being created.  How do I do this with the radgrid?

 

Private

Sub MyOnItemCreated(ByVal sender As Object, ByVal e As GridViewRowEventArgs) Handles dgmain.RowCreated

 

 

Dim status As String

 

 

 

 

Dim flockId As String

 

 

 

 

Dim requesterEmail As String

 

 

 

 

If (Not (e.Row.DataItem Is Nothing)) Then

 

 

 

flockId = DataBinder.Eval(e.Row.DataItem,

"flockid").ToString

 

status = DataBinder.Eval(e.Row.DataItem,

"status").ToString

 

requesterEmail = DataBinder.Eval(e.Row.DataItem,

"requesteremail").ToString

 

 

If (e.Row.RowType = DataControlRowType.DataRow) Then

 

 

 

 

If ((status = "P") AndAlso (requesterEmail = CustomPrincipal.UserEmail OrElse User.IsInRole("dms") OrElse User.IsInRole("tms"))) Then

 

 

 

sbAll +=

"document.aspnetForm.cxitem" + flockId + ".checked=true;" + Chr(10)

 

sbNone +=

"document.aspnetForm.cxitem" + flockId + ".checked=false;" + Chr(10)

 

 

End If

 

 

 

 

End If

 

 

 

 

End If

 

 

 

 

End Sub

 

Robert Vreeland
Top achievements
Rank 1
 answered on 25 Feb 2009
4 answers
136 views

We recently upgraded our radeditor from classic version to ASP.Net Ajax version (Version 2008.3 1125) with default content filters. Immediately we started hearing from our customers that the new editor is adding

1. lot of "span" tags and "div" tags where none are required.
2. lot of "Undefinied: ;" style tags.

We looked at the release history of your latest service pack (Version 2008.3 1314) and noticed that Telerik has fixed quite a few issues. So we have decided to upgrade our radcontrols to the latest service pack as soon as possible.

Here is the actual question:

What are the different things we need to do, to make sure the editor is producing so much of this extra code in HTML mode?

Please respond.

Thanks, Lakshman

Lakshman
Top achievements
Rank 1
 answered on 25 Feb 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?