<
telerik:GridTemplateColumn
HeaderText
=
"Product ID"
HeaderStyle-Font-Bold
=
"true"
AllowFiltering
=
"true"
DataField
=
"ProductID"
>
<
EditItemTemplate
>
<
telerik:RadComboBox
ID
=
"RadCbProductIDEdit"
Skin
=
"Office2007"
runat
=
"server"
MarkFirstMatch
=
"true"
AllowCustomText
=
"true"
DataValueField
=
"ProductID"
EmptyMessage
=
"Please select a ProductID "
DataTextField
=
"ProductID"
DataSourceID
=
"LinqDataSource1"
Height
=
"100px"
>
</
telerik:RadComboBox
>
</
EditItemTemplate
>
<
InsertItemTemplate
>
<
telerik:RadComboBox
ID
=
"RadcbProductIDInsert"
runat
=
"server"
Skin
=
"Office2007"
MarkFirstMatch
=
"true"
AllowCustomText
=
"true"
DataValueField
=
"ProductID"
EmptyMessage
=
"Please select a ProductID "
DataTextField
=
"ProductID"
DataSourceID
=
"LinqDataSource1"
Height
=
"100px"
>
</
telerik:RadComboBox
>
</
InsertItemTemplate
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lblProductID"
runat
=
"server"
Text='<%# Bind("ProductID") %>'></
asp:Label
>
</
ItemTemplate
>
<
HeaderStyle
Font-Bold
=
"True"
/>
</
telerik:GridTemplateColumn
>
<
asp:LinqDataSource
ID
=
"LinqDataSource1"
runat
=
"server"
ContextTypeName
=
"LPSFPrototypeScreens.tblProduct"
EntityTypeName
=
""
Select
=
"new (ProductID)"
TableName
=
"tblProductFeatures"
>
Protected
Sub
Button1_Click(
ByVal
sender
As
Object
,
ByVal
e
As
EventArgs)
Handles
Button1.Click
Dim
radgrid2
As
New
RadGrid
radgrid2.AutoGenerateColumns =
True
radgrid2.ID =
"RadGrid2"
Me
.PlaceHolder1.Controls.Add(radgrid2)
connSql.ConnectionString = sqlConn.ToString()
Dim
poSqlCom
As
New
SqlCommand(
"dbo.getCurrQtrAll"
, connSql)
poSqlCom.CommandType = CommandType.StoredProcedure
poSqlCom.Parameters.AddWithValue(
"@UID"
,
"SomeoneElse"
)
Dim
adapter
As
New
SqlDataAdapter(poSqlCom)
Dim
links
As
New
DataTable()
Try
adapter.Fill(links)
Catch
ex
As
Exception
'lblResult.Text = ex.Message
If
connSql.State = ConnectionState.Open
Then
connSql.Close()
End
If
End
Try
radgrid2.DataSource = links
radgrid2.Rebind()
radgrid2.ExportSettings.Excel.FileExtension =
"xls"
radgrid2.ExportSettings.FileName =
"Cur_Qtr_Rpt"
radgrid2.ExportSettings.ExportOnlyData =
True
radgrid2.ExportSettings.IgnorePaging =
True
radgrid2.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML
radgrid2.MasterTableView.ExportToExcel()
End
Sub
<
telerik:RadGrid
ID
=
"timesheetGrid"
runat
=
"server"
GridLines
=
"None"
Skin
=
"Windows7"
AllowSorting
=
"True"
ShowGroupPanel
=
"True"
AutoGenerateColumns
=
"False"
AllowPaging
=
"True"
PageSize
=
"15"
ShowStatusBar
=
"True"
AllowFilteringByColumn
=
"True"
AllowMultiRowSelection
=
"True"
OnNeedDataSource
=
"timesheetGrid_NeedDataSource"
OnPreRender
=
"timesheetGrid_PreRender"
ViewStateMode
=
"Enabled"
HeaderStyle-HorizontalAlign
=
"Center"
OnEditCommand
=
"timesheetGrid_EditCommand"
>
<
ClientSettings
EnableRowHoverStyle
=
"true"
AllowColumnsReorder
=
"True"
ReorderColumnsOnClient
=
"True"
AllowDragToGroup
=
"True"
>
<
Selecting
AllowRowSelect
=
"True"
/>
<
ClientEvents
OnRowDblClick
=
"RowDblClick"
/>
</
ClientSettings
>
<
MasterTableView
DataKeyNames
=
"ID"
EditMode
=
"EditForms"
>
<
RowIndicatorColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
RowIndicatorColumn
>
<
ExpandCollapseColumn
>
<
HeaderStyle
Width
=
"20px"
></
HeaderStyle
>
</
ExpandCollapseColumn
>
<
CommandItemSettings
ExportToPdfText
=
"Export to Pdf"
></
CommandItemSettings
>
<
Columns
>
<
telerik:GridClientSelectColumn
UniqueName
=
"ClientSelectColumn"
/>
<
telerik:GridBoundColumn
DataField
=
"ID"
HeaderText
=
"ID"
UniqueName
=
"ID"
Visible
=
"True"
ReadOnly
=
"true"
FilterControlWidth
=
"30px"
HeaderStyle-Width
=
"50px"
>
<
HeaderStyle
Width
=
"50px"
></
HeaderStyle
>
</
telerik:GridBoundColumn
>
<
telerik:GridDateTimeColumn
DataField
=
"Date"
DataType
=
"System.DateTime"
HeaderText
=
"Date"
UniqueName
=
"DateFrom"
ReadOnly
=
"true"
DataFormatString
=
"{0:dd/MM/yyyy}"
AllowFiltering
=
"false"
HeaderStyle-Width
=
"75px"
>
<
HeaderStyle
Width
=
"75px"
></
HeaderStyle
>
</
telerik:GridDateTimeColumn
>
<
telerik:GridBoundColumn
DataField
=
"User.UserName"
HeaderText
=
"User"
UniqueName
=
"User"
ReadOnly
=
"true"
>
</
telerik:GridBoundColumn
>
<
telerik:GridNumericColumn
UniqueName
=
"Duration"
HeaderText
=
"Duration (Hrs)"
DataType
=
"System.Double"
DataField
=
"Duration"
FilterControlWidth
=
"50px"
>
<
HeaderStyle
Width
=
"80px"
></
HeaderStyle
>
<
ItemStyle
HorizontalAlign
=
"Right"
/>
</
telerik:GridNumericColumn
>
<
telerik:GridBoundColumn
DataField
=
"ShortDescription"
HeaderText
=
"Description"
UniqueName
=
"Description"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"DocketNo"
HeaderText
=
"Docket No"
UniqueName
=
"DocketNo"
ReadOnly
=
"true"
FilterControlWidth
=
"50px"
HeaderStyle-Width
=
"70px"
>
<
HeaderStyle
Width
=
"70px"
></
HeaderStyle
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"FileCode"
HeaderText
=
"FileCode Name"
UniqueName
=
"FileCode"
HeaderStyle-Width
=
"100px"
FilterControlWidth
=
"60px"
>
<
HeaderStyle
Width
=
"100px"
></
HeaderStyle
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"FileCodeID"
HeaderText
=
"FileCode ID"
UniqueName
=
"FileCodeID"
Visible
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"CostCenter"
HeaderText
=
"Cost Center"
UniqueName
=
"CostCenter"
HeaderStyle-Width
=
"70px"
FilterControlWidth
=
"40px"
>
<
HeaderStyle
Width
=
"70px"
></
HeaderStyle
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"CostCenterID"
HeaderText
=
"Cost Center ID"
UniqueName
=
"CostCenterID"
Visible
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"CompanyID"
HeaderText
=
"Company ID"
UniqueName
=
"CompanyID"
Visible
=
"false"
>
</
telerik:GridBoundColumn
>
<
telerik:GridCheckBoxColumn
DataField
=
"IsOvertime"
DataType
=
"System.Boolean"
HeaderText
=
"Overtime"
UniqueName
=
"Overtime"
ReadOnly
=
"true"
>
</
telerik:GridCheckBoxColumn
>
</
Columns
>
<
EditFormSettings
UserControlName
=
"UserControls/TimesheetEdit.ascx"
EditFormType
=
"WebUserControl"
>
<
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
>
</
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
HeaderStyle
HorizontalAlign
=
"Center"
></
HeaderStyle
>
<
PagerStyle
Mode
=
"NumericPages"
VerticalAlign
=
"Bottom"
/>
<
FilterMenu
EnableImageSprites
=
"False"
>
</
FilterMenu
>
<
HeaderContextMenu
CssClass
=
"GridContextMenu GridContextMenu_Windows7"
>
</
HeaderContextMenu
>
</
telerik:RadGrid
>
Hello,
I have a problem with radwindow control (using IE8).
I'm using scriptmanager and updatepanel controls in my application (please view the attached sample in http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=400607).
The webpage is saving history points with no problems, until I show the radwindow control. If I open the radwindow then the history points are deleted.
Note: I checked this issue in IE7, it is working with no problems. The problem is in IE8.
I checked with microsoft support this issue. But they told me that it is related some how to the radwindow itself. So plaese, I need your help.
Please look at the following situations:
Good situation:
1) click "Main Attractions" checkbox
2) click "Shopping & Fashion" checkbox
3) Click "Tel Aviv" Linkbutton.
4) Click "Netanya" Linkbutton.
5) Click "Eilat" Linkbutton.
6) Cick the browser back button few times (THIS SHOWS YOU THAT THE HISTORY POINTS ARE SAVED AND USED)
Bad Situation 1:
1) click "Main Attractions" checkbox
2) click "Shopping & Fashion" checkbox
3) Click "Tel Aviv" Linkbutton.
4) Click "Netanya" Linkbutton.
5) Click "Eilat" Linkbutton.
6) Click "Full Screen" button in order to open the map in full screen mode (Radwindow).
7) Cick the browser back button few times (THIS SHOWS YOU THAT THE HISTORY POINTS ARE DELETED)
Bad Situation 2:
1) click "Main Attractions" checkbox
2) click "Shopping & Fashion" checkbox
3) Click "Tel Aviv" Linkbutton.
4) Click "Netanya" Linkbutton.
5) Click "Eilat" Linkbutton.
6) Click the "About" linkbutton and then click close.
7) Cick the browser back button few times (THIS SHOWS YOU THAT THE HISTORY POINTS ARE DELETED)
So, I need to enable the user to go back and forward using the browser buttons even after opeining the radwindow.
Please, I need your help in order to solve this issue.
This issue make problem for me with my client.
It is appricited to send me the modified code.
Regards,
Bader
UseStaticHeaders
is working very fine, but when I set the direction of the grid to RTL it gave me an error in graphics because the empty part (above the scroller) in the header is still be drawing in the right side, which causes a displacement in the grid columns.
Could you please help in?
<
telerik:RadCodeBlock
ID
=
"RadCodeBlock"
runat
=
"server"
>
<
script
type
=
"text/javascript"
>
function InitiateAsyncRequestByCombo(sender, eventArgs) {
var ajaxManager = $find("<%= RadAjaxManager.GetCurrent(this.Page).ClientID %>");
ajaxManager.ajaxRequestWithTarget("<%= FilterRadComboBox.UniqueID %>", sender.get_selectedItem().get_value());
return false;
}
</
script
>
</
telerik:RadCodeBlock
>
<Selecting AllowRowSelect="true" />
</ClientSettings>
Now when I select any row in the Grid. There will a check box in the Grid ItemTemplate. that should be checked
and unchecked. please help me on this issue.