Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
141 views
Have a look at the clipboard1.gif.

You'll see that there is a treeview and a scheduler. Now, the nodes in the treeview are coloured for the claendar they represent and the appointments in the scheduler are supposed to coloured for the calendars that are associated with.

However, I'm sure that you'll note that whilst, for the greater part, the appointments have been correctly coloured in the background, the text colour is always black.

FYI, I'm using the following bit of code in the AppointmentDataBound event for colouring the appointment ...

e.Appointment.BackColor = ColorTranslator.FromHtml(calEvent.BackColour);
e.Appointment.ForeColor = ColorTranslator.FromHtml(calEvent.TextColour);

No, I know that the code is working 'cos I can see that it's been set using the IE developer tools, but the inline style is being overridden.

Clipboard2.gif shows the output from the IE developer tools that cearly show that the appointment's text colour is being overriden by the .rsAptContent class.

Obviously, I need to override this, but it strikes me as wrong that there should be something with a higher priority than setting the colour in the code-behind as I am doing.

--
Stuart
Chris
Top achievements
Rank 1
 answered on 19 Nov 2018
13 answers
415 views
Hi,

I reprduced the filter template for the date range in this demo:

Demo

It works, but I want to put this template in a UserControl because I have over 20 grid that will use this template.

But for some reason, the grid doesn't filter when my JS is inside my user control.

Could you please send me a sample project with an example? I am working with VS 2008 in VB,

Thanks.
Eyup
Telerik team
 answered on 19 Nov 2018
10 answers
371 views

A lot of your stuff is available this way, and it makes upkeep much more convenient.  Yet some, like Telerik.Web.Spreadsheet.dll do not appear to be available that way. I am just curious what the reasoning behind that is. 

This causes us to have to maintain a binary folder with the DLLs being checked into source control so that our build server can access it.  So now instead of just updating a nuget package, we have to install any updates and remember to copy them over to our binary folder.

It is not universe ending or anything, but I just don't understand why you put some tools in your nuget server and some (in the same software package) you do not.

Rumen
Telerik team
 answered on 16 Nov 2018
4 answers
260 views

     Hello,

I am trying to display text next to export to excel button on the grid. However, it is not visible on the UI.

 

 <telerik:RadGrid RenderMode="Lightweight" ID="RadGrid2"   Width="100%"   AllowFilteringByColumn="True"
            AllowSorting="True" AllowPaging="True" PageSize="7" runat="server" AutoGenerateColumns="False"   OnItemCommand="RadGrid1_ItemCommand"
            ShowStatusBar="false" EnableLinqExpressions="false">
<GroupingSettings CaseSensitive="false"></GroupingSettings>
            <MasterTableView CommandItemDisplay="Top"    CommandItemStyle-HorizontalAlign="Left"  DataKeyNames="InstitutionID" TableLayout="Fixed">
  <CommandItemSettings       ExportToExcelText="Export to Excel"   ShowExportToExcelButton="true" AddNewRecordText="Add new program" ShowAddNewRecordButton="true" ShowRefreshButton="false" />
                <Columns>
<%--<telerik:GridTemplateColumn AllowFiltering="false">
<ItemTemplate>
<asp:LinkButton ID="btnlnk" runat="server" OnClientClick="document.forms[0].target = '_blank';"    Text='Edit' OnClick="btnlnk_Click"/>
</ItemTemplate>
</telerik:GridTemplateColumn> --%>

                    <telerik:GridHyperLinkColumn FooterText="HyperLinkColumn footer" DataTextFormatString="Edit" DataNavigateUrlFields="InstPrgID,DegreeCode" UniqueName="InstPrgID1" DataNavigateUrlFormatString="/heirs/programinventory/editinventory.aspx?&PrgId={0}&DegCode={1}" AllowFiltering="false"   DataTextField="InstPrgID"></telerik:GridHyperLinkColumn>
