Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
625 views

Hello,

I have read the other threads, and I am not having much success. I can export a URL as text, but I haven't been able to get it to show up as a clickable link in an xlsx file. Can someone please help me? Below are the examples preceded by a note about its behavior:

 

[ This one doesn't show anything in the text cell. I read on an old post that this is to be expected. ]
<telerik:GridHyperLinkColumn AllowFiltering="False" AllowSorting="False" Visible="true"
 HeaderText="View0.0"
 Text="View Page"
 Target="_blank"
 DataNavigateUrlFormatString="page.aspx?autoid={0}"
 DataNavigateUrlFields="SpecimenAutoID">
    <HeaderStyle Width="50px" HorizontalAlign="Center"></HeaderStyle>
</telerik:GridHyperLinkColumn>

[This displays the cell as source html.]
<telerik:GridTemplateColumn HeaderText="View1.0" >
    <ItemTemplate>
        <a href="https://www.google.com">Click here to open the folder</a>
    </ItemTemplate>
    <HeaderStyle Width="200px" HorizontalAlign="Center"></HeaderStyle>
</telerik:GridTemplateColumn>

[This displays the cell as source html.]
<telerik:GridTemplateColumn HeaderText="View1.1" >
    <ItemTemplate>
        <a href="https://www.google.com">https://www.google.com</a>
    </ItemTemplate>
    <HeaderStyle Width="200px" HorizontalAlign="Center"></HeaderStyle>
</telerik:GridTemplateColumn>

 

[This displays the link as a text string.]
<telerik:GridTemplateColumn HeaderText="View1.2" >
    <ItemTemplate>
        https://www.google.com
    </ItemTemplate>
    <HeaderStyle Width="200px" HorizontalAlign="Center"></HeaderStyle>
</telerik:GridTemplateColumn>

[This displays the data field as text string]
<telerik:GridBoundColumn Visible="false" SortExpression="directURL" HeaderText="View Specimen" HeaderButtonType="TextButton"
                         DataField="directURL" Exportable="True" UniqueName="hiddenDirectURL" >
    <HeaderStyle Width="200px" HorizontalAlign="Center"></HeaderStyle>
</telerik:GridBoundColumn>

Any suggestions would be appreciated. Thanks.

Dan

 

Doncho
Telerik team
 answered on 21 May 2020
3 answers
493 views
i am trying to use two rad grid on the same page. the grid is working fine but i am unable to see the second grid. i am getting the value from the first grid and then on button click i am filling the other grid. any idea why i am not getting the second grid on the run time. as i can still both of the grids in design mode.

if you need i can post the coding also.

thanks & Regards
Doncho
Telerik team
 answered on 20 May 2020
1 answer
325 views

Hi

I am using the asp.net charting control.  I am plotting data over time, sometimes over days, weeks, months and years.  I would like th X axis (which shows time) on the graph to be sequential even if the data is not.  eg, if a week/month/year is missing it will plot a the item on the X axis but not have a value (hope that makes sense).  So effectively the chart looks like a timeline of data, the gaps shows missing data

 

Is this possible with the chart control?

Many thanks in advance

 

 

 

 


Vessy
Telerik team
 answered on 20 May 2020
2 answers
581 views
I have a grid form in ASP.Net VB.Net with the following Special Char "≤". It is appearing fine in the Web form and Excel export but the PDF it replaces with a # char. How can I get this character, â‰¤ to display.
Chuck
Top achievements
Rank 1
Veteran
 answered on 20 May 2020
11 answers
498 views
Hi,

From client side code, Is it possible to retrieve data from the current datasource of the HtmlChart to an array of JSON objects and store it in a variable?

Thanks,
Teena.
Vessy
Telerik team
 answered on 20 May 2020
1 answer
226 views

I have a AdvandeForm with a radComboBox

 <li class="rfbRow">
                   <asp:Label runat="server" Text="Empleado" CssClass="rfbLabel" />
                    <telerik:RadComboBox runat="server" ID="RadUser" Type="User" Filter="Contains" />
 </li>

 

And i want to fill this combo on the Default.aspx.vb and not on the AdvanceForm.ascx.vb.

How can I get the radComboBox and fill it?

Peter Milchev
Telerik team
 answered on 20 May 2020
8 answers
208 views
hi there, is that possible to display full 24hrs (remove option to display anything else) and display with the default start position to 8:00am? (the auto scroll to 8am)
Peter Milchev
Telerik team
 answered on 19 May 2020
1 answer
358 views
I want to set ShowFullTime="true" and ShowFooter="false" for RadScheduler, then display it with the default start position to 8:00am (auto scroll to 8am).
Peter Milchev
Telerik team
 answered on 19 May 2020
1 answer
1.0K+ views

Hi!

I am using Telerik's Radgrid in EditMode="Batch" and with EditType="Cell" settings. The Grid contains both GridBoundColumn(s) and GridTemplateColumn(s) with DropDownLists.

What i want to achieve (on client side) is when a user changes the value in a dropdown list (contained in an GridTemplateColumn), i will be able and update some session variables depending on the values of multiple other column values of the grid.

Up to know i was able to do everything i wanted using the code behind event handlers but this scenario requires handling some of the event on the client side, so i am struggling with javascript :) which is not really my expertise.

