The pager control on the bottom of the grid shows with the first, prev on one line, pages on a second line, next, last on a third line, page size on a 4th line and item count/numb pages on the 5th line.
I have played with the wrap function, mode, etc of the pager and haven't had any significant changes, none good at least. I can change the text for he pager size and have it reflect so the changes are working. The grid is created in code and added to a placeholder control.
Below is the code above all the columns and the add to place holder, but it is the area where all the formatting is set.
Hopefully you can tell me what when wrong. The problem came up with I upgraded the website, so it had something to do with the changes. I am currently on 2009.3.1314.35
Thanks for your help
Randy Miller
gvReceipts.BorderStyle = BorderStyle.Solid
gvReceipts.BorderWidth = 1
gvReceipts.CellPadding = 3
'gvReceipts.Font.Size = 3
gvReceipts.ForeColor = Drawing.Color.Black
gvReceipts.GridLines = GridLines.Vertical
gvReceipts.AllowPaging = True
gvReceipts.AllowSorting = True
gvReceipts.AutoGenerateColumns = False
gvReceipts.Height = 415
gvReceipts.Width = 1350 ' Unit.Percentage(100)
gvReceipts
gvReceipts.FooterStyle.Width = gvReceipts.Width
gvReceipts.FooterStyle.Wrap = False
'gvReceipts.PagerStyle.Mode = GridPagerMode.Slider
gvReceipts.PagerStyle.Mode = GridPagerMode.NextPrevAndNumeric
'gvReceipts.PagerStyle.
gvReceipts.Skin = ""
gvReceipts.PagerStyle.Width = gvReceipts.Width
gvReceipts.MasterTableView.PagerStyle.Width = gvReceipts.Width
gvReceipts.PagerStyle.Wrap = False
gvReceipts.MasterTableView.PagerStyle.Wrap = gvReceipts.PagerStyle.Wrap
'gvReceipts.Skin = "Default"
gvReceipts.PageSize = 15
gvReceipts.GroupingEnabled = True
gvReceipts.ShowGroupPanel = True
gvReceipts.ClientSettings.AllowDragToGroup = True
'gvReceipts.HeaderStyle.BackColor = Drawing.ColorTranslator.FromHtml("#711000")
gvReceipts.HeaderStyle.Font.Bold = True
'gvReceipts.HeaderStyle.ForeColor = Drawing.ColorTranslator.FromHtml("#DDAA22")
'gvReceipts.HeaderStyle.BorderColor = Drawing.ColorTranslator.FromHtml("#711000")
gvReceipts.HeaderStyle.BorderStyle = BorderStyle.None
'gvReceipts.FooterStyle.BackColor = Drawing.ColorTranslator.FromHtml("#CCCCCC")
'gvReceipts.MasterTableView.DataMember = "Customers"
''gvReceipts.MasterTableView.PageSize = 15
gvReceipts.MasterTableView.AlternatingItemStyle.BackColor = Drawing.ColorTranslator.FromHtml("#6699FF")
gvReceipts.MasterTableView.AlternatingItemStyle.Wrap = False
RefreshData()
gvReceipts.MasterTableView.DataKeyNames = New String() {"rtn_pnref", "clientid"}
Dim colNewColumn As GridBoundColumn
Dim colNewButtonColumn As GridButtonColumn = New GridButtonColumn
colNewButtonColumn.ButtonType = GridButtonColumnType.ImageButton
colNewButtonColumn.HeaderText = "Select"
colNewButtonColumn.ImageUrl = "~/ClientServices/insurance/images/print.gif"
colNewButtonColumn.CommandName = "print"
colNewButtonColumn.AutoPostBackOnFilter = "True"
colNewButtonColumn.UniqueName = "colSelect"
colNewButtonColumn.ItemStyle.HorizontalAlign = HorizontalAlign.Center
gvReceipts.MasterTableView.Columns.Add(colNewButtonColumn)
I need help. I don’t know if I'm on the right track or if there is a better way to select a value from a foreign table.
I have 77.000 records in my foreign table and it creates loading problem when I open my EditForm.
I use an ObjectDataSource
| <asp:ObjectDataSource ID="DS_All" runat="server" SelectMethod="getAll" |
| TypeName="CRSUsing+CRSData" > |
| </asp:ObjectDataSource> |
The code behind looks like this
| public class loopUpData |
| { |
| string Id; |
| string Txt; |
| public String id |
| { |
| get { return Id; } |
| set { Id = value; } |
| } |
| public String txt |
| { |
| get { return Txt; } |
| set { Txt = value; } |
| } |
| } |
| public ICollection getSagsbudgetAll() |
| { |
| SqlConnection myConnection; |
| ArrayList LookUplist = new ArrayList(); |
| myConnection = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["SubjectConnect"].ToString()); |
| SqlCommand myCommand = new SqlCommand( |
| @"SELECT distinct CAST(ID AS VARCHAR) as Id, |
| (CAST(Id AS VARCHAR) + ' ' + Name) as Txt |
| FROM s_dim |
| ORDER BY Id", myConnection); |
| myConnection.Open(); |
| SqlDataReader reader = myCommand.ExecuteReader(); |
| while (reader.Read()) |
| { |
| loopUpData lookUp = new loopUpData(); |
| lookUp.id = (string)reader["Id"]; |
| lookUp.txt = (string)reader["Txt"]; |
| LookUplist.Add(lookUp); |
| } |
| myConnection.Close(); |
| reader.Close(); |
| myCommand.Dispose(); |
| if (LookUplist != null && LookUplist.Count > 0) |
| return LookUplist; |
| else return null; |
| } |
| <telerik:RadComboBox ID="Box1" AppendDataBoundItems="true" runat="server" DataSourceID="DS_All" |
| Width="300px" DataTextField="Txt" DataValueField="Id" AutoPostBack="True" |
| EnableVirtualScrolling="true" TabIndex="1" EnableLoadOnDemand="true" |
| ShowMoreResultsBox="true" |
| SelectedValue='<%# DataBinder.Eval(Container, "DataItem.Value") %>' |
| ReadOnly='<%# DataItem is GridInsertionObject %>' Skin="Office2007" > |
| </telerik:RadComboBox> |
Any Ideas on how to do this?
Thanks
Erik
| <telerik:GridCheckBoxColumn DataField="IsOptimumStaff" |
| HeaderText="Active" CurrentFilterFunction="EqualTo" |
| CurrentFilterValue="false" Visible="false" /> |
| <telerik:GridBoundColumn DataField="Region.RegionId" |
| HeaderText="Region Id" Visible="false" |
| CurrentFilterFunction="EqualTo" |
| CurrentFilterValue='<%= Session("CurrentRegion") %>' /> |