<telerik:GridBoundColumn FilterDelay="2000" AllowFiltering="true"      AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false" DataField="InstPrgID" UniqueName="InstPrgID"  HeaderText="Identifier"/>  
<telerik:GridBoundColumn FilterDelay="2000" AllowFiltering="true" ShowFilterIcon="false" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"  DataField="programTitle" UniqueName="programTitle"   HeaderText="Program Title"/>  
<telerik:GridBoundColumn FilterDelay="200" AllowFiltering="false" UniqueName="PrgDegree"  DataField="PrgDegree" HeaderText="Program Degree"/>
<telerik:GridBoundColumn UniqueName="PrgOffStatus"  DataField="PrgOffStatus" HeaderText="Program Offering Status" 
                        HeaderStyle-Width="200px">
                        <FilterTemplate>
                            <telerik:RadComboBox RenderMode="Lightweight" ID="RadComboBoxTitle"   DataSourceID="SqlDataSource2"  DataTextField="STATUS" DataValueField="STATUS"
                                  Width="200px" AppendDataBoundItems="true" SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("PrgOffStatus").CurrentFilterValue %>'
                                runat="server" OnClientSelectedIndexChanged="TitleIndexChanged">
                            <Items>
                                            <telerik:RadComboBoxItem Text="All" Value="" />
                                                                                      
                                        </Items> 
                            </telerik:RadComboBox>
                            <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
                                <script type="text/javascript">
function TitleIndexChanged(sender, args) {
var tableView = $find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");
tableView.filter("PrgOffStatus", args.get_item().get_value(), "EqualTo");
                                }
                                </script>
                            </telerik:RadScriptBlock>
                        </FilterTemplate>
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn Visible="false"  FilterDelay="200" AllowFiltering="false" UniqueName="InstitutionID"   DataField="InstitutionID"  HeaderText="Identifier"/>
    
<%--<telerik:GridBoundColumn Visible="false"   DataField="PrgOffStatus" UniqueName="PrgOffStatus"  HeaderText="Program Offering Status"/>--%>
<telerik:GridBoundColumn Visible="false"   DataField="CIPCode" UniqueName ="CIPCode"  HeaderText="CIP Code"/>
<telerik:GridBoundColumn Visible="false"   DataField="CIPDesc" UniqueName="CIPDesc" HeaderText="CIP Description"/>
<telerik:GridBoundColumn Visible="false"   DataField="ProgramTyp" UniqueName="ProgramTyp"  HeaderText="Program Type"/>
<telerik:GridBoundColumn Visible="false"   DataField="PrgOffStatus" UniqueName="PrgOffStatus"  HeaderText="Program Offering Status"/>
<telerik:GridBoundColumn Visible="false"   DataField="RequiredHours" UniqueName="RequiredHours"  HeaderText="Credit Or Contact Hours"/>
<telerik:GridBoundColumn Visible="false"   DataField="ProgramFocus" UniqueName="ProgramFocus"  HeaderText="Program Focus"/>
<telerik:GridBoundColumn Visible="false"   DataField="EduIndicator" UniqueName="EduIndicator"  HeaderText="Distance Education"/>
    <telerik:GridBoundColumn UniqueName="ProgramClass" DataField="ProgramClass" HeaderText="Classification" 
                        HeaderStyle-Width="200px">
                        <FilterTemplate>
                            <telerik:RadComboBox RenderMode="Lightweight" ID="RadComboBoxClass" DataSourceID="SqlDataSource1"  DataTextField="BHE_PROG_TYPE_LONG_DESC" DataValueField="BHE_PROG_TYPE_LONG_DESC"
                                  Width="200px" AppendDataBoundItems="true" SelectedValue='<%# TryCast(Container, GridItem).OwnerTableView.GetColumn("ProgramClass").CurrentFilterValue %>'
                                runat="server" OnClientSelectedIndexChanged="ClassIndexChanged">
                             <Items>
                                            <telerik:RadComboBoxItem Text="All" Value="" />
                                             
                                        </Items> 
                            </telerik:RadComboBox>
                            <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
                                <script type="text/javascript">
function ClassIndexChanged(sender, args) {
var tableView = $find("<%# TryCast(Container, GridItem).OwnerTableView.ClientID %>");  
tableView.filter("ProgramClass", args.get_item().get_value(), "EqualTo");
                                }
                                </script>
                            </telerik:RadScriptBlock>
                        </FilterTemplate>
                    </telerik:GridBoundColumn>
