Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
95 views
hi,
i want to reset the selected tab to previously selected based on some criteria. how can i get the previously selected tab on server code?

thanks for any help



Shinu
Top achievements
Rank 2
 answered on 25 Aug 2009
2 answers
140 views
Hi all, 

I am trying to populate some text in the textbox while i click on the row of the RadGrid.
The text that I am trying to populate are from the server side process result.
I failed to populate those text even though i have set the autopostback event to both control.
Am I missing anything? Please advise.

Thanks in advance.

Regards,
Lim

Lim
Top achievements
Rank 1
 answered on 25 Aug 2009
2 answers
88 views
Whether or not this is done in the style builder, I'm looking for the best way to make the following adjustments to the WebBlue button skin:
* adjust padding between text in button and button edge
* adjust font family,color,style in button
* ability to override particular button background colors

For example, we want to have less spacing between the button text and the edge of the button.  We want to use a smaller font of a different color. 

And if possible, we want some buttons (like a cancel button) have a different background color to make it stand out more.  I kind of had a solution to this, where I overrode particular styles within a div tag, and wrapped the cancel buttons in that div.  However once the new version came out this broke (as of q2 I think).

It looks like this type of adjustment cannot be made to buttons using the visual styler.  Is this correct?  If not, what are the particular styles that need to be overridden to accomplish these items?

Thx!
Martin
Telerik team
 answered on 25 Aug 2009
1 answer
126 views
When you edit a RadGrid record, we can clearly see the text boxes, one over the other being displayed giving a user the option to change each column of records.  Is there an option to hide any of the text boxes?  I included a column in the text box but hid the column and when editing the record, I don't want that particular column being displayed if a user has to edit the record.  Thanks!
Princy
Top achievements
Rank 2
 answered on 25 Aug 2009
2 answers
121 views
Hi,

How to change the GridGroupByField header text to a value which is not part of GroupByFields?

Thanks
Venkat Ganesh
Top achievements
Rank 1
 answered on 24 Aug 2009
1 answer
131 views
I am creating a grid at runtime with the code below. The issue is that the checkboxs in the checkbox column are disabled/readonly. I need these to be enabled so that users can check and uncheck them.

Here's my code:

 

Dim rgOnOrder As RadGrid = New RadGrid

 

rgOnOrder.AllowMultiRowEdit =

True

 

rgOnOrder.ID =

"rgOnOrder"

 

rgOnOrder.DataSourceID =

"WebOnOrderSource"

 

rgOnOrder.MasterTableView.DataKeyNames =

New String() {"VendorStyle"}

 

rgOnOrder.Skin =

"WebBlue"

 

rgOnOrder.Width = Unit.Percentage(98)

rgOnOrder.PageSize = 15

rgOnOrder.AllowPaging =

True

 

rgOnOrder.AllowSorting =

True

 

rgOnOrder.AllowFilteringByColumn =

False

 

rgOnOrder.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric

rgOnOrder.AutoGenerateColumns =

False

 

rgOnOrder.ExportSettings.IgnorePaging =

True

 

rgOnOrder.ExportSettings.OpenInNewWindow =

True

 

rgOnOrder.ExportSettings.ExportOnlyData =

True

 

rgOnOrder.ExportSettings.FileName =

"webOnOrder"

 

rgOnOrder.ExportSettings.Pdf.PageWidth = 11

rgOnOrder.ExportSettings.Pdf.PageHeight = 8.5

 

'Master table - Customers (I in hierarchy level)

 

rgOnOrder.MasterTableView.PageSize = 15

 

'Add columnsn

 

 

Dim boundColumn As GridBoundColumn

 

boundColumn =

New GridBoundColumn

 

boundColumn.DataField =

"ItemKey"

 

boundColumn.HeaderText =

"CMS Key"

 

boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

rgOnOrder.MasterTableView.Columns.Add(boundColumn)

boundColumn =

New GridBoundColumn

 

boundColumn.DataField =

"VendorStyle"

 

boundColumn.HeaderText =

"Vendor Style"

 

boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

rgOnOrder.MasterTableView.Columns.Add(boundColumn)

boundColumn =

New GridBoundColumn

 

boundColumn.DataField =

"Division"

 

boundColumn.HeaderText =

"Division"

 

boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

rgOnOrder.MasterTableView.Columns.Add(boundColumn)

boundColumn =

New GridBoundColumn

 

boundColumn.DataField =

"Department"

 

boundColumn.HeaderText =

"Department"

 

boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

rgOnOrder.MasterTableView.Columns.Add(boundColumn)

boundColumn =

New GridBoundColumn

 

boundColumn.DataField =

"Class"

 

boundColumn.HeaderText =

"Class"

 

boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

rgOnOrder.MasterTableView.Columns.Add(boundColumn)

boundColumn =

New GridBoundColumn

 

boundColumn.DataField =

"Description"

 

boundColumn.HeaderText =

"Description"

 

boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

rgOnOrder.MasterTableView.Columns.Add(boundColumn)

boundColumn =

New GridBoundColumn

 

boundColumn.DataField =

"OnOrder"

 

boundColumn.HeaderText =

"On Order"

 

boundColumn.DataFormatString =

"{0:###,###}"

 

boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

rgOnOrder.MasterTableView.Columns.Add(boundColumn)

boundColumn =

New GridBoundColumn

 

boundColumn.DataField =

"TotalOnOrder"

 

