
var Rows = $find("<%=RadGrid1.ClientID %>").get_masterTableView().get_dataItems(); for (var i = 0; i < Rows.length; i++) { var row = Rows[i]; if (row != null && row.getDataKeyValue("Id") != null && row.getDataKeyValue("Id") == id) { $find("<%=RadGrid1.ClientID %>").get_masterTableView().get_dataItems()[i].set_selected("true"); break; } }<telerik:RadButton ID="BtnDelete" runat="server" OnClientClick="javascript:if(!confirm('This action will delete the selected customer. Are you sure?')){return false;}" Skin="Outlook" Text="Löschen" onclick="BtnDelete_Click"></telerik:RadButton><asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="return confirm('Are you sure to Continue?');" />I've a RadGrid and a ItemTemplateColumn which contains a RadTextBox, I'm binding the grid on client side by using a Webservice and on "OnRowDataBound" event i want to set value in the textbox (that is present inside the ItemTemplate)
<telerik:RadGrid ID="dgvDataEntry" runat="server">
<MasterTableView>
<Columns>
<telerik:GridTemplateColumn HeaderText="Attribute Name" DataField="AttrName" UniqueName="AttrName">
<ItemTemplate>
<telerik:RadTextBox ID="RadTextBox1" runat="server" />
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<ClientSettings>
<ClientEvents OnRowDataBound="RadGrid1_RowDataBound" />
</ClientSettings>
</telerik:RadGrid>
here is my OnRowDataBound event
function RadGrid1_RowDataBound(sender, args) {
var txt = args.get_item().findControl("RadTextBox1"); //I always get "null" here
}
Is it the wrong way to access the control inside the ItemTemplate? Let me know where i'm doing wrong?
I have populated the FontNames tool with a list in toolsfile.xml (standard fonts like Arial, etc), plus some additional fonts using FontNames.Add() in code. The additional fonts are hosted elsewhere, and are loaded with css @font-face statements.
All the fonts appear in the drop down list, and are correctly applied to content, so the important part is working well.
The problem occurs when you put your cursor in some text which has a font applied. If it is one of the common fonts, the FontName tool correclty displays the name of the font. If it is one of the uncommon fonts I added to the list, the tool shows somethng like this: "Thread-00002640-Id-0000017d" instead of the actual font name.
Works correclty in Forefox and Webkit browsers
Any ideas on how to get IE to display the proper font name?
I am using version 2012.3.1308.40
SyncVariantLocalizations, SyncVariantPictures, etc).<asp:CheckBox ID="CheckBox5" runat="server" Enabled="false" Checked='<%# Eval("SyncVariantLocalizations")%>' /><telerik:GridTemplateColumn UniqueName="SyncSetting" HeaderText="Sync Settings" HeaderStyle-Width="232"> <ItemTemplate> <div style="float: right;"> <telerik:RadComboBox ID="RadComboBoxSyncConf" runat="server" Width="220px" CheckBoxes="true" EnableCheckAllItemsCheckBox="false" DropDownAutoWidth="Enabled"> <Items> <telerik:RadComboBoxItem Text="Product Localizations" Value="SyncProductLocalizations" Checked='<%# Eval("SyncProductLocalizations")%>' Enabled="false" /> <telerik:RadComboBoxItem Text="Product Pictures" Value="SyncProductPictures" Checked='<%# Eval("SyncProductPictures")%>' Enabled="false" /> <telerik:RadComboBoxItem Text="Product Categories" Value="SyncProductCategoryMap" Checked='<%# Eval("SyncProductCategoryMap")%>' /> <telerik:RadComboBoxItem Text="Product Manufacturers" Value="SyncProductManufacturerMap" Checked='<%# Eval("SyncProductManufacturerMap")%>' /> <telerik:RadComboBoxItem Text="Variant Localizations" Value="SyncVariantLocalizations" Checked='<%# Eval("SyncVariantLocalizations")%>' /> <telerik:RadComboBoxItem Text="Variant Pictures" Value="SyncVariantPictures" Checked='<%# Eval("SyncVariantPictures")%>' /> <telerik:RadComboBoxItem Text="Variant Attributes" Value="SyncVariantCustomAttributes" Checked='<%# Eval("SyncVariantCustomAttributes")%>' /> </Items> </telerik:RadComboBox> </div> </ItemTemplate> </telerik:GridTemplateColumn>