RadGrid grSampleWorkSheet =
new
RadGrid();
grSampleWorkSheet.ID = WSheet.Name +
"-"
+ m_LoopCount.ToString();
//grSampleWorkSheet.Columns.Remove(0);// = false;
grSampleWorkSheet.ShowGroupPanel = Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings[
"ShowGroupPanel"
]);
grSampleWorkSheet.AllowPaging = Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings[
"AllowPaging"
]);
grSampleWorkSheet.ShowFooter = Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings[
"ShowFooter"
]);
grSampleWorkSheet.ShowStatusBar = Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings[
"ShowStatusBar"
]);
grSampleWorkSheet.Skin = Convert.ToString(System.Configuration.ConfigurationManager.AppSettings[
"TelerikSkin"
]);
grSampleWorkSheet.MasterTableView.PagerStyle.Mode = GridPagerMode.NumericPages;
WorkSheetID = WSheet.ID;
strWorkSheetID = objWorkSheet[0].Name;
//if (ddlWorkSheets.SelectedValue == strWorkSheetID)
//{
dtworksheet = GenerateNormalizedRateSheet.GenerateDomesticSampleData(objRateSheet, WorkSheetID,
out
ErrorCode);
if
(
string
.IsNullOrEmpty(ErrorCode))
{
if
(dtworksheet !=
null
&& dtworksheet.Rows.Count > 0)
{
grSampleWorkSheet.DataSource = dtworksheet;
grSampleWorkSheet.Columns.Remove(0);
grSampleWorkSheet.DataBind();
grSampleWorkSheet.MasterTableView.DataSource = dtworksheet;
grSampleWorkSheet.MasterTableView.Columns.Remove(0);
grSampleWorkSheet.MasterTableView.DataBind();
Label lblDomesticTitle =
new
Label();
lblDomesticTitle.ID =
"lbl-"
+ WorkSheetID;
lblDomesticTitle.Text =
"<h5>"
+ strWorkSheetID +
"</h5>"
;
PhSampleData.Controls.Add(lblDomesticTitle);
PhSampleData.Controls.Add(grSampleWorkSheet);
btnNextStep.Enabled =
true
;
}
}
Hi - I found something strange in the RadGrid. I have a grid which has four frozen columns and a number dynamic columns. Each column is filled with a textbox, and this area scrolls to the right.
When scrolling across dynamic columns, it works fine using the horizontal scroll bar. But when I tab through the text boxes, some frozen columns get lost, and the headers do not match up to the columns they belong to.
Please see the attached screen shot. We have a telerik license, is there any way to do a screen share with a telerik engineer to troubleshoot?
Thanks
Daniel
Private
Const
ItemsCityPerRequest
As
Integer
= 10
Public
Shared
Function
GetCityNames(
ByVal
context
As
RadComboBoxContext)
As
RadComboBoxData
Dim
data
As
DataTable = Getcomuni(context.Text)
Dim
comboData
As
New
RadComboBoxData()
Dim
itemOffset
As
Integer
= context.NumberOfItems
Dim
endOffset
As
Integer
= Math.Min(itemOffset + ItemsCityPerRequest, data.Rows.Count)
comboData.EndOfItems = endOffset = data.Rows.Count
Dim
result
As
New
List(Of RadComboBoxItemData)(endOffset - itemOffset)
For
i
As
Integer
= itemOffset
To
endOffset - 1
Dim
itemData
As
New
RadComboBoxItemData()
itemData.Text = data.Rows(i)(
"descrizione"
).ToString()
itemData.Value = data.Rows(i)(
"id"
).ToString()
result.Add(itemData)
Next
REM
ottengo il messaggio dei record selezionati
comboData.Message = GetStatusMessage(endOffset, data.Rows.Count)
comboData.Items = result.ToArray()
Return
comboData
End
Function
Private
Shared
Function
GetStatusMessage(
ByVal
offset
As
Integer
,
ByVal
total
As
Integer
)
As
String
If
total <= 0
Then
Return
"Nessun dato"
End
If
Return
[
String
].Format(
"Record <b>1</b>-<b>{0}</b> out of <b>{1}</b>"
, offset, total)
End
Function
Private
Shared
Function
Getcategoria(
ByVal
text
As
String
)
As
DataTable
Dim
adapter
As
New
SqlDataAdapter(
"SELECT * from Tab_categorie WHERE descrizione LIKE @text + '%'"
, ConfigurationManager.ConnectionStrings(
"TrycontactString"
).ConnectionString)
adapter.SelectCommand.Parameters.AddWithValue(
"@text"
, text)
Dim
data
As
New
DataTable()
adapter.Fill(data)
Return
data
End
Function
<
telerik:RadComboBox
ID
=
"Radcity"
Runat
=
"server"
Height
=
"145px"
LoadingMessage
=
"Caricamento..."
Width
=
"270px"
EmptyMessage
=
"Seleziona la tua città "
EnableLoadOnDemand
=
"True"
EnableVirtualScrolling
=
"True"
ShowMoreResultsBox
=
"True"
Filter
=
"StartsWith"
>
<
WebServiceSettings
Method
=
"GetCityNames"
Path
=
"index.aspx"
/>
</
telerik:RadComboBox
>
I'm trying to find/reference the RADimagegallery ID within a RadDataList via PageLoad() javascript. How do I reference the RadImageGallery control inside a RadDataList to START the slideshow automatically.
function pageLoad() {
var parentElement = $get("<%= RentalListingDataList.ClientID%>");
$find('<%=RadImageGallery1.ClientID%>').playSlideshow(); <=== this errors
}
Note : I am loading the images from the directory and filename from the database
Hi
I am using asp.net vb 2010 . I have a rad grid with pagination . Is there any code sample to print only rad grid data displayed in all rad grid pages from the server side code .
Thanks for your help
Rajeswari Raman
Hi Team,
I am trying to Filter a RadGrid which gets the data from a custom class using dataBind() method. i have used Jquery and WebMethods for this.
Now when i have activated the AllowFiltering option in RadGrid and GridBoundColumns it does not automatically filter the data in the Rad Grid.
As a Workaround I am writing my own code to override the radgrid filter functions and filter the data on "OnInput" event and "OnKetPress" events.
Is this a limitation with Radgrid or am i making any mistake while trying to use the filtering option of RadGrid?
Regards
Agasthya