I am using the OnBatchEditOpen & OnBatchEditClosed client events off the grid.

What i am trying to achieve is when a cell (Columns that expose dropdown lists are: Segment, Basis, Side) is clicked for editting (OnBatchEditOpen) to be able and also fetch the values of some other columns on the same row.

Here is my grid code:

<telerik:RadGrid
    RenderMode="Lightweight"
    runat="server"
    ID="RadGridLesions"
    AllowPaging="True"
    AllowSorting="True"
    AutoGenerateColumns="False"
    Skin="BlackMetroTouch"
    CssClass="dark-grey"
    OnNeedDataSource="RadGridLesions_NeedDataSource"
 
    ShowStatusBar="True"
 
    AllowAutomaticInserts="False"
    AllowAutomaticDeletes="True"
    AllowAutomaticUpdates="True"
    OnItemUpdated="RadGridLesions_ItemUpdated"
    OnItemDeleted="RadGridLesions_ItemDeleted"
    OnBatchEditCommand="RadGridLesions_BatchEditCommand"
    >
        <MasterTableView
            CommandItemDisplay="Top"
            EditMode="Batch">
                <PagerStyle />
 
                <BatchEditingSettings
                    SaveAllHierarchyLevels="false"
                    HighlightDeletedRows="false"
                    EditType="Cell"
                    OpenEditingEvent="Click" />
 
                        <Columns>
 
                                <telerik:GridBoundColumn
                                    DataField="Segment"
                                    UniqueName="Segment"
                                    HeaderText="Segment"
                                    DataType="System.String"
                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                                    Visible="true"
                                    ReadOnly="true">
                                </telerik:GridBoundColumn>
 
                                <telerik:GridBoundColumn
                                    DataField="Level"
                                    UniqueName="Level"
                                    HeaderText="Level"
                                    DataType="System.String"
                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                                    Visible="true"
                                    ReadOnly="true">
                                </telerik:GridBoundColumn>
 
                                <telerik:GridBoundColumn
                                    DataField="Side"
                                    UniqueName="Side"
                                    HeaderText="Side"
                                    DataType="System.String"
                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                                    Visible="true"
                                    ReadOnly="true">
                                </telerik:GridBoundColumn>
 
                                <telerik:GridBoundColumn
                                    DataField="T2Grade"
                                    UniqueName="T2Grade"
                                    HeaderText="T2"
                                    DataType="System.Int32"
                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                                    Visible="false"
                                    ReadOnly="false">
                                </telerik:GridBoundColumn>
 
                                <telerik:GridTemplateColumn
                                    HeaderText="T2"
                                    HeaderStyle-Width="70px"
                                    UniqueName="T2Grade"
                                    DataField="T2Grade">
                                    <ItemTemplate>
                                        <%# Eval("T2Grade") %>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <telerik:RadDropDownList
                                            RenderMode="Lightweight"
                                            runat="server"
                                            ID="T2GradeDropDownList"
 
                                            AutoPostBack="false"
                                            OnSelectedIndexChanged="T2GradeDropDownList_SelectedIndexChanged"
 
                                            OnClientItemSelected="T2GradeDropDownList_OnClientItemSelected"
 
                                            Skin="BlackMetroTouch"
                                            SelectedValue='<%# Eval("T2Grade") %>'>
                                            <Items>
                                                <telerik:DropDownListItem Text="X" Value="0" />
                                                <telerik:DropDownListItem Text="1" Value="1" />
                                                <telerik:DropDownListItem Text="2" Value="2" />
                                                <telerik:DropDownListItem Text="3" Value="3" />
                                                <telerik:DropDownListItem Text="4" Value="4" />
                                                <telerik:DropDownListItem Text="5" Value="5" />
                                            </Items>
                                        </telerik:RadDropDownList>
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>
 
                                <telerik:GridBoundColumn
                                    DataField="DWIGrade"
                                    UniqueName="DWIGrade"
                                    HeaderText="DWI"
                                    DataType="System.String"
                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                                    Visible="false"
                                    ReadOnly="false" >
                                </telerik:GridBoundColumn>
 
                                <telerik:GridTemplateColumn
                                    HeaderText="DWI"
                                    HeaderStyle-Width="70px"
                                    UniqueName="DWIGrade"
                                    DataField="DWIGrade">
                                    <ItemTemplate>
                                        <%# Eval("DWIGrade") %>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <telerik:RadDropDownList
                                            RenderMode="Lightweight"
                                            runat="server"
                                            ID="DWIGradeDropDownList"
                                            Skin="BlackMetroTouch"
                                            SelectedValue='<%# Bind("DWIGrade") %>'>
                                            <Items>
                                                <telerik:DropDownListItem Text="X" Value="0" />
                                                <telerik:DropDownListItem Text="1" Value="1" />
                                                <telerik:DropDownListItem Text="2" Value="2" />
                                                <telerik:DropDownListItem Text="3" Value="3" />
                                                <telerik:DropDownListItem Text="4" Value="4" />
                                                <telerik:DropDownListItem Text="5" Value="5" />
                                            </Items>
                                        </telerik:RadDropDownList>
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>
 
                                <telerik:GridBoundColumn
                                    DataField="DCEGrade"
                                    UniqueName="DCEGrade"
                                    HeaderText="DCE"
                                    DataType="System.Int32"
                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                                    Visible="false"
                                    ReadOnly="false" >
                                </telerik:GridBoundColumn>
 
                                <telerik:GridTemplateColumn
                                    HeaderText="DCE"
                                    HeaderStyle-Width="70px"
                                    UniqueName="DCEGrade"
                                    DataField="DCEGrade">
                                    <ItemTemplate>
                                        <%# Eval("DCEGrade") %>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <telerik:RadDropDownList
                                            RenderMode="Lightweight"
                                            runat="server"
                                            ID="DCEGradeDropDownList"
                                            Skin="BlackMetroTouch"
                                            SelectedValue='<%# Bind("DCEGrade") %>'>
                                            <Items>
                                                <telerik:DropDownListItem Text="X" Value="0" />
                                                <telerik:DropDownListItem Text="+" Value="1" />
                                                <telerik:DropDownListItem Text="-" Value="2" />
                                            </Items>
                                        </telerik:RadDropDownList>
                                    </EditItemTemplate>
                                </telerik:GridTemplateColumn>
 
                                <telerik:GridBoundColumn
                                    DataField="PiradGrade"
                                    UniqueName="PiradGrade"
                                    HeaderText="Pirad"
                                    DataType="System.Int32"
                                    HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"
                                    Visible="true"
                                    ReadOnly="true">
                                </telerik:GridBoundColumn>
 
                                <telerik:GridBoundColumn
                                    DataField="Width"
                                    UniqueName="Width"
                                    HeaderText="Width"
                                    DataType="System.Double"
                                    Visible="true"
                                    ReadOnly="false">
                                </telerik:GridBoundColumn>
 
                                <telerik:GridBoundColumn
                                    DataField="Height"
                                    UniqueName="Height"
                                    HeaderText="Height"
                                    DataType="System.Double"
                                    Visible="true"
                                    ReadOnly="false" >
                                </telerik:GridBoundColumn>
 
                                <telerik:GridBoundColumn
                                    DataField="Comments"
                                    UniqueName="Comments"
                                    HeaderText="Comments"
                                    DataType="System.String"
                                    Visible="true"
                                    ReadOnly="false" >
                                </telerik:GridBoundColumn>
 
                                <telerik:GridButtonColumn
                                    ConfirmText="Delete this Row?"
                                    ConfirmDialogType="Classic"
                                    ConfirmTitle="Delete"
                                    HeaderText="Delete" HeaderStyle-Width="70px"
                                    HeaderStyle-CssClass="studies-header delete" ItemStyle-CssClass="studies-items delete"
                                    CommandName="Delete"
                                    Text="Delete"
                                    UniqueName="DeleteStudy">
                                </telerik:GridButtonColumn>
 
                </Columns>
 
        </MasterTableView>
 
    <ClientSettings>
        <ClientEvents OnBatchEditOpened="BatchEditOpened" OnBatchEditClosed="BatchEditClosed" />
    </ClientSettings>
 
