Hi
I tried to check all items on pageload. I used below source code.
for (int i = 0; i < objList.Count; i++) { cboLocation.Items.Add(new RadComboBoxItem(objList[i].Name, objList[i].ID)); cboLocation.Items[i].Checked = true; }It worked and show "All Items Checked" text on local. But when I publish to server, it did not show "All Items Checked" text and display items with "," delimiter. Can anyone advice me on this?
Thank you.
Best regards,
Ei Wai
I have a table in sql server with a field called imageData type is nvarbinary(max)
I have a binary image in a radwindow.
I use the radAsyncUploader to save the image in the database.
Once the image is saved, I want to display the image to the user next to the radAsyncUploader tool (right side).
I try setting the DataValue property of the binaryImage control but that does not seem to work.. Any ideas?
protected void LinkButtonSaveImage_Click(object sender, EventArgs e) { //Handle Uploaded images if (!Object.Equals(Context.Cache.Get(Session.SessionID + "UploadedFile"), null)) { var fileType = this.AsyncUpload1.UploadedFiles[0].ContentType; User user = (User)Session["currentUser"]; AttachmentRepository attachmentRepo = new AttachmentRepository(); Stream fileStream = ((MemoryStream)Context.Cache.Remove(Session.SessionID + "UploadedFile")); byte[] attachmentBytes = new byte[fileStream.Length]; fileStream.Read(attachmentBytes, 0, Convert.ToInt32(fileStream.Length)); var attachmentService = new AttachmentService(attachmentRepo, user); attachmentService.SetAttachment(attachmentBytes, fileStream, fileType); RadBinaryImage1.DataValue = attachmentBytes; } }I have an RadSlider (ItemSlider):
<telerik:RadSlider ID="RadSlider1" runat="server" ItemType="item" Width="325px"
Height="45px" AnimationDuration="400" CssClass="ItemSlider"
ThumbsInteractionMode="Free" TrackPosition="BottomRight" Value="5" >
<Items>
<telerik:RadSliderItem Text="1" Value="1"></telerik:RadSliderItem>
<telerik:RadSliderItem Text="2" Value="2"></telerik:RadSliderItem>
<telerik:RadSliderItem Text="3" Value="3"></telerik:RadSliderItem>
<telerik:RadSliderItem Text="4" Value="4"></telerik:RadSliderItem>
<telerik:RadSliderItem Text="5" Value="5"></telerik:RadSliderItem>
<telerik:RadSliderItem Text="6" Value="6"></telerik:RadSliderItem>
<telerik:RadSliderItem Text="7" Value="7"></telerik:RadSliderItem>
<telerik:RadSliderItem Text="8" Value="8"></telerik:RadSliderItem>
<telerik:RadSliderItem Text="9" Value="9"></telerik:RadSliderItem>
<telerik:RadSliderItem Text="10" Value="10"></telerik:RadSliderItem>
</Items>
</telerik:RadSlider>
How do I shift the "ticks" so that they line up exactly with the "Text"?
Requirements: I need the ability to click and have the slide go to my click position. I also need tick marks that line up with the slider Text.
I would like to fill in some custom footer information after search results are returned from a web service. In the RadComboBox it was as easy as setting the RadcomboBoxData.Message property - how does one go about doing it for a SearchBox? I would like to display either the number of items found + total search time, or a message saying "Please enter 3 characters to search".
One possible solution is to return only 1 item with the message to display, and a null value; then upon client items requesting has ended look through the results in javascript, remove it if it fits the critieria and set the footer - but I don't even see any client events for when the search results are received.
Thank you in advance,
John
Hi,
I am trying to add a RadWindow as popup which will show at page load.
I don't want to use Javascript. I am a beginner to Telerik. Any answer is appreciated.
Thanks!
Hello,
I have two columns of button with a fixed width header (HeaderStyle-Width) and all columns automatically fit the width of the grid, but to enable the scroll (<Scrolling AllowScroll ="true" UseStaticHeaders="true" />), the scroll does not appear.
<telerik:RadGrid ID="dbgCuentasCorreos" runat="server" AutoGenerateColumns="False" AllowPaging="True" AllowSorting="True" AllowMultiRowSelection="false"> <MasterTableView ShowFooter="True" DataKeyNames="IdEmpresa, IdCuenta" CommandItemDisplay="Top" PagerStyle-Mode="NextPrevNumericAndAdvanced" InsertItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnFirstPage" TableLayout="Fixed"> <Columns> <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" ButtonType="ImageButton" HeaderStyle-Width="30" EditImageUrl="../imagenes/Edit.png" InsertImageUrl="../imagenes/Edit.png"></telerik:GridEditCommandColumn> <telerik:GridBoundColumn UniqueName="IdCuenta" DataField="IdCuenta" HeaderText="Cuenta" DataType="System.Int64"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="Nombre" DataField="Nombre" HeaderText="Nombre" DataType="System.String" MaxLength="100"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="Descripcion" DataField="Descripcion" HeaderText="Descripción" DataType="System.String" MaxLength="200"></telerik:GridBoundColumn> <telerik:GridBoundColumn UniqueName="Estado" DataField="Estado" HeaderText="Estado" DataType="System.String" Display="false"></telerik:GridBoundColumn> <telerik:GridButtonColumn ConfirmText="Desea eliminar este registro?" HeaderStyle-Width="30" ConfirmDialogType="RadWindow" ConfirmTitle="Eliminar" ButtonType="ImageButton" CommandName="Delete" ImageUrl="../imagenes/Delete.png" UniqueName="DeleteColumn" Text="Eliminar" FilterControlAltText="Filter DeleteColumn column"> </telerik:GridButtonColumn> </Columns> <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle> </MasterTableView> <ClientSettings> <Selecting AllowRowSelect="true" /> <Scrolling AllowScroll ="true" UseStaticHeaders="true" /> </ClientSettings> </telerik:RadGrid>
If remove the header fixed width of the two columns, the scroll if it appears.
Thanks for your help.
I have a telerik DDL like so:
<telerik:RadDropDownList ID="rddlNames" runat="server" DataSourceID="NamesDataSource" DataTextField="Name" DataValueField="ID" OnSelectedIndexChanged="rddlNames_SelectedIndexChanged" OnDataBound="rddlNames_DataBound" AutoPostBack="True" CausesValidation="false"></telerik:RadDropDownList>​
protected void rddlNames_SelectedIndexChanged(object sender, Telerik.Web.UI.DropDownListEventArgs e)
{
radTileList.Visible = true;
radTileK.NavigateUrl = "KSignOut.aspx?DC=" + rddlNames.SelectedItem.Text;
radTileT.NavigateUrl = "TSignOut.aspx?DC=" + rddlNames.SelectedItem.Text;
radTileManageT.NavigateUrl = "ManageT.aspx?DC=" + rddlNames.SelectedItem.Text;
radTileManageK.NavigateUrl = "ManageK.aspx?DC=" + rddlNames.SelectedItem.Text;
radTileManageR.NavigateUrl = "ManageR.aspx?DC=" + rddlNames.SelectedItem.Text;
}
protected void rddlNames_DataBound(object sender, EventArgs e)
{
rddl.Items.Insert(0,new Telerik.Web.UI.DropDownListItem("---"));
rddlNames.Items[0].Enabled = false;// Attributes.Add("disabled", "disabled");
rddlNames.Items[0].Selected = true;
}
There is one major issue with it in that the selectedIndexChanged doesn't trigger when navigating to the root of the website i.e. http://locahost:1234
But if I navigate to http://localhost:1234/Default it works fine.
This is causing huge confusion among the users which keep reporting the website as not working.
Please suggest a fix for this as it is quite urgent.
Thank you.

Greetings,
I have applied a site-wide skin in my web.config file like so:
<appSettings>
<add key="Telerik.Skin" value="Default" />
</appSettings>
I have specified a loading panel in my master page(s) like so:
<telerik:RadAjaxLoadingPanel runat="server" ID="MainLoadingPanel" CssClass="load-panel" IsSticky="true" Skin="Metro" />
Please note the difference in skins. My objective is to have all loading panels observe the Metro skin while all other controls side-wide observe the Default skin. As it currently stands, the Default skin is applied to the loading panel when opening a Rad Window. All other actions display the Metro loading panel as desired - it's only the loading panel that is visible when opening a Rad Window that fails. What am I doing wrong?
Many Thanks,
Paul