<telerik:GridBoundColumn FilterDelay="200" AllowFiltering="false" Visible="false" UniqueName="BoardApprovedPrgTitle" DataField="BoardApprovedPrgTitle" HeaderText="Board Approved Program Title"/>
<telerik:GridBoundColumn Visible="false"   DataField="YrsAppv" UniqueName="YrsAppv" HeaderText="Year Approved"/>
<telerik:GridBoundColumn Visible="false"   DataField="PublicName" UniqueName="PublicName"  HeaderText="Public Facing Name"/>
<telerik:GridBoundColumn Visible="false"   DataField="WebsiteURL" UniqueName="WebsiteURL"  HeaderText="Program URL"/>
<telerik:GridBoundColumn Visible="false"   DataField="DegreeType" UniqueName="DegreeType" HeaderText="Degree Type"/>
<telerik:GridBoundColumn Visible="false"   DataField="WIOA" UniqueName ="WIOA"  HeaderText="WIOA Eligible"/>
<telerik:GridBoundColumn Visible="false"   DataField="Duration" UniqueName="Duration" HeaderText="Duration"/>
<telerik:GridBoundColumn Visible="false"   DataField="OpenPublic" UniqueName="OpenPublic"  HeaderText="Open to Public"/>
<telerik:GridBoundColumn Visible="false"   DataField="SOCGrpID" UniqueName="SOCGrpID"  HeaderText="Program Group"/>
                    <telerik:GridBoundColumn Visible="false"   DataField="SOC1" UniqueName="SOC1"  HeaderText="SOC1"/>                    
                    <telerik:GridBoundColumn Visible="false"   DataField="SOC1DESC" UniqueName="SOC1DESC"  HeaderText="SOC1 DESC"/>
<telerik:GridBoundColumn Visible="false"   DataField="SOC2" UniqueName="SOC2"  HeaderText="SOC2"/>                    
                    <telerik:GridBoundColumn Visible="false"   DataField="SOC2DESC" UniqueName="SOC2DESC"  HeaderText="SOC2 DESC"/>
<telerik:GridBoundColumn Visible="false"   DataField="SOC3" UniqueName="SOC3"  HeaderText="SOC3"/>                    
                    <telerik:GridBoundColumn Visible="false"   DataField="SOC3DESC" UniqueName="SOC3DESC"  HeaderText="SOC3 DESC"/>
<telerik:GridBoundColumn Visible="false"   DataField="SOC4" UniqueName="SOC4"  HeaderText="SOC4"/>                    
                    <telerik:GridBoundColumn Visible="false"   DataField="SOC4DESC" UniqueName="SOC4DESC"  HeaderText="SOC4 DESC"/>
<telerik:GridBoundColumn Visible="false"   DataField="SOC5" UniqueName="SOC5"  HeaderText="SOC5"/>                    
                    <telerik:GridBoundColumn Visible="false"   DataField="SOC5DESC" UniqueName="SOC5DESC"  HeaderText="SOC5 DESC"/>
<telerik:GridBoundColumn Visible="false"   DataField="SOC6" UniqueName="SOC6"  HeaderText="SOC6"/>                    
                    <telerik:GridBoundColumn Visible="false"   DataField="SOC6DESC" UniqueName="SOC6DESC"  HeaderText="SOC6 DESC"/>
<telerik:GridBoundColumn Visible="false"   DataField="SOC7" UniqueName="SOC7"  HeaderText="SOC7"/>                    
                    <telerik:GridBoundColumn Visible="false"   DataField="SOC7DESC" UniqueName="SOC7DESC"  HeaderText="SOC7 DESC"/>
<telerik:GridBoundColumn Visible="false"   DataField="SOC8" UniqueName="SOC8"  HeaderText="SOC8"/>                    
                    <telerik:GridBoundColumn Visible="false"   DataField="SOC8DESC" UniqueName="SOC8DESC"  HeaderText="SOC8 DESC"/>
