function
OnClientValueChanged(sender, args) {
var
tx_adet = $find(
"<%= RadTextBoxAdet.ClientID %>"
);
var
tx_birim = $find(
"<%= RadNumericTextBoxBirimFiyat.ClientID %>"
);
var
labeltoplam = $find(
"<%= RadNumericTextBoxToplam.ClientID %>"
);
labeltoplam.set_value(tx_adet.get_value() * tx_birim.get_value());
}
<telerik:RadListView ID=
"RadListView1"
runat=
"server"
DataSourceID=
"SqlDataSourceAlimKalemiKategori0"
onitemdatabound=
"RadListView1_ItemDataBound"
>
<LayoutTemplate>
<asp:PlaceHolder ID=
"itemPlaceholder"
runat=
"server"
></asp:PlaceHolder>
</LayoutTemplate>
<ItemTemplate>
<asp:HiddenField ID=
"HiddenFieldid"
runat=
"server"
Value=
'<%# Eval("id") %>'
/>
<h2> <%# Eval(
"ad"
) %></h2>
<telerik:RadGrid ID=
"RadGrid_alimedetaylar"
runat=
"server"
CellSpacing=
"0"
ShowFooter=
"true"
AllowAutomaticUpdates=
"false"
AllowAutomaticInserts=
"false"
DataSourceID=
"SqlDataSourceAlimKalemiGrid"
GridLines=
"None"
Culture=
"tr-TR"
OnItemCommand=
"RadGrid_alimedetaylar_ItemCommand"
onitemdatabound=
"RadGrid_alimedetaylar_ItemDataBound"
>
<MasterTableView DataSourceID=
"SqlDataSourceAlimKalemiGrid"
AutoGenerateColumns=
"False"
DataKeyNames=
"id"
AllowAutomaticUpdates=
"false"
AllowAutomaticInserts=
"false"
>
<EditFormSettings EditFormType=
"Template"
>
<EditColumn FilterControlAltText=
"Filter EditCommandColumn column"
UniqueName=
"EditCommandColumn1"
>
</EditColumn>
<FormTemplate>
<telerik:RadScriptBlock ID=
"alimekalemirad"
runat=
"server"
>
<script type=
"text/javascript"
>
function OnClientValueChanged(sender, args) {
//in here I want to find RadTextBoxAdet and RadNumericTextBoxBirimFiyat
}
</script>
</telerik:RadScriptBlock>
<telerik:RadTextBox ID=
"RadTextBoxAdet"
runat=
"server"
EmptyMessage=
"Adet"
InputType=
"Number"
LabelCssClass=
""
LabelWidth=
"64px"
Width=
"80px"
>
<ClientEvents OnValueChanged=
"OnClientValueChanged"
/>
</telerik:RadTextBox>
</td>
<td>
<telerik:RadNumericTextBox ID=
"RadNumericTextBoxBirimFiyat"
runat=
"server"
Culture=
"tr-TR"
LabelCssClass=
""
LabelWidth=
"40px"
Type=
"Currency"
Width=
"100px"
EmptyMessage=
"Birim Fiyat"
>
<NumberFormat ZeroPattern=
"n TL"
/>
<ClientEvents OnValueChanged=
"OnClientValueChanged"
/>
</telerik:RadNumericTextBox>
</td>
<td>
<telerik:RadNumericTextBox ID=
"RadNumericTextBoxToplam"
runat=
"server"
Culture=
"tr-TR"
LabelCssClass=
""
LabelWidth=
"64px"
Type=
"Currency"
Width=
"100px"
ReadOnly=
"True"
Skin=
"Windows7"
>
<NumberFormat ZeroPattern=
"n TL"
/>
</telerik:RadNumericTextBox>
</FormTemplate>
</EditFormSettings>
<Columns>
<telerik:GridBoundColumn DataField=
"toplam_fiyat"
DataType=
"System.Decimal"
FilterControlAltText=
"Filter toplam_fiyat column"
HeaderText=
"Toplam Fiyat"
FooterAggregateFormatString=
"{0:c}"
Aggregate=
"Sum"
FooterText=
"Total: "
SortExpression=
"toplam_fiyat"
UniqueName=
"toplam_fiyat"
>
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn FilterControlAltText=
"Filter TemplateColumn column"
HeaderText=
"Projelerini Göster"
UniqueName=
"TemplateColumn"
>
<ItemTemplate>
<a
class
=
"gridinserthref"
href=
"#"
onclick=
"return showradwindow('alim_kalemi_degistir');"
style=
"color: Red;"
>Yeni Kayıt Ekle +</a>
</ItemTemplate>
</telerik:GridTemplateColumn>
</Columns>
</MasterTableView>
<FilterMenu EnableImageSprites=
"False"
>
</FilterMenu>
</telerik:RadGrid>
</ItemTemplate>
</telerik:RadListView>
Is it possible to make progress bar "clickable" and it would re-direct to another web page?
Thx.
I recently upgraded Ajax UI controls and Reporting to the latest version. Trying to pull up the pages with Telerik controls products an error seemingly unrelated to Telerik - but mismatched versions produced seemingly unrelated errors a few months back on a Telerik upgrade.
I manually went into the web config and changed the version on Reporting - but there is no explicit version for the controls
the only other Telerik dll referenced is the Web ReportViewer - which was not updated, either in development or on the production server
if the problem is a version mismatch how do I find out what it is?
Hi,
I have done everything i.e. the client side api in documentation shows, but dropdown list will not show the selected item. The item is selected when drop down list is expanded (i.e. dropped down ). It shows the item as yellow (highlighted). But after list is loaded it does not show the item in text element. This leads to false required field validator alarm in browser. User have to reselect item. I am getting lot of complaints regarding this and I have failed to find a solution. I tried to do force selection by but than required field validator still fails.
Here is the code:
var
ddlRef = $find(controlIds.refNumDdlId);
ddlRef.trackChanges();
ddlRef.get_items().clear();
for
(
var
i = 0; i < data.length; i++) {
var
comboItem =
new
Telerik.Web.UI.DropDownListItem();
comboItem.set_text(data[i]);
comboItem.set_value(data[i]);
if
(pceObject.ReferenceNumber && pceObject.ReferenceNumber == data[i]) {
comboItem.select();
scopeData.selectedRefNum = data[i];
}
ddlRef.get_items().add(comboItem);
}
if
(scopeData.selectedRefNum) {
var
el = ddlRef.get_textElement();
$(el).text(scopeData.selectedRefNum);
}
ddlRef.saveClientState();
ddlRef.commitChanges();
Hi, we're not using paging on one of our RadGrids and need to reduce the html output as much as possible. We've noticed that the RadGrid puts a unique ID on every row. Is there anyway to turn this off as it creates a lot of extra code over a few thousand rows.
<
tr
class
=
"rgRow"
id
=
"ctl00_ContentPlaceHolder1_rgDocuments_ctl00__0"
>
Thanks
Daniel
<
telerik:RadAjaxManager
ID
=
"PageRadAjaxManager"
runat
=
"server"
OnAjaxRequest
=
"PageRadAjaxManager_AjaxRequest"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"PageRadAjaxManager"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"GalopRadGrid"
LoadingPanelID
=
"PageRadAjaxLoadingPanel"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
function
DoRefreshGalopGrid() {
var
arguments =
'RefreshGalopGrid'
;
var
ajaxManager = $find(
"<%=PageRadAjaxManager.ClientID%>"
);
ajaxManager.ajaxRequest(arguments);
}