boundColumn.HeaderText =

"Total On Order"

 

boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

boundColumn.DataFormatString =

"{0:###,###}"

 

rgOnOrder.MasterTableView.Columns.Add(boundColumn)

boundColumn =

New GridBoundColumn

 

boundColumn.DataField =

"FirstFlowDate"

 

boundColumn.HeaderText =

"First Flow Date"

 

boundColumn.DataFormatString =

"{0:d}"

 

boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

rgOnOrder.MasterTableView.Columns.Add(boundColumn)

boundColumn =

New GridBoundColumn

 

boundColumn.DataField =

"LastFlowDate"

 

boundColumn.HeaderText =

"Last Flow Date"

 

boundColumn.DataFormatString =

"{0:d}"

 

boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

rgOnOrder.MasterTableView.Columns.Add(boundColumn)

boundColumn =

New GridBoundColumn

 

boundColumn.DataField =

"Price"

 

boundColumn.HeaderText =

"Price"

 

boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

boundColumn.DataFormatString =

"{0:$###.##}"

 

boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Right

rgOnOrder.MasterTableView.Columns.Add(boundColumn)

boundColumn =

New GridBoundColumn

 

boundColumn.DataField =

"txtStatus"

 

boundColumn.HeaderText =

"Item Status"

 

boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center

rgOnOrder.MasterTableView.Columns.Add(boundColumn)

boundColumn =

New GridBoundColumn

 

boundColumn.DataField =

"Pulled By"

 

boundColumn.HeaderText =

"Pulled By"

 

boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center

rgOnOrder.MasterTableView.Columns.Add(boundColumn)

 

 

Dim checkcolumn As GridCheckBoxColumn

 

checkcolumn =

New GridCheckBoxColumn

 

checkcolumn.HeaderText =

"Print Ticket?"

 

checkcolumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

checkcolumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center

checkcolumn.ReadOnly =

False

 

rgOnOrder.MasterTableView.Columns.Add(checkcolumn)

 

boundColumn =

New GridBoundColumn

 

boundColumn.DataField =

"PullBTN"

 

boundColumn.HeaderText =

"Add to Pull List"

 

boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center

rgOnOrder.MasterTableView.Columns.Add(boundColumn)

boundColumn =

New GridBoundColumn

 

boundColumn.DataField =

"EditItem"

 

boundColumn.HeaderText =

"Edit Item"

 

boundColumn.HeaderStyle.HorizontalAlign = HorizontalAlign.Center

boundColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center

rgOnOrder.MasterTableView.Columns.Add(boundColumn)

rgOnOrder.MasterTableView.EditMode = GridEditMode.InPlace

 

Try

 

 

Me.PlaceHolder1.Controls.Clear()

 

 

Catch ex As Exception

 

 

End Try

 

 

Me.PlaceHolder1.Controls.Add(rgOnOrder)

Thanks in advance for any help!

 

Daniel
Telerik team
 answered on 24 Aug 2009
6 answers
276 views
Hi everyone

I must be missing something but...

how can I determine which column a clicked cell belongs to (on the client?)


I can see plenty of code examples for row selection and iterating through columns but not for determining which column a cxel belongs to.

many thanks
Richard
Kris
Top achievements
Rank 1
 answered on 24 Aug 2009
1 answer
98 views
Hello,
I have my scheduler up and running, yet I'm trying to customize the "look and feel" for my scheduler but finding very hard to follow the examples online.  Could someone please give me step by step on how to customize my scheduler? Thank you in advance.

QB
Peter
Telerik team
 answered on 24 Aug 2009
2 answers
178 views
Hi,

Unfortunatelly this is related to a previous post of mine but its a different issue I am having now, so I decided to create a new thread.

I have a Radgrid with 3 hierarchy Grids which is made completely in the Code Behind using C#.  I have binded a RadtoolBar to the grid and created Column template based on a checkBox.

My application is suppossed to do the following:

1.Load a grid with new information from our new customers.
2.The hierarchy grids loads additional customer data, the products he has browsed, and the third hierarchy grid loads accounts from our database which share similar info with our new customer, so we can eventually disable these duplicate accounts.
3. The main grid and the third hierarchy grid have a checkbox column from a column template which on the customer side can be checked and disabled after the disable button from the radtoolbar has been pressed.

These two previous points I have been able to do.

Working on the third point has caused me alot of problems. In the checkbox template I was passing the customer id in the in the checkbox.id value, then via javascript I was navigating through all the checkbox inputs and determining which one was checked, then I would concatenate the customer ids into a hidden field, force a __doPostBack and disable the accounts, which worked great.

But this is my problem, when I expand the hierarchy grid with the duplicates, the names of the checkbox controls reset to a standard clientid and don't reload the id I had put in there before, so if I click a checkbox in the main grid the value is not passed, but in the hierarchy grid the value is passed, so it is one for another bassically...

One of the columns of the grid has the client Id, is it possible for me to determine which checkbox is checked from the grid and the hierarchy grid, then get the client Id, so I can disable the account?

Please let me know.
Thanks.
Daniel
Top achievements
Rank 1
 answered on 24 Aug 2009
2 answers
117 views
So how do you change the CSS for the RadControls?  Please give me an example of how to change the black themed Radgrid header and the rows please.  I need to know asap.  Thanks! 
Brett
Top achievements
Rank 1
 answered on 24 Aug 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?