<telerik:GridBoundColumn Visible="false"   DataField="SOC9" UniqueName="SOC9"  HeaderText="SOC9"/>                    
                    <telerik:GridBoundColumn Visible="false"   DataField="SOC9DESC" UniqueName="SOC9DESC"  HeaderText="SOC9 DESC"/>
<telerik:GridBoundColumn Visible="false"   DataField="SOC10" UniqueName="SOC10"  HeaderText="SOC10"/>                    
                    <telerik:GridBoundColumn Visible="false"   DataField="SOC10DESC" UniqueName="SOC10DESC"  HeaderText="SOC10 DESC"/>
                    
                    

                
                </Columns>
<%--<CommandItemTemplate>
<div>
<table>
        <tr>
            <td width="30%">
                <asp:LinkButton ID="LinkButton8" Text="Add new program" CommandName="InitInsert" runat="server"></asp:LinkButton>
            </td>
            <td width="40%">
            </td>
            <td width="30%">
                <asp:LinkButton ID="LinkButton9" Text="Export to Excel" CommandName="ExportToExcel"  runat="server"></asp:LinkButton>
            </td>
        </tr>
    </table>
    </div>

 
</CommandItemTemplate>--%>

            </MasterTableView>
   
        </telerik:RadGrid>

prasadsa01
Top achievements
Rank 1
 answered on 16 Nov 2018
3 answers
522 views

Hi,

I would like to generate headers, footers, table of contents etc (headers and footers in each page of the word document) when the editor content is exported to word document format (DocX). Please let me know how to achieve this. Thanks in advance.

regards,

Rama

Rumen
Telerik team
 answered on 16 Nov 2018
2 answers
120 views

Is there any way to move the EditMode tabs (Design / Html / Preview etc) to somewhere other than the bottom left of the editor?  For instance is there a way to move them to the top of the editor?  

 

Thanks!

-Mark

Mark
Top achievements
Rank 2
 answered on 15 Nov 2018
3 answers
118 views

Our application has several list/detail grids where the detail portion has differing numbers of checkbox columns from one main entry to another.  Additionally, the number, title, enabled state, and check state of each of the check boxes is driven by data stored in our database.  The entire grid is on a RadAjax panel.  We are finding that when one detail grid is already open and the user clicks another, the callback does a data bind first for the old detail and then for the new one, resulting in two sets of BL calls.  I suspect that this is a result of how we are creating the check box columns - it is done in back-end code which is called in the OnLoad event handler.  Does Telerik have any examples of the proper way of handling these types of column creations and updates so that the Ajax calls will work properly and not require the entire grid be redrawn?

TIA,

Ron L.

 

Eyup
Telerik team
 answered on 15 Nov 2018
5 answers
279 views
Is there an option to create a radprompt that has a multiline textbox instead of just a regular one? Probably not but I think it would be a nice addition.

thanks,
Elmar
Peter Milchev
Telerik team
 answered on 15 Nov 2018
1 answer
220 views

I have a RadImageGallery that appears in a boostrap modal when a button is clicked. I want to load different sets of images based on the project that was selected.

 

<form id="form1" runat="server">
  <telerik:RadScriptManager runat="server" ID="RadScriptManager1" EnableEmbeddedjQuery="false" />
    <div class="col-lg-12">
      <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel2">
        <h2 class="Heading">Image Viewer</h2>
        <telerik:RadImageGallery RenderMode="Lightweight" runat="server" ID="ImageViewerGallery" Height="473px" DisplayAreaMode="Image">
          <Items></Items>
        </telerik:RadImageGallery>
      </telerik:RadAjaxPanel>
    </div>
</form>

In jQuery, whenever I call 

var imageGalleryItems = $find('<%=ImageViewerGallery.ClientID%>').get_items();

I get an error message "Cannot read property 'get_items' of null.

Any ideas?

Peter Milchev
Telerik team
 answered on 15 Nov 2018
10 answers
503 views

Hello,
since I downloaded the latest version of Firefox, a few days ago, I see the checkboxes "duplicated" (2 squares for each checkbox).
How can I solve the problem?
Many thanks
Kurt

Rumen
Telerik team
 answered on 15 Nov 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?