or
if (sender.get_visibleItems().length == 1) { alert(sender.get_visibleItems(0).get_text()); alert(sender.get_visibleItems(0).get_value()); alert(sender.get_visibleItems(0).toString()); }
<telerik:RadEditor runat="server" Width="536px" ID="reTemplate" ToolsFile="/_layouts/CISS/RadEditorTools/ToolsFile.xml" ImageManager-ViewMode="Grid" DialogHandlerUrl="~/Telerik.Web.UI.DialogHandler.axd"> <Paragraphs> <telerik:EditorParagraph Title="<%$ Resources:Nsp.SendEmail,Header1 %>" Tag="<H1 class='Header1-Title'>" /> <telerik:EditorParagraph Title="<%$ Resources:Nsp.SendEmail,Header2 %>" Tag="<H2 class='Header2-Subtitle'>" /> <telerik:EditorParagraph Title="<%$ Resources:Nsp.SendEmail,Header3 %>" Tag="<p class='Lead'>" /> <telerik:EditorParagraph Title="<%$ Resources:Nsp.SendEmail,NormalText %>" Tag="<p>" /> </Paragraphs> <Modules> <telerik:EditorModule Name="RadEditorHtmlInspector" Enabled="false" /> <telerik:EditorModule Name="RadEditorNodeInspector" Enabled="false" /> <telerik:EditorModule Name="RadEditorDomInspector" Enabled="false" /> <telerik:EditorModule Name="RadEditorStatistics" Enabled="false" /> </Modules> <Tools> <telerik:EditorToolGroup> <telerik:EditorDropDown Name="DropDown" Text="Treści dynamiczne" ItemsPerRow="1" PopupWidth="150" PopupHeight="90" Width="150"> <telerik:EditorDropDownItem Value="Title" Name="<%$ Resources:Nsp.SendEmail,InsertPageTitle %>" /> <telerik:EditorDropDownItem Value="Adres" Name="<%$ Resources:Nsp.SendEmail,InsertPageURL %>" /> <telerik:EditorDropDownItem Value="Path" Name="<%$ Resources:Nsp.SendEmail,InsertPagePath %>" /> <telerik:EditorDropDownItem Value="Date" Name="<%$ Resources:Nsp.SendEmail,InsertModificationDate %>" /> </telerik:EditorDropDown> </telerik:EditorToolGroup> </Tools> <CssFiles> <telerik:EditorCssFile Value="/_layouts/STYLES/CISS/Skanska.Portal.UI/telerik/EditorContentArea.css" /> </CssFiles> </telerik:RadEditor><httpHandlers> <remove verb="GET,HEAD,POST" path="*" /> <add verb="GET,HEAD,POST" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" /> <add verb="OPTIONS,PROPFIND,PUT,LOCK,UNLOCK,MOVE,COPY,GETLIB,PROPPATCH,MKCOL,DELETE,(GETSOURCE),(HEADSOURCE),(POSTSOURCE)" path="*" type="Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler, Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" /> <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" /> <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" /> <add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" /> <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" /> <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" /> </httpHandlers>...<handlers> <remove name="OPTIONSVerbHandler" /> <remove name="WebServiceHandlerFactory-Integrated" /> <remove name="svc-Integrated" /> <remove name="WebDAV" /> <add name="svc-Integrated" path="*.svc" verb="*" type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="integratedMode" /> <add name="OwssvrHandler" scriptProcessor="C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\isapi\owssvr.dll" path="/_vti_bin/owssvr.dll" verb="*" modules="IsapiModule" preCondition="integratedMode" /> <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> <add name="JSONHandlerFactory" path="*.json" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" resourceType="Unspecified" preCondition="integratedMode" /> <add name="ReportViewerWebPart" verb="*" path="Reserved.ReportViewerWebPart.axd" type="Microsoft.ReportingServices.SharePoint.UI.WebParts.WebPartHttpHandler, Microsoft.ReportingServices.SharePoint.UI.WebParts, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" /> <add name="ReportViewerWebControl" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <add name="TelerikWebResource" verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" /> <add name="Telerik_Web_UI_DialogHandler_aspx" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" /> <add name="ChartImage_axd" verb="*" preCondition="integratedMode" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" /> <add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode" /> <add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" /> <add name="Telerik.Web.UI.DialogHandler.aspx_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2012.1.327.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" /> </handlers>
<telerik:RadListView ID="lvWall" runat="server" AllowPaging="false"> <ClientSettings> <DataBinding ItemPlaceHolderID="itemPlaceholder"> <LayoutTemplate> <ul id="itemPlaceholder"></ul> </LayoutTemplate> <ItemTemplate> <li>#= WallText #</li> </ItemTemplate> <DataService Location="~/Engine.asmx" DataPath="Wall" /> </DataBinding> </ClientSettings></telerik:RadListView>[WebMethod]public string Wall(){
DataSet ds = new DataSet(); try
{ SqlCommand comm = new SqlCommand("xbCircled_Wall", conn); comm.CommandType = CommandType.StoredProcedure; comm.Parameters.Add(new SqlParameter("@userID", 7)); comm.Parameters.Add(new SqlParameter("@profileID", 9)); SqlDataAdapter adapter = new SqlDataAdapter(comm); conn.Open(); adapter.Fill(ds); } catch (Exception ex) { //throw new ServiceException("Error desription here", ex); } finally { conn.Close(); }return JsonConvert.SerializeObject(ds);}{"d":"{\"Table\":[{\"WallID\":685,\"comments\":0,\"imageUrl\":\"http://www.bCircled.com/Assets/Uploaded-Photos/5b63d780-b01c-429b-9178-9efe4a4d8b84.jpg\",\"FromUserID\":9,\"FromFullName\":\"Jon Collins\",\"ToUserID\":9,\"ToFullName\":null,\"WallText\":\"A post to my own wall (status update) by Jon\",\"datePosted\":\"12 days ago\",\"actualDate\":\"2012-11-27T18:09:07.723\"}]}"}this.EntityDataSource2.WhereParameters.Clear();this.EntityDataSource2.AutoGenerateWhereClause = true;this.EntityDataSource2.WhereParameters.Add("PATIENT_ID", TypeCode.Int32, ddlSearchSSN.SelectedValue);this.gridOperations.DataSource = EntityDataSource2;this.gridOperations.DataBind();