When the color picker is on a tab that is not active when the page loads the cursor (crosshair) is not in the right location. The color is correct, the cursor is not. I tried a few things I saw in this forum, repainting clientside when the tab becomes active, and adding this script to the bottom of the page. But no luck. Any Ideas? Thank you. Telerik version = 2017.3.913.45
function OnClientActiveTabChanged(){ $find("<%=colorBackGround.ClientID %>").repaint();}Telerik.Web.UI.RadColorPicker.prototype._updateHslSliderBackground = function (hsl, isCustomColor) { var color = this._hslToRgb(hsl.h, hsl.s, 0.5); var slider = isCustomColor ? this.get_millionCustomColorsSlider() : this.get_millionColorsSlider(); if (slider._trackElement) { slider._trackElement.style.backgroundColor = this._rgbValuesToHex(color.r, color.g, color.b); } }

Hi,
Is there a simple way in the server side to get all items in the ListBox after they have been reorder by the user (either by the up down arrows or drag and drop)?
I have a save button which when the user click on it i need to get the items in the ListBox so i can update the indexes of the items in my model.
currently i tired that:
001.//this is the clas model public class Publication : DataContractClass002. {003. public enum LanguageName004. {005. Hebrew,006. English007. }008. 009. [DataMember]010. private long id;011. public long Id012. {013. get { return id; }014. set { id = value; }015. }016. 017. [DataMember]018. private LanguageName language;019. public LanguageName Language020. {021. get { return language; }022. set { language = value; }023. }024. 025. [DataMember]026. private string text;027. public string Text028. {029. get { return text; }030. set { text = value; }031. }032. 033. [DataMember]034. private int index;035. public int Index036. {037. get { return index; }038. set { index = value; }039. }040. 041. [DataMember]042. private string link;043. public string Link044. {045. get { return link; }046. set { link = value; }047. }048. 049. [DataMember]050. private long fileId;051. public long FileId052. {053. get { return fileId; }054. set { fileId = value; }055. }056. 057. [DataMember]058. private byte[] publicationBlob;059. public byte[] PublicationBlob060. {061. get { return publicationBlob; }062. set { publicationBlob = value; }063. }064. 065. [DataMember]066. private bool isDeleted;067. public bool IsDeleted068. {069. get { return isDeleted; }070. set { isDeleted = value; }071. }072. 073. [DataMember]074. private bool isSelected;075. /// <summary>076. /// Gets or sets a value indicating whether this publication is selected publication.077. /// </summary>078. /// <value>079. /// <c>true</c> if this publication is selected; otherwise, <c>false</c>.080. /// </value>081. public bool IsSelected082. {083. get { return isSelected; }084. set { isSelected = value; }085. }086. 087. [DataMember]088. private bool hasPublication;089. public bool HasPublication090. {091. get { return hasPublication; }092. set { hasPublication = value; }093. }094. }095.//this is my property in my webform
096.static List<Publication> FacultyPublications097. {098. get099. {100. string sessionKey = $"FacultyPublications_{FacultyUserName}";101. if (HttpContext.Current.Session[sessionKey] != null)102. {103. return (List<Publication>)HttpContext.Current.Session[sessionKey];104. }105. else106. {107. return null;108. }109. }110. set111. {112. string sessionKey = $"FacultyPublications_{FacultyUserName}";113. HttpContext.Current.Session[sessionKey] = value;114. }115. }116.//this is my save button event117.protected void RadButtonSavePublicationsOrder_Click(object sender, EventArgs e)118. {119. foreach (Publication pub in FacultyPublications)120. {121. pub.Index = RadListBoxPublications.FindItemIndexByValue(pub.Id.ToString());122. }123. XDocument document = new XDocument(new XElement("Root",124. from pub in FacultyPublications125. select126. new XElement("Publication",127. new XElement("PublicationID", pub.Id),128. new XElement("SortIndex", pub.Index))129. ));130. 131. if (appDal.UpdatePublicationsIndexes(FacultyUserName, CurrentUserName, document.ToString()))132. {133. BindPublications();134. RadWindowManagerPublications.RadAlert(GetLocalString("msgSuccessAction"), 600, 200, string.Empty, string.Empty);135. }136. else137. {138. //failed139. RadWindowManagerPublications.RadAlert(GetLocalString("msgNotSuccessAction"), 600, 200, string.Empty, string.Empty);140. return;141. }142. }143. }
and here is the radlistbox declaration
01.<telerik:RadListBox ID="RadListBoxPublications" runat="server" AllowReorder="True" EnableDragAndDrop="True" Width="98%" Height="700px" AutoPostBackOnReorder="true">02. <HeaderTemplate>03. <div class="row">04. <div class="col-md-9">05. <h4>06. <asp:Literal runat="server" Text="<%$ Resources:FacultySites, PublicationsTitle%>"></asp:Literal>07. </h4>08. </div> 09. <div class="col-md-2">10. <div class="row">11. <div class="col-md-5">12. <%--<asp:Literal runat="server" Text="<%$ Resources:FacultySites, Edit%>"></asp:Literal>--%>13. <telerik:RadButton ID="RadButtonAddNewPublication" runat="server" RenderMode="Lightweight" ToolTip="<%$ Resources:FacultySites, AddNewPublication%>" OnClick="RadButtonAddNewPublication_Click">14. <ContentTemplate>15. <span class="glyphicon glyphicon-edit"></span> <asp:Literal runat="server" Text="<%$ Resources:FacultySites, AddNewPublication%>"></asp:Literal>16. </ContentTemplate>17. </telerik:RadButton>18. </div> 19. <div class="col-md-7">20. 21. <telerik:RadButton ID="RadButtonSavePublicationsOrder" runat="server" RenderMode="Lightweight" ToolTip="<%$ Resources:FacultySites, SavePublicationsOrder%>" OnClick="RadButtonSavePublicationsOrder_Click">22. <ContentTemplate>23. <span class="glyphicon glyphicon-save"></span> <asp:Literal runat="server" Text="<%$ Resources:FacultySites, SavePublicationsOrder%>"></asp:Literal>24. </ContentTemplate>25. </telerik:RadButton> 26. </div>27. </div>28. </div>29. <div class="col-md-1"> </div>30. </div>31. </HeaderTemplate>32. <ItemTemplate>33. <div class="row">34. <div class="col-md-9">35. <div dir="<%# (DataBinder.GetDataItem(Container) as Idc.FacultySites.Models.Publication).Language == Idc.FacultySites.Models.Publication.LanguageName.Hebrew? "rtl" : "ltr" %>"36. class="<%# (DataBinder.GetDataItem(Container) as Idc.FacultySites.Models.Publication).Language == Idc.FacultySites.Models.Publication.LanguageName.Hebrew? "text-right-fix" : "text-left-fix" %>">37. <a id="PublicationLink" runat="server">38. <%# (DataBinder.GetDataItem(Container) as Idc.FacultySites.Models.Publication).Text %>39. </a>40. </div>41. </div>42. <div class="col-md-1"> </div>43. <div class="col-md-2">44. <div class="row">45. <div class="col-md-2">46. <telerik:RadButton ID="RadButtonEditPublication" runat="server" RenderMode="Lightweight" ToolTip="<%$ Resources:FacultySites, Edit%>" CommandArgument="<%# (DataBinder.GetDataItem(Container) as Idc.FacultySites.Models.Publication).Id %>" OnCommand="RadButtonEditPublication_Command">47. <ContentTemplate>48. <span class="glyphicon glyphicon-edit"></span>49. </ContentTemplate>50. </telerik:RadButton>51. </div>52. <div class="col-md-2">53. <telerik:RadButton ID="RadButtonDeletePublication" runat="server" RenderMode="Lightweight" ToolTip="<%$ Resources:FacultySites, Delete%>" OnClick="RadButtonDeletePublication_Click" CommandArgument="<%# (DataBinder.GetDataItem(Container) as Idc.FacultySites.Models.Publication).Id %>" OnCommand="RadButtonDeletePublication_Command">54. <ContentTemplate>55. <span class="glyphicon glyphicon-remove"></span>56. </ContentTemplate>57. <ConfirmSettings ConfirmText="<%$ Resources:FacultySites, GeneralActionConfirmMessage%>" />58. </telerik:RadButton>59. </div>60. <div class="col-md-8"> </div>61. </div>62. </div>63. </div>64. <div class="row">65. <div class="col-md-12"> </div>66. </div>67. </ItemTemplate>68. </telerik:RadListBox>
but it's not working and I keep getting the ListBox items as they have been in the first time I load them from the db.
Looking forward to an earliest reply and help
Thanks.
<MasterTableView AutoGenerateColumns="False" DataKeyNames="loc_Location_ID" DataSourceID="SqlDataSource1">Hello, I am trying to create a way for the user to view a pdf, xlsx, jpg, gif, etc., from a link button within my Detail table in a radgrid. I am able to accomplish this for a pdf, but not the image files or Excel files.
One of the main issues is that the file types stored within the SQL table field can be any of those above types. My question is how can I write the vb.net code to display any type of file from the same RadGrid column; as the Details Table can have numerous records of different file types.
Here's what I have --
01.<DetailTables>02. <telerik:GridTableView DataKeyNames="fileID" Name="Attachments" DataSourceID="sdsVenFiles" CommandItemDisplay="Top" Caption="Files Attached to this Vendor Maintenance Request:"03. NoDetailRecordsText="No files are attached to this Vendor Adjustment request." Width="75%" EditFormSettings-FormCaptionStyle-Font-Bold="true">04. <ParentTableRelation>05. <telerik:GridRelationFields DetailKeyField="wfID" MasterKeyField="wfID" />06. </ParentTableRelation>07. <CommandItemSettings ShowAddNewRecordButton="false" ShowRefreshButton="true" />08. <Columns>09. <telerik:GridBoundColumn SortExpression="fileID" HeaderText="File ID" HeaderButtonType="TextButton" DataField="fileID" Visible="false"></telerik:GridBoundColumn>10. <telerik:GridBoundColumn SortExpression="wfID" HeaderText="Control #" HeaderButtonType="TextButton" DataField="wfID" Visible="false"></telerik:GridBoundColumn>11. <telerik:GridTemplateColumn HeaderText="Open File">12. <ItemTemplate>13. <asp:LinkButton ID="lnkDownload" runat="server" Text='<%# Eval("fileName")%>' OnClick="viewFile" CommandArgument='<%# Eval("fileID")%>'></asp:LinkButton>14. </ItemTemplate>15. </telerik:GridTemplateColumn>16. 17. <telerik:GridButtonColumn CommandName="Delete" ConfirmText="Delete this file?" HeaderText="Delete" Text="Delete" UniqueName="DeleteColumn1">18. </telerik:GridButtonColumn>19. </Columns>20. </telerik:GridTableView>21. </DetailTables>
And my vb.net --
01.Protected Sub viewFile(sender As Object, e As EventArgs)02. 03. Dim id As Integer = Integer.Parse(TryCast(sender, LinkButton).CommandArgument)04. Dim bytes As Byte()05. Dim fileName As String, contentType As String06. Dim constr As String = ConfigurationManager.ConnectionStrings("DbName").ConnectionString07. Using con As New SqlConnection(constr)08. Using cmd As New SqlCommand()09. cmd.CommandText = "SELECT fileID, fileName, fileType, fileData FROM tblVendorFile WHERE fileId=@Id"10. cmd.Parameters.AddWithValue("@Id", id)11. cmd.Connection = con12. con.Open()13. Using sdr As SqlDataReader = cmd.ExecuteReader()14. sdr.Read()15. bytes = DirectCast(sdr("fileData"), Byte())16. contentType = sdr("fileType").ToString()17. fileName = sdr("fileName").ToString()18. End Using19. con.Close()20. End Using21. End Using22. 23. Response.Clear()24. Response.Buffer = True25. Response.Charset = ""26. Response.Cache.SetCacheability(HttpCacheability.NoCache)27. Response.ContentType = "application/pdf"28. Response.BinaryWrite(bytes)29. Response.Flush()30. Response.End()31. 32. End Sub
Thanks for any and all help!



If you go to this page:
https://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx
And then go to the HTML tab and pasted this code in:
<div style="border: red 1px solid;" contenteditable="false" unselectable="on">
Non Editable AREA
<div style="border: green 1px solid;" contenteditable="true" unselectable="off">
<!--Content name="info" -->
Editable REGION...
<!--/Content -->
</div>
Non Editable AREA
</div>
Which is from the documentation page:
https://docs.telerik.com/devtools/aspnet-ajax/controls/editor/managing-content/editable-and-non-editable-areas
If you go back to the design tab, you are unable to type anything in the editable area. This works fine in the legacy edge (non-Chromium).
Also interesting is that you can delete things in the non-editable area.

Hello,
I want manually install the Telerick Web Part for SharePoint, but I don't understand how do download the .wsp file or where find it.
I just found the Telerik_Web_Parts_For_Sharepoint2013_2020_2_512_Dev.msi.
Thanks in advance
