| RadChart2.PlotArea.YAxis2.Appearance.CustomFormat = "0,, M"; |
| RadChart1.Series[1].Appearance.LabelAppearance.LabelLocation = Telerik.Charting.Styles.StyleSeriesItemLabel.ItemLabelLocation.Inside; |
| RadChart1.Series[1].Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.BottomRight; |
| RadChart1.Series[1].Appearance.LabelAppearance.LabelLocation = Telerik.Charting.Styles.StyleSeriesItemLabel.ItemLabelLocation.Inside; |
| RadChart1.Series[1].Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.TopLeft; |
<Columns>
<telerik:GridTemplateColumn DataField="CID" HeaderText="CID"
SortExpression="CID" HeaderStyle-Wrap="false" UniqueName="CID">
<ItemTemplate>
<asp:Label ID="CIDLabel" runat="server" Text='<%# Eval("CID") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle Wrap="False"></HeaderStyle>
</telerik:GridTemplateColumn>
Protected
Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
Dim item As GridDataItem
Dim x As String
If e.CommandName = "Select" Then
item =
DirectCast(e.Item, GridDataItem)
x = item(
"CID").Text
Session(
"cidl") = item("CID").Text
End If
End Sub
RadColorPicker does not display correctly in Internet Explorer 6. The color sliding bar is on place on the bottom instead of next to the color pallette.
See image: http://www.flickr.com/photos/quangvo/3968182930/in/set-72157622360470375/
Please help thank you.
<telerik:RadGrid ID="gridCategories" Width="800px" runat="server" AutoGenerateColumns="false" Skin="Sunset"
ShowStatusBar="true" AllowMultiRowSelection="false" OnNeedDataSource="gridCategories_NeedDataSource"
AllowPaging="true" AllowSorting="true" OnItemCommand="gridCategories_ItemCommand"
OnPreRender="gridCategories_PreRender" PageSize="10" OnItemDataBound="gridCategories_ItemDataBound">
<ClientSettings ClientEvents-OnPopUpShowing="popupShowing"></ClientSettings>
<MasterTableView HierarchyDefaultExpanded="false" EditMode="PopUp" HierarchyLoadMode="Client"
Width="800px" ShowHeadersWhenNoRecords="false" DataKeyNames="CategoryID" CommandItemDisplay="TopAndBottom">
<Columns>
<telerik:GridEditCommandColumn ItemStyle-Width="30" ButtonType="ImageButton" EditText="Edit">
<ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
</telerik:GridEditCommandColumn>
<telerik:GridBoundColumn DataField="CategoryName" ItemStyle-Width="400" HeaderText="Category">
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn HeaderText="Font Colour" ItemStyle-Width="65" ItemStyle-HorizontalAlign="Center">
<ItemTemplate>
<asp:Label ID="lblColor" runat="server" style='<%# "Background-Color:" + Eval( "Color") %>' Width="20px"> </asp:Label>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridBoundColumn DataField="UpdatedOn" HeaderText="Last Updated">
</telerik:GridBoundColumn>
<telerik:GridButtonColumn CommandName="Delete" Text="Delete"
UniqueName="DeleteColumn" ConfirmText="Delete this Category?" ButtonType="ImageButton">
<ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
</telerik:GridButtonColumn>
</Columns>
<EditFormSettings EditFormType="Template" PopUpSettings-Modal="true" CaptionFormatString="Manage Category"
PopUpSettings-Width="300">
<FormTemplate>
<br />
<table>
<tr>
<td>
Category Name:
</td>
<td>
<asp:TextBox ID="txtCategoryName" Text='<%# Bind( "CategoryName") %>' runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Color:
</td>
<td>
<telerik:RadColorPicker ID="rcpColor" ShowIcon="true" runat="server" PaletteModes="HSB" Preset="Standard" >
</telerik:RadColorPicker>
</td>
</tr>
<tr>
<td colspan="2" align="right">
<br />
<asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>'>
</asp:Button>
<asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
CommandName="Cancel"></asp:Button>
</td>
</tr>
</table>
<br />
</FormTemplate>
</EditFormSettings>
</MasterTableView>
<ClientSettings AllowExpandCollapse="true" EnableRowHoverStyle="true">
<Selecting AllowRowSelect="true" />
<Scrolling AllowScroll="false" ScrollHeight="200" UseStaticHeaders="True" SaveScrollPosition="True"
FrozenColumnsCount="1"></Scrolling>
</ClientSettings>
</telerik:RadGrid>
Protected Sub LoadModele(ByVal MakecodeID As String)
Dim connection As SqlConnection = CreateConnection()
Dim adapter As New SqlDataAdapter("SELECT * FROM MODEL WHERE Makecode=@Makecode ORDER By Model asc", connection)
adapter.SelectCommand.Parameters.AddWithValue(
"@Makecode", MakecodeID)
Dim dt As New DataTable()
adapter.Fill(dt)
RadComboBox2.DataTextField =
"Model"
RadComboBox2.DataValueField =
"ModelCode"
RadComboBox2.DataSource = dt
RadComboBox2.DataBind()
End Sub
--------------------------------------------------------------------------------------------
but I want to see in DATATEXTFIEL (model & modelyear) how to write them
I trie : RadComboBox2.DataTextField = "Model" & "Modelyear"
but they not work
Thanks for your help
(excuse for my englih)