HI Telerik
In my application, I have a Radwindow which is entirely created in javascript as follows:
var oWnd = radopen("Default.aspx", "EditWindow", 1100, 800, 0, 0);
After this window is loaded , it has a button that is executing code on server side. Clicking this button causes full postback and page is reloaded in the Radwindow. I have all the ajaxsettings for all the controls that are being updated by this button. Still, I don't understand what is causing this postback.. Please advise.
Thank you very much in advance for your help..
I've a radgrid where there are checkboxex. The data comes from database. On of the value is "OTHERS". I want that when user checks the "OTHERS" checkbox, textbox should appear by its side. How can it be done using JAVASCRIPT or by using any radgrid property like OnPreRender ?
<
telerik:RadGrid
ID
=
"grid_diag_group"
runat
=
"server"
Width
=
"100%"
AutoGenerateColumns
=
"false"
HeaderStyle-HorizontalAlign
=
"Left"
>
<
MasterTableView
>
<
Columns
>
<
telerik:GridTemplateColumn
UniqueName
=
"TempCol1"
HeaderText
=
"Select"
ReadOnly
=
"true"
>
<
ItemTemplate
>
<
asp:CheckBox
ID
=
"CheckBox1"
runat
=
"server"
/>
</
ItemTemplate
>
<
EditItemTemplate
>
<
asp:CheckBox
ID
=
"CheckBox2"
runat
=
"server"
/>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"diag_code"
Display
=
"false"
Visible
=
"true"
AutoPostBackOnFilter
=
"false"
ItemStyle-HorizontalAlign
=
"Left"
CurrentFilterFunction
=
"Contains"
/>
<
telerik:GridBoundColumn
DataField
=
"diag_desc"
UniqueName
=
"diag_description"
HeaderText
=
"Diagnosis"
AutoPostBackOnFilter
=
"false"
ItemStyle-HorizontalAlign
=
"Left"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
My UI looks like this >> ( checkbox == [])
[] MALARIA
[] T.B.
[] GLYCOMA
[] MEASELES
[] FUNGAL INFECTION
[] OTHERS
Please help !!! Thanks.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
<
telerik:RadStyleSheetManager
id
=
"RadStyleSheetManager1"
runat
=
"server"
/>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"RadScriptManager1"
runat
=
"server"
>
<
Scripts
>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.Core.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQuery.js"
/>
<
asp:ScriptReference
Assembly
=
"Telerik.Web.UI"
Name
=
"Telerik.Web.UI.Common.jQueryInclude.js"
/>
</
Scripts
>
</
telerik:RadScriptManager
>
<
script
type
=
"text/javascript"
>
//Put your JavaScript code here.
</
script
>
<
telerik:RadAjaxManager
ID
=
"RadAjaxManager1"
runat
=
"server"
>
</
telerik:RadAjaxManager
>
<
div
>
<
telerik:RadGrid
ID
=
"rgdUsers"
runat
=
"server"
AutoGenerateColumns
=
"false"
AllowFilteringByColumn
=
"true"
OnNeedDataSource
=
"rgdUsers_NeedDataSource"
OnPreRender
=
"rgdUsers_PreRender"
>
<
MasterTableView
DataKeyNames
=
"Id, Active, Name, Surname"
>
<
Columns
>
<
telerik:GridBoundColumn
UniqueName
=
"ActiveColumn"
DataField
=
"Active"
HeaderText
=
"Active"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"EqualTo"
CurrentFilterValue
=
"True"
/>
<
telerik:GridBoundColumn
UniqueName
=
"NameColumn"
DataField
=
"Name"
HeaderText
=
"Name"
/>
<
telerik:GridBoundColumn
UniqueName
=
"SurnameColumn"
DataField
=
"Surname"
HeaderText
=
"Surname"
/>
</
Columns
>
</
MasterTableView
>
</
telerik:RadGrid
>
</
div
>
</
form
>
</
body
>
</
html
>
using
System;
using
System.Web;
using
System.Web.UI;
using
System.Web.UI.WebControls;
using
System.Data;
using
System.Configuration;
using
System.Web.Security;
using
System.Web.UI.WebControls.WebParts;
using
System.Web.UI.HtmlControls;
using
System.Linq;
using
Telerik.Web.UI;
public
partial
class
Default : System.Web.UI.Page
{
protected
void
Page_Load(
object
sender, EventArgs e)
{
}
protected
void
rgdUsers_NeedDataSource(
object
sender, GridNeedDataSourceEventArgs e)
{
using
(SwmpHermesEntities ent =
new
SwmpHermesEntities())
{
var Users = ent.Users.ToList();
rgdUsers.DataSource = Users;
}
}
protected
void
rgdUsers_PreRender(
object
sender, EventArgs e)
{
if
(!
this
.IsPostBack)
{
rgdUsers.MasterTableView.FilterExpression =
"([Active] = True)"
;
GridColumn activeColumn = rgdUsers.MasterTableView.GetColumnSafe(
"ActiveColumn"
);
activeColumn.CurrentFilterFunction = GridKnownFunction.EqualTo;
activeColumn.CurrentFilterValue =
"True"
;
}
}
}
i use rad editor but when i write code on it for example :
<a href="default.aspx?PID=تاثير وب سايت در کسب و کار شما">
<div class="img"><a href="default.aspx?PID=تاثير وب سايت در کسب و کار شما"><img width="260" height="216" src="Templates/Banner/BaranWeb/rtl/PageAsli/img/Pic2.jpg" alt="تاثیر وب سایت در کار شما" title="تاثیر وب سایت در کار شما" /></a></div>
<div class="info baranw_font_12pt"><a href="default.aspx?PID=تاثير وب سايت در کسب و کار شما">
</a>
it changes to
<a href="default.aspx?PID=تاثير وب سايت در کسب و کار شما">
</a>
<div class="img"><a href="default.aspx?PID=تاثير وب سايت در کسب و کار شما"></a><a href="default.aspx?PID=تاثير وب سايت در کسب و کار شما"><img src="Templates/Banner/BaranWeb/rtl/PageAsli/img/Pic2.jpg" alt="تاثیر وب سایت در کار شما" title="تاثیر وب سایت در کار شما" height="216" width="260"></a></div>
<div class="info baranw_font_12pt"><a href="default.aspx?PID=تاثير وب سايت در کسب و کار شما">
</a></div>
i want to save content in database i write ...without any changes my tag .
i read your forum i test this code :ContentFilters="none" and also test
RadEditor1.DisableFilter(Telerik.Web.UI.EditorFilters.ConvertToXhtml);
RadEditor1.EnableFilter(EditorFilters.None);
and another thing but any one dont work please help me ????????????
how can i get my tag without any changes????????????????????
Hi all,
How do i delete all rows on pageload event ?
Regards
Roma
See screenshot. RadPivotGrid line heights not matching. Any ideas? Let me know if you have any other questions. I appreciate the help!
<
telerik:RadPivotGrid
runat
=
"server"
ID
=
"rpg_CreditHours"
OnNeedDataSource
=
"rpg_CreditHours_NeedDataSource"
Width
=
"100%"
EnableZoneContextMenu
=
"false"
ShowFilterHeaderZone
=
"false"
AllowSorting
=
"true"
AllowPaging
=
"false"
ClientSettings-EnableFieldsDragDrop
=
"false"
ConfigurationPanelSettings-EnableDragDrop
=
"false"
>
<
FieldsPopupSettings
RowFieldsMinCount
=
"2"
/>
<
Fields
>
<
telerik:PivotGridColumnField
DataField
=
"CreditType"
Caption
=
"CreditType"
UniqueName
=
"CreditType"
DataFormatString
=
"{0}"
/>
<
telerik:PivotGridAggregateField
DataField
=
"CreditHours"
Caption
=
"CreditHours"
UniqueName
=
"CreditHours"
Aggregate
=
"Sum"
DataFormatString
=
"{0:F2}"
/>
<
telerik:PivotGridRowField
DataField
=
"EmployeeName"
Caption
=
"EmployeeName"
UniqueName
=
"EmployeeName"
/>
<
telerik:PivotGridRowField
DataField
=
"EducationName"
Caption
=
"EducationName"
UniqueName
=
"EducationName"
/>
</
Fields
>
<
ClientSettings
EnableFieldsDragDrop
=
"false"
/>
</
telerik:RadPivotGrid
>
After I add a few markers is there a way to move the markers based on a new GPS location? Basically I want to bind the map to a datasource and show the markers. But I may add and/or remove markers being returned. When a marker is not returned is it removed from the map? And how are the markers moved? Are they just cleared and moved based on what is in the recordset returned?
Thanks,
Warren