Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
115 views
I have deployed a new web app and the grid display is corrupted (see the attached images).

The grids display correctly in dev mode but all of them are bad when called from the server (IIS 6, 4.0 framework)

It seems like this should be a css or image pathing issue, but the folders and contents are the same for both the dev and server environments (same web.config, image path, styles path, master pages, etc.)

What would be causing this?
Viktor Tachev
Telerik team
 answered on 31 Jan 2014
1 answer
456 views
Has anyone created a dynamic user dashboard with rad dock yet?  The samples provide most of the parts, but I wanted to see if anyone had already done this before I embark on a project to do it.  I am looking for the ability for a user to add precreated dashboard user controls they want and save them once they come back the dashboard will be there the way they left with updated data of course.  something like igoogle.

Let me know
Slav
Telerik team
 answered on 31 Jan 2014
2 answers
238 views
Hi team,
               I have a RadMenu setup as a Context menu ,i want to know how to set the text property dynamically.you already discussed  this url  http://www.telerik.com/community/forums/aspnet/menu/set-text-radmenuitem-client-side.aspx .Here they are given some solution.but it is not working.

Your code:

var menu = <%= RadMenu1.ClientID %>;  
var element = menu.Items[0].TextElement;  
element.innerHTML = "new menu text";  
menu.Show(e); 


if i used that same  code ,i got error like "items is undefined".How to solve that issue..

Then i need another one help from you,i want to bind the rad menu dynamically in client side jquery code.Before binding new menu item i need to clear all the old menu items.How i can do?i have tried all your samples...Please  give the correct solution for this problem.

Jhonny
Top achievements
Rank 2
 answered on 31 Jan 2014
7 answers
194 views
Hello,

I added a new item in the radcontext menu using javascript, and this one works, but upon setting the image url of the new item added on the context menu, it does not display the image given the image url using the function set_imageUrl(string image url).

Hopefully you can help me with this problem.

Hope to hear from you soon.

Greetings,

~cLyde~
Jhonny
Top achievements
Rank 2
 answered on 31 Jan 2014
6 answers
691 views
Hello,

Please find attached all RadEditor's skins that were embedded in the Q3 2008 RadControls version. They have been adapted to be fully compatible with the Q1 2009 release. The archive also contains all other RadControls skins that were adapted for Q1

In order to use them as non embedded skins for RadEditor, you should do the following:
  1. Add the base and skin's specific CSS files for the RadEditor and RadWindow controls to the head section of your page:
    <link href="Skins/Editor.css" rel="stylesheet" type="text/css" /> 
    <link href="Skins/Window.css" rel="stylesheet" type="text/css" /> 
    <link href="Skins/Default/Editor.Default.css" rel="stylesheet" type="text/css" /> 
    <link href="Skins/Default/Window.Default.css" rel="stylesheet" type="text/css" /> 
  2. Disable the embedded skins for the RadEditor control and the embedded base stylesheet.
  3. Set the Skin property of the RadEditor to the name of the skin that you want to use.
  4. Set the DialogCssFile property of RadEditor to the Widgets stylesheet for the corresponding skin
e.g.
DialogsCssFile="Skins/Default/Widgets.Default.css" 
EnableEmbeddedSkins="false" 
EnableEmbeddedBaseStylesheet="false" 
Skin="Default" 

Important:
RadEditor
is a complex control that uses other RadControls in its dialogs. To ensure that the dialogs will be styled properly, you should also use the files for the corresponding skins of the following controls:
  • RadToolBar
  • RadFormDecorator
  • RadTabStrip
  • RadEditor
  • RadTreeView
  • RadSplitter
  • RadSlider
  • RadUpload
  • RadWindow
  • RadGrid
  • RadWidgets
  • RadFileExplorer
  • RadMenu
The files in the main Skin's folder must also be present in order for the control to work properly.
Ianko
Telerik team
 answered on 31 Jan 2014
3 answers
149 views
I have a scheduler in my asp page. When the appointments are displayed I want to display for some appointments all my items in the AppointmentTemplate and in others only the appointment subject? Can it be done?

My code is:

<telerik:RadScheduler ID="SchProgramariEchipament" runat="server" DataDescriptionField="DESCRIERE"
                    DataEndField="DATA_END" DataKeyField="ID" DataSourceID="dsProgramareEchipament" DataStartField="DATA_START"
                    DataSubjectField="SUBIECT" Skin="Windows7" StartInsertingInAdvancedForm="True" OnAppointmentCancelingEdit="SchProgramariEchipament_AppointmentCancelingEdit"
                    AppointmentStyleMode="Default" OnAppointmentInsert="SchProgramariEchipament_AppointmentInsert"
                    OnAppointmentUpdate="SchProgramariEchipament_AppointmentUpdate" OnAppointmentDelete="SchProgramariEchipament_AppointmentDelete"
                    OnAppointmentDataBound="SchProgramariEchipament_AppointmentDataBound" OnFormCreated="SchProgramariEchipament_FormCreated"
                    EditFormDateFormat="dd/MM/yyyy" FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" EnableExactTimeRendering="true"
                    CustomAttributeNames="id_aparatura" OverflowBehavior="Auto">
                    <Localization AdvancedNewAppointment="Programare Echipament Nou" AdvancedSubject="Subiect"
                        ConfirmDeleteText="Vrei sa stergeti programarea?" ConfirmDeleteTitle="Vreti sa stergeti programarea?" 
                        ConfirmOK="Da" ConfirmCancel="Nu"
                        HeaderDay="Zi" HeaderMonth="Luna" HeaderToday="Azi" HeaderWeek="Saptamana" Save="Salvare"
                        Cancel="Anuleaza" Show24Hours="24 ore..." ShowBusinessHours="Perioada de Serviciu" />
                    <AdvancedForm Modal="false"></AdvancedForm>
                    <AdvancedForm DateFormat="dd/MM/yyyy" />
                    <ExportSettings OpenInNewWindow="True">
                    </ExportSettings>
                    <ResourceTypes>
                        <telerik:ResourceType KeyField="id_sala" Name="Sala" TextField="nume"
                            ForeignKeyField="id_sala" DataSourceID="dsSala" AllowMultipleValues="false">
                        </telerik:ResourceType>
                        <telerik:ResourceType KeyField="ID_OPERATIE" Name="Operatie" TextField="denumire"
                            ForeignKeyField="ID_OPERATIE" DataSourceID="dsOperatie" AllowMultipleValues="false">
                        </telerik:ResourceType>
                    <telerik:ResourceType  KeyField="ID_OPERATIE" Name="Protocol" TextField="nume_protocol" ForeignKeyField="ID_OPERATIE"
                        DataSourceID="dsProtocol" AllowMultipleValues="false"  >
                    </telerik:ResourceType>
                    </ResourceTypes>
                    <ResourceStyles>
                    </ResourceStyles>
                    <AppointmentTemplate>
                        <div style="font-style: italic; width:100%">
                            Subiect:
                            <%# Eval("Subject") %></div>
                        <div style="font-style: italic; width:100%">
                            Sala Operatie:
                            <%# Eval("Sala.Text")%></div>
                        <div style="font-style: italic; width:100%">
                            Operatie:
                            <%# Eval("Operatie.Text")%></div>
                    </AppointmentTemplate>
                    <AppointmentContextMenuSettings EnableDefault="true"></AppointmentContextMenuSettings>
                </telerik:RadScheduler>
                <asp:SqlDataSource ID="dsProgramareEchipament" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
                    DeleteCommand="DELETE FROM PROGRAMARE_ECHIPAMENT WHERE ID=:original_ID" OldValuesParameterFormatString="original_{0}"
                    ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand="SELECT ID,ID_ECHIPAMENT,SUBIECT,DESCRIERE,DATA_START,DATA_END,E_PERIOADA_STERILIZARE,ID_OPERATIE,ID_SALA FROM PROGRAMARE_ECHIPAMENT where ID_ECHIPAMENT=:ID_ECHIPAMENT"
                    OnSelecting="dsProgramareEchipament_OnSelecting">
                    <DeleteParameters>
                        <asp:Parameter Name="original_ID" Type="Decimal" />
                    </DeleteParameters>
                    <SelectParameters>
                        <asp:Parameter Name="ID_ECHIPAMENT" Type="Decimal" />
                    </SelectParameters>
                </asp:SqlDataSource>                                                                                                                                                                                                                                         So for some appointments I want to display Subiect/Sala Operatie/Operatie and from others I want to only display only Subject. The condition that tells me what type of appointment is from a result of storedprocedure called from code behind. Please help me. Thanks.
                  




Tofan
Top achievements
Rank 1
 answered on 31 Jan 2014
2 answers
72 views
In the Office2010Black skin, secondary tabs do not display any space between the image and the tab text (see attached). This doesn't look good. I'm guessing its the same in other skins as well. This should be fixed in the skin. I'm not particularly looking for a hack.
Kate
Telerik team
 answered on 31 Jan 2014
1 answer
78 views
I am using searchbox to pick locations/places via webservice.
The searchbox is only shown when the location is to be updated, so after a location has been selected from the dropdown, it is hidden again. This works fine most of the time, but occasionally the search returns too slow and a selection has been made on the dropdown before the latest search returns and the searchbox is hidden and just the location name shown. Then all of a sudden the dropdown is shown in the top left corner of the browser. So this is not yet fit for user consumption.
How can I avoid this "late" dropdown showing or otherwise address this?

Current code (not yet extravted as user control, which would be the next step):
   <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
        <telerik:RadCodeBlock ID="RadCodeBlockProfile" runat="server">
            <script type="text/javascript">
                function ShowHide(showMe, hideMe) {
                    document.getElementById(showMe).style.display = "block";
                    document.getElementById(hideMe).style.display = "none";
                    $find("<%= rsb_location.ClientID %>").get_inputElement().value = '';
                }

                function rsb_location_Search(sender, eventArgs) {
                    var value = eventArgs.get_value();
                    if (value != null && value != "0") {
                        document.getElementById('<%= this.FindControl("lbl_CurrentLocation").ClientID %>').innerHTML = eventArgs.get_text();
                        ShowHide('locPickShow', 'locPickUpdate')
                    }
                }
            </script>
        </telerik:RadCodeBlock>
        <div>
            <h1>Test-bed of new location picker</h1>
            <div style="margin-top: 30px">
                <div style="width: 120px; float: left">
                    Your Location:
                </div>
                <div style="float: left">
                    <div id="locPickShow" style="display: block">
                        <asp:Label ID="lbl_CurrentLocation" runat="server" CssClass="labelLink" onclick="ShowHide('locPickUpdate', 'locPickShow')" ToolTip="click here to change the location">not specified</asp:Label>
                    </div>
                    <div id="locPickUpdate" style="display: none">
                        <fieldset style="border-radius: 10px">
                            <legend>update location</legend>

                            <div style="margin-right: 20px">
                                <telerik:RadSearchBox ID="rsb_location" runat="server" Skin="MetroTouch" MinFilterLength="2" EmptyMessage="type and select from options"
                                    Width="300px" EnableAutoComplete="true" OnClientSearch="rsb_location_Search" DropDownSettings-Height="150px" DropDownSettings-Width="335px"
                                    DropDownSettings-CssClass="ddtext"
                                    ShowSearchButton="false" ToolTip="Start typing the location, then pick from the dropdown">
                                    <WebServiceSettings Method="GetLocationMatches" Path="../WebServices/LocationMatches.asmx" />
                                </telerik:RadSearchBox>

                                <span style="position: relative; left: 20px; top: -15px">
                                    <asp:Label ID="lblcancel" runat="server" CssClass="labelLink" onclick="ShowHide('locPickShow', 'locPickUpdate')" ToolTip="click here to cancel">X</asp:Label>
                                </span>
                            </div>
                        </fieldset>
                    </div>
                </div>
            </div>
        </div>
    </form>
Plamen
Telerik team
 answered on 31 Jan 2014
1 answer
84 views
I have just inserted the Listview Image Gallery in my site and is working properly. 
The Gallery is getting the data from the proper folder however I need it to retrieve the information or images of the Current Logged in user.
I generally accomplish this in Listview with a SqlDatasource and a query of the current logged in UserId.
The Image gallery is getting the data in this manner and I am not sure what additions or changes I need to make to get it to Select based on logged in user UserId.

​Public Shared Function GetData() As IList(Of Photo)
If _photos IsNot Nothing Then
Return _photos
End If

_photos = New List(Of Photo)()
For Each file As String In Directory.GetFiles(HttpContext.Current.Server.MapPath("images/"))
Dim photo = New Photo()
photo.Name = Path.GetFileName(file)

Dim image__1 As Image = Image.FromFile(file)
Using memoryStream = New MemoryStream()
image__1.Save(memoryStream, ImageFormat.Png)
photo.Data = memoryStream.ToArray()
End Using
_photos.Add(photo)
Next
Return _photos
End Function
Kostadin
Telerik team
 answered on 31 Jan 2014
1 answer
166 views
Hi
 i have a template column wit checkbox in its item template. I want to set default filter for this column. I tried the code in prerender event but still filtering is not applied. Should i add anything extra?
Shinu
Top achievements
Rank 2
 answered on 31 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?