Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
61 views

Hi Team,

I am developing Gantt chart using RadChart control. Can you please tell me how to mark weekends(sat, sun) in different color.

 

series.Type = ChartSeriesType.Gantt;
series.Appearance.LabelAppearance.Visible = false;
series.Appearance.LabelAppearance.Position.AlignedPosition = AlignedPositions.Top;
series.DataYColumn = "FromDate";
series.DataYColumn2 = "ToDate";
series.DataLabelsColumn = "Event";

Thanks,

Suresh.

 

 

Suresh
Top achievements
Rank 1
 asked on 14 May 2015
1 answer
116 views

i want to Show a .png  icon in place of RadAsycUpload control

how i can set height using css ?

 

 

 

div.RadUpload_Default .ruBrowse, div.RadUpload_Default .ruBrowse .ruButtonHover, .ruButton.ruButtonFocus      
{ background-image: url('../Images/Document-icon.png') !important;
background-repeat: no-repeat;
background-position: 0 -5px !important;
width: 122px !important;
background-size: 32px 32px;
height: 132px !important;
width: 32px !important;
        }
div.RadUpload_Default .ruFakeInput{display: none;
  }
div.RadUpload_Default.ruFileInput
{
display: none;
}

 

<telerik:RadAsyncUpload runat="server" DisablePlugins="true" EnableInlineProgress="false" ID="AsyncUpload1" OnClientFileUploaded="OnClientFilesUploaded"<br>                    UploadedFilesRendering="BelowFileInput" MultipleFileSelection="Automatic" InputSize="20"><br>                    <Localization Select="" /><br>                </telerik:RadAsyncUpload>

 

 

Magdalena
Telerik team
 answered on 14 May 2015
1 answer
96 views

Hi 

We have an OLAP cube we want to view with the PivotGrid in an ASP.NET website. 

We need to allow different users only to view their own data from the cube with some kind of pre-filter or sub query.  

Any help to achieve this would be appreciated.

Thanks in advance

Richard

Maria Ilieva
Telerik team
 answered on 14 May 2015
0 answers
82 views

http://www.baumrucker.com/ver5

 

Server Error in '/ver5' Application.Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.Web.UI' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace:

[FileLoadException: Could not load file or assembly 'Telerik.Web.UI' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]

[FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1317.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +34
System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +77
System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +16
System.Reflection.Assembly.Load(String assemblyString) +28
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +38

[ConfigurationErrorsException: Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1317.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +736
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +217
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +170
System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +91
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +284
System.Web.Compilation.BuildManager.ExecutePreAppStart() +153
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +521

[HttpException (0x80004005): Could not load file or assembly 'Telerik.Web.UI, Version=2010.3.1317.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9931916
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34248 

Ron
Top achievements
Rank 1
 asked on 13 May 2015
6 answers
247 views

I'm having troubles with the RadEditor which I am using on my ASP.NET site. I'm trying to use the EmptyMessage feature to tell the user that this field is optional by displaying a "Optional" watermark. Here is what I have:

<telerik:RadEditor EditModes="Design" SpellCheckSettings-DictionaryPath="./RadSpell" ID="optionalEditorField"  runat="server" Height="150px" ToolbarMode="ShowOnFocus" EmptyMessage="Optional" >
<Tools>
<telerik:EditorToolGroup>
...
 

 The above code is not displaying the "Optional" watermark. I use similar settings for Telerik text editors and those watermarks work fine. Would anyone know what I might be doing wrong? 

I have a slightly older telerik version, I think 2012 or so. 

Vessy
Telerik team
 answered on 13 May 2015
2 answers
105 views
I  had a rad combo box with an itemtemplate like this?

<telerik:RadComboBox ID="Radcmb_LabelsFor_AllMails" runat="server" > 
                                  
                            <ItemTemplate>
                                <table width="100%">
                                <tr>
                                    <td width="9%" align="left" >  <asp:CheckBox runat="server" ID="chk_CheckLabel" Checked="true"/> </td>
                                    <td align="left"> <asp:Label runat="server" ID="lbl_LabelName">
                                            <%# Eval("Label") %>
                                         </asp:Label> </td>
                                    <td align="right"> <asp:ImageButton ID="imgbtn_Delete" runat="server" 
                                            ImageUrl="~/Styles/Images/Webmail_Images/delete.gif" Width="10" Height="10" 
                                            OnClick="imgbtn_Delete_Click" /> </td>
                                </tr>                              
                                </table>                                                                                          
                            </ItemTemplate>  

   </telerik:RadComboBox>

In Cs Page

I am binding like this

 Radcmb_LabelsFor_AllMails.DataSource = FolderDs;
          Radcmb_LabelsFor_AllMails.DataTextField = "Label";
          Radcmb_LabelsFor_AllMails.DataBind();

and defining an template after the binding

 Radcmb_LabelsFor_AllMails.ItemTemplate = new CreateLabelTemplate();
 public void InstantiateIn(Control container)
          {
              btn_CreateLabel.Text = "Create";
              container.Controls.Add(btn_CreateLabel);
              btn_CreateLabel.EnableViewState = false;
              btn_CreateLabel.Font.Size = 8;
              btn_CreateLabel.Font.Name = "Verdana";
              btn_CreateLabel.Attributes.Add("OnClick", "return CheckLabelName()");

          }


Every thing worked fine...

But now when i click on image button delete of item template i want to delete the radcomboboxitem? how to do this? i stucked here..My event is raising..but i failed to track the radcomboboxitem index?
GTL Dev
Top achievements
Rank 2
 answered on 13 May 2015
13 answers
693 views
Hi. I have this code:

        <telerik:RadScheduler ID="RadScheduler1" runat="server" Culture="Portuguese (Portugal)" 
            Height="440px" SelectedView="WeekView" Skin="Web20" Width="751px" DayEndTime="1.00:00:00" DayStartTime="06:00:00" OverflowBehavior="Scroll" ShowFooter="False" ShowViewTabs="False" AllowDelete="True" AllowEdit="True" AllowInsert="True" DataEndField="Fim" DataKeyField="ID" DataSourceID="SqlAulas" DataStartField="Inicio" DataSubjectField="Assunto" FirstDayOfWeek="Monday" LastDayOfWeek="Saturday" DataMember="DefaultView" EnableTheming="True" ShowAllDayRow="False" WorkDayEndTime="23:00:00" WorkDayStartTime="06:00:00" EnableCustomAttributeEditing="True" ShowMonthlyColumnHeader="False">  
           <ResourceTypes> 
                <telerik:ResourceType DataSourceID="SqlSessoes" ForeignKeyField="sessao_id" KeyField="id" 
                    Name="Tipo" TextField="descricao" /> 
                <telerik:ResourceType DataSourceID="SqlFormadores" ForeignKeyField="formador_id" 
                    KeyField="user_id" Name="Formador" TextField="nome" /> 
                <telerik:ResourceType DataSourceID="SqlUFs" ForeignKeyField="uf_id" KeyField="ID" 
                    Name="UF" TextField="Designacao" /> 
            </ResourceTypes> 
            <InlineInsertTemplate> 
   <asp:TextBox  
       ID="TitleTextBox" 
       runat="server" 
       Text='<%# Bind("Assunto") %>' 
       Width="90%" 
       TextMode="MultiLine" 
       Height="20px">  
   </asp:TextBox><br /> 
                   <radCb:RadComboBox ID="RadComboBox5" runat="server" DataMember="DefaultView" DataSourceID="SqlFormadores" 
            DataTextField="nome" DataValueField="user_id" Skin="Default" SkinsPath="~/RadControls/ComboBox/Skins" 
            Value='<%# Bind("formador_id") %>' Width="90px" AppendDataBoundItems="True">  
                       <Items> 
                           <radCb:RadComboBoxItem ID="RadComboBoxItem1" Text="Formador" runat="server" Selected="True" /> 
                       </Items> 
        </radCb:RadComboBox> 
        <br /> 
        <radCb:RadComboBox ID="RadComboBox4" runat="server" DataMember="DefaultView" DataSourceID="SqlSessoes" 
            DataTextField="descricao" DataValueField="id" Skin="Default" SkinsPath="~/RadControls/ComboBox/Skins" 
            Value='<%# Bind("sessao_id") %>' Width="90px" AppendDataBoundItems="True">  
            <Items> 
                <radCb:RadComboBoxItem ID="RadComboBoxItem2" runat="server" Text="Sessão" Selected="True" /> 
            </Items> 
        </radCb:RadComboBox> 
        <br /> 
        <radCb:RadComboBox ID="RadComboBox3" runat="server" DataMember="DefaultView" DataSourceID="SqlUFs" 
            DataTextField="Designacao" DataValueField="ID" Skin="Default" SkinsPath="~/RadControls/ComboBox/Skins" 
            Value='<%# Bind("uf_id") %>' Width="90px" AppendDataBoundItems="True">  
            <Items> 
                <radCb:RadComboBoxItem ID="RadComboBoxItem3" runat="server" Text="UF" Selected="True" /> 
            </Items> 
        </radCb:RadComboBox> 
        <br /> 
<asp:CheckBox ID="CheckBox1" runat="server" Checked='<%# Bind("precenca") %>' Font-Names="Arial" Font-Size="Small" Text="Presenças" /><br /> 
<asp:CheckBox ID="CheckBox2" runat="server" Checked='<%# Bind("sumario") %>' Font-Names="Arial" Font-Size="Small" Text="Sumário" /><br /> 
<asp:CheckBox ID="CheckBox3" runat="server" Checked='<%# Bind("ocorrencias") %>' Font-Names="Arial" Font-Size="Small" Text="Ocorrências" /><br /> 
<asp:CheckBox ID="CheckBox4" runat="server" Checked='<%# Bind("visitada") %>' Font-Names="Arial" Font-Size="Small" Text="Visitada" /><br /> 
<asp:CheckBox ID="CheckBox5" runat="server" Checked='<%# Bind("realizada") %>' Font-Names="Arial" Font-Size="Small" Text="Realizada" /><br /> 
<asp:CheckBox ID="CheckBox6" runat="server" Checked='<%# Bind("substituida") %>' Font-Names="Arial" Font-Size="Small" Text="Substituida" /><br /> 
   <asp:LinkButton  
       ID="InsertButton" 
       runat="server" 
       CommandName="Insert">  
           <asp:Image  
               runat="server" 
               ID="insertImage" 
               ImageUrl="../Images/giscon/AppointmentEditOK.gif" 
               AlternateText="insert" /> 
           </asp:LinkButton> 
           <asp:LinkButton  
               ID="InsertCancelButton" 
               runat="server" 
               CausesValidation="False" 
               CommandName="Cancel">  
                   <asp:Image  
                       runat="server" 
                       ID="Image3" 
                       ImageUrl="../Images/giscon/AppointmentEditCancel.gif" 
                       AlternateText="cancel" /> 
           </asp:LinkButton> 
 
</InlineInsertTemplate>   
<AppointmentTemplate> 
<%# Eval("Assunto") %><br /> 
<%# Eval("sessao_id") %> 
 
        
</AppointmentTemplate>   
 
 
        </telerik:RadScheduler> 

Everithing shows fine except the AppointmentTemplate that is giving me this error:  

DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'Assunto'.

But I have the Assunto in the DB.

Can you help me please?


thanks.

Hristo Valyavicharski
Telerik team
 answered on 13 May 2015
3 answers
94 views

When RadMenu renders in mobile-mode - the drop down appears behind other controls - such as RadDock.

This seems like something that should be corrected.  How do we manually set the z-index for the dropdown (drop downs in desktop mode properly appear over the rad dock.)

 Also - is it possible to alter the width of the mobile dropdown - its far too narrow to display anything other than single word labels.

Dimitar
Telerik team
 answered on 13 May 2015
3 answers
515 views

 Hello,

 I am trying to access some controls in the EditItemTemplate of a RadGrid EditForm.  Two of the columns are GridTemplateColumns and have RadTextBoxes in the EditItemTemplates, one column is a GridDropDownColumn.

 I have a LinkButton that launches a popup window for edit and add records.  I want to pass the contents of the controls to the form and use the results that come back to change the value in one of the RadTextBoxes.

 I can pop the window up just fine, but I am unable to retrieve the values from the edit controls to put in the querystring of the popup window url.

 I have followed every example that I can find online and I am unable to retrieve the values from the RadTextBoxes or the RadComboBox on the client.  I have tried finding the controls by their ID, as well as the column's UniqueName.  All to no avail.

 Can any one help me please?

 The grid markup is:
 (The columns that I want to capture are:  UniqueName="Program", UniqueName="LicenseNum", UniqueName="ApplicantName")

       <telerik:RadGrid ID="gvwFunds" ShowStatusBar="True" runat="server" AutoGenerateColumns="False"
         PageSize="7" AllowPaging="True" Skin="Bootstrap" Visible="False" GroupPanelPosition="Top">
         <PagerStyle Mode="NumericPages"></PagerStyle>
         <MasterTableView Name="gtvPrograms" DataKeyNames="Programs_UID" EditMode="InPlace" CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage" ClientDataKeyNames="Program, License_Num, ApplicantName">
           <CommandItemTemplate>
             &nbsp;<asp:LinkButton ID="lbAddProgram" CommandName="InitInsert" runat="server">&nbsp;&nbsp;&nbsp;&nbsp;<img style="border:0px;vertical-align:middle;" alt="" src="../../Custom/Images/AddRecord.png"/>&nbsp;&nbsp;Add New Program</asp:LinkButton>
           </CommandItemTemplate>
           <DetailTables>
             <telerik:GridTableView Name="gtvFunds" DataKeyNames="Funds_UID" Width="100%" runat="server" EditMode="InPlace" CommandItemDisplay="Top">
               <CommandItemTemplate>
                 &nbsp;<asp:LinkButton ID="lbAddFund" CommandName="InitInsert" runat="server">&nbsp;&nbsp;&nbsp;&nbsp;<img style="border:0px;vertical-align:middle;" alt="" src="../../Custom/Images/AddRecord.png"/>&nbsp;&nbsp;Add New Fund</asp:LinkButton>
               </CommandItemTemplate>
               <Columns>
                 <telerik:GridDropDownColumn UniqueName="ddlFiscalCode" ListTextField="FiscalCode" ListValueField="FiscalCode"
                   ListDataMember="FiscalCodes" DataField="FiscalCode" HeaderText="Fiscal Code" DropDownControlType="RadComboBox" />
                 <telerik:GridTemplateColumn UniqueName="Fund" HeaderText="Fund">
                   <ItemTemplate>
                   </ItemTemplate>
                   <EditItemTemplate>
                     <telerik:RadTextBox ID="txtFund" Skin="Bootstrap" runat="server" Enabled="False" ReadOnly="True">
                     </telerik:RadTextBox>
                   </EditItemTemplate>
                 </telerik:GridTemplateColumn>
                 <telerik:GridTemplateColumn UniqueName="ObjectCode" HeaderText="Object Code">
                   <ItemTemplate>
                   </ItemTemplate>
                   <EditItemTemplate>
                     <telerik:RadTextBox ID="txtObjectCode" Skin="Bootstrap" runat="server" Enabled="False" ReadOnly="True">
                     </telerik:RadTextBox>
                   </EditItemTemplate>
                 </telerik:GridTemplateColumn>
                 <telerik:GridBoundColumn HeaderText="Amount" DataField="Amount" UniqueName="Amount" DataFormatString="{0:#,##0.00}" ItemStyle-HorizontalAlign="Right" FooterStyle-HorizontalAlign="Right" HeaderStyle-HorizontalAlign="Right">
                   <FooterStyle HorizontalAlign="Right" />
                   <HeaderStyle HorizontalAlign="Right" />
                   <ItemStyle HorizontalAlign="Right" />
                 </telerik:GridBoundColumn>
                 <telerik:GridEditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel" EditText="Edit">
                 </telerik:GridEditCommandColumn>
               </Columns>
               <EditFormSettings>
                 <EditColumn FilterControlAltText="Filter EditCommandColumn1 column" UniqueName="EditCommandColumn1">
                 </EditColumn>
               </EditFormSettings>
             </telerik:GridTableView>
           </DetailTables>
           <Columns>
             <telerik:GridDropDownColumn UniqueName="Program" ListTextField="DESCR" ListValueField="CODE"
               ListDataMember="ProgramList" DataField="ProgramCode" HeaderText="Program" DropDownControlType="RadComboBox">
             </telerik:GridDropDownColumn>
             <telerik:GridTemplateColumn UniqueName="LicenseNum" HeaderText="License #">
               <ItemTemplate>
               </ItemTemplate>
               <EditItemTemplate>
                 <telerik:RadTextBox ID="txtLicenseNum" Skin="Bootstrap" runat="server">
                 </telerik:RadTextBox>
               </EditItemTemplate>
             </telerik:GridTemplateColumn>
             <telerik:GridTemplateColumn UniqueName="ApplicantName" HeaderText="Applicant Name">
               <ItemTemplate>
               </ItemTemplate>
               <EditItemTemplate>
                 <telerik:RadTextBox ID="txtApplicantName" Skin="Bootstrap" runat="server">
                 </telerik:RadTextBox>
               </EditItemTemplate>
             </telerik:GridTemplateColumn>
             <telerik:GridEditCommandColumn ButtonType="LinkButton" UpdateText="Update" CancelText="Cancel" EditText="Edit">
             </telerik:GridEditCommandColumn>
           </Columns>
         </MasterTableView>
       </telerik:RadGrid> 
 Thanks,

 Bob

Robert
Top achievements
Rank 1
 answered on 13 May 2015
4 answers
73 views
I am adding items to the combobox using the examples given in the documentation and when I add an item I get an

JavaScript runtime error: Object doesn't support property or method 'get_simpleRendering'. I have tried various ways to do this to no avail. Any ideas as to why I am getting this error?

var combo = $find("<%= DayRadDropDownList.ClientID %>");
var i = 1;
for (i = 1; i <= mtype; i++) {
var comboItem = new Telerik.Web.UI.RadComboBoxItem();
comboItem.set_text("1");
comboItem.set_value("1");
combo.get_items().add(comboItem);
}
Dimitar
Telerik team
 answered on 13 May 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?