</telerik:RadGrid>

 

So what in particular i am trying to achive is that if the user clicks on the "T2Grade" dropdown list depending on the values of "Segment", "Side", "Basis" columns i will make some additional actions. So in the event i need a way to fetch clicked cell's row, other column values.

My issue is how to fetch the values of the clicked cell's row column values for "Segment", "Side" and "Basis":

function BatchEditOpened(sender, args) {
 
    var tableView = sender.get_masterTableView();
    var batchEditingManager = sender.get_batchEditingManager();
    var items = tableView.get_dataItems();
 
    if (args.get_columnUniqueName() === "T2Grade") {
 
            _currentDropDownCell = args.get_cell("T2Grade");
            var _currentDropDownCellValue = batchEditingManager.getCellValue(_currentDropDownCell);
            //this is the value of the selected dropdown list
            alert('T2Grade: ' + _currentDropDownCellValue);
 
            // how am i going to fetch the ROW index AND/OR ROW data for the other columns of the grid
            // tried with args.get_row() but this is not working
            // most probably because i work with: EditType="Cell"
            ....
}

 

Anybody has an idea of how to do it?

Eyup
Telerik team
 answered on 19 May 2020
1 answer
547 views

Just upgraded to Q2 2020 and RadMultiColumnComboBox's dropdown background is transparent when you haven't selected an item

Looking at the differences between Q1 2020 and Q2 2020 it looks like it is tied to the CSS class .k-reset

This also happens on Telerik's demo site if you take off the Styling added from DropdownGrid.Silk.css or the class of RadMultiColumnComboBox_Silk from the RadMultiColumnComboBox.

https://demos.telerik.com/aspnet-ajax/multicolumncombobox/overview/defaultcs.aspx

/*Q1 2020*/
.k-reset {
margin: 0;
padding: 0;
border: 0;
outline: 0;
text-decoration: none;
font-size: 100%;
list-style: none;
}
/*Q2 2020*/
.k-reset {
margin: 0;
padding: 0;
border: 0;
background: 0; /*Issue overridding background*/
list-style: none;
}
/*Solution for other Developers to get around issue*/
.k-dropdowngrid-popup {
    background-color: #fff !important;
}
Peter Milchev
Telerik team
 answered on 18 May 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?