Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
330 views

I successfully implemented a custom filter class which manipulates a drop down list of possible values

https://docs.telerik.com/devtools/aspnet-ajax/controls/grid/how-to/Filtering/filter-with-ms-dropdownlist-instead-of-textbox-

one thing remains - what should the value be to clear the filter - and do I need to add code to the class selected index event handler?

the example clears the textbox for all selections - but can't I selectively clear a filter?

Chris
Top achievements
Rank 1
 answered on 15 Mar 2018
0 answers
196 views

     I have a radgrid where I am embedding an image and css controls in a GridButtonColumn:

 

<telerik:GridButtonColumn UniqueName="launchFileSnapshot" Visible="true" HeaderText="File Snapshot" ButtonType="ImageButton"
                                                            ImageUrl="..."
                                                            CommandName="launchFileSnapshot" ButtonCssClass="hi-icon">
                                                        </telerik:GridButtonColumn>           

 

The issue I come across is when you select to edit this row, the image does not retain the CSS style and the image enlarges to the full resolution of the original image. 

 

before edit      --      inEditMode

Is there any way to retain the CSS on the image button when the grid is in edit mode?

Stephen
Top achievements
Rank 1
 asked on 15 Mar 2018
0 answers
106 views

Hello,

I have a grid and one column of the grid holds two controls, ComboBox and a TextBox. The grid is in batch edit mode.

My goal, using server side ideally but not limited to, to hide one of the controls, according to some logic.

I've tried server side solution by hooking up an OnItemDataBound event handler, using the FindControl method of the GridDataItem control,but it resulted in null (any idea to why it may resulted in null?).

And I've tried to hookup to some client side events of the grid with no success.

What's the best approach to my problem?

Evgeny
Top achievements
Rank 1
 asked on 15 Mar 2018
8 answers
396 views

I have a multicolumn header in my grid. I want to show an underline/border across the top level header. if I add a text-decoration it just shows the underline across the text and a border blends into the other header. (Banks with BOLI vs Averages for Banks with BOLI)

Below is my grid css for the header and grid declaration. is there a way I can have an underline for the headers but that spans across the whole column?

css:

.RadGrid .rgHeader.colGroup {
       text-align: center !important;
       /*text-decoration: underline !important;*/
       border-bottom: 1px solid #fff !important;
   }   
 
   .RadGrid .rgMultiHeaderRow th.colGroup
   {
       /*border-spacing: 2px !important;
       border-collapse:  separate !important;*/
       margin: 20px !important;
   }

grid:

<ColumnGroups>
                    <telerik:GridColumnGroup Name="BanksWithBOLI" HeaderText="Banks With BOLI"
                        HeaderStyle-CssClass="colGroup"  />
                    <telerik:GridColumnGroup Name="BanksWithBOLIAverage" HeaderText="Averages for Banks with BOLI"
                        HeaderStyle-CssClass="colGroup" />
                    <telerik:GridColumnGroup Name="EmptyHeader" HeaderText=" " />
                </ColumnGroups>
               <Columns>
                    <telerik:GridBoundColumn DataField="AssetSize" HeaderText="Asset Size" SortExpression="AssetSize"
                        AllowFiltering="false" FooterText="Total" ColumnGroupName="EmptyHeader" HeaderStyle-HorizontalAlign="Left"  ItemStyle-HorizontalAlign="Left" FooterStyle-HorizontalAlign="Left" />
                    <telerik:GridBoundColumn DataField="BankCount" HeaderText="Total Banks" SortExpression="BankCount"
                        UniqueName="BankCount" HeaderStyle-Width="10%" Aggregate="Sum" FooterAggregateFormatString="{0}" ColumnGroupName="EmptyHeader" />
                    <telerik:GridBoundColumn DataField="BOLIBankCount" HeaderText="#" SortExpression="BOLIBankCount"
                        UniqueName="BOLIBankCount" HeaderStyle-Width="7%" Aggregate="Sum" ColumnGroupName="BanksWithBOLI" >
FooterAggregateFormatString="{0}" />
                    <telerik:GridBoundColumn DataField="BOLIPercentage" HeaderText="%" SortExpression="BOLIPercentage"
                        UniqueName="BOLIPercentage" HeaderStyle-Width="9%" DataFormatString="{0:p1}" ColumnGroupName="BanksWithBOLI" FooterAggregateFormatString="{0:p1}" />
                     
                    <telerik:GridBoundColumn DataField="Assets" HeaderText="Assets<br />(000s)" SortExpression="Assets"
                        UniqueName="Assets" DataFormatString="{0:$#,##0;($#,##0)}" HeaderStyle-Width="11%" ColumnGroupName="BanksWithBOLIAverage" />
                    <telerik:GridBoundColumn DataField="Capital" HeaderText="Tier 1<br /> Capital<br />(000s)" SortExpression="Capital"
                        UniqueName="Capital" DataFormatString="{0:$#,##0;($#,##0)}" HeaderStyle-Width="11%" ColumnGroupName="BanksWithBOLIAverage" />
                    <telerik:GridBoundColumn DataField="BOLICSV" HeaderText="BOLI CSV<br />(000s)" SortExpression="BOLICSV"
                        UniqueName="BOLICSV" DataFormatString="{0:$#,##0;($#,##0)}" HeaderStyle-Width="11%" ColumnGroupName="BanksWithBOLIAverage" />
                    <telerik:GridBoundColumn DataField="BOLIToCapitalPercentage" HeaderText="% BOLI <br />to<br />Capital" SortExpression="BOLIToCapitalPercentage"
                        UniqueName="BOLIToCapitalPercentage" DataFormatString="{0:0.#%}" HeaderStyle-Width="9%" ColumnGroupName="BanksWithBOLIAverage" />
                    <telerik:GridBoundColumn DataField="BOLIToAssetsPercentage" HeaderText="% BOLI <br />to<br />Assets" SortExpression="BOLIToAssetsPercentage"
                        UniqueName="BOLIToAssetsPercentage" DataFormatString="{0:0.#%}" HeaderStyle-Width="9%" ColumnGroupName="BanksWithBOLIAverage" />
                </Columns
Eyup
Telerik team
 answered on 15 Mar 2018
6 answers
464 views
Dear telerik-Team

I try to add ScatterSeriesItem programaticlly but I can't find a constructor or a method to add an item with date-time values.
The only option is by decimal? x and decimal? y. Where is the constructor for datetime? x and decimal? y?

How can I add those ScatterSeriesItem with date-time values without using a data source.

Kind regards,
Chrisitan
Ryan
Top achievements
Rank 1
 answered on 14 Mar 2018
16 answers
520 views

Hi,

We are actually an existing customer of Telerik. We had  bought ASP.NET Ajax control from you.

Now we are out of the support period, yet we are using your controls to good effect.

We are facing with the occurrence of unwanted spaces in the mails sent to outlook. This happens when we paste HTML content from MSWord to  RAD Editor control with spell check enabled. The content looks normal in the editor but when we send the mail after spell check, the content got delivered successfully to Outlook but the format becomes weird as compared to the original content. Below is the sample html which got added with unwanted space once it got sent from RAD Editor.

We want to know if there is any work  around to sort this out so that the email looks the same as how the content pasted into RAD Editor?

We are having an email application using the RAD Editor control and since we are facing with lots of inconvenience. we appreciate your help from your end. Could you please look into our issue and help us?

Many Thanks,

Prabhu.

ORIGINAL HTML CONTENT

What's going on in 2013?


Many customers have been installing Visual Studio Updates from the “toast” pop-up notification or from the Extensions and Updates dialog. This continues to be the simplest option. The installer downloads only the components you need (based on your current VS installed configuration), and then installs the bits as they’re received. This approach often provides a very good experience, but it does require being connected to the internet for the duration of the install. Because a connection isn’t always available, the installer also supports a /layout flag, which downloads all of the bits proactively to enable subsequent offline installation.


Getting involved now 

 

We also plan to ship ISO images for the RTM version of future Visual Studio updates, in addition to the existing distribution mechanism we already provide. We hope you will enjoy this additional option for downloading Visual Studio Updates.

Kathryn
Telerik team
 answered on 14 Mar 2018
0 answers
138 views

Hi

I am new to Telerik controls. I have a requirement to create a simple rows and columns for a set of column header and row header. Basically there are two tables

one table contains 5 rows one column and another table contains 5 rows and 3 columns as shown in the attachment. there is no dynamic content. Its just a static table when I open it should open the data in the grid. if no data it should allow me to add data table.

I am still trying to create a sql table to combine these both table data and want to create a user control for a simple .aspx page.

Will you please advise on any sample?

 

Thanks

Shri

Shri
Top achievements
Rank 1
 asked on 14 Mar 2018
8 answers
249 views
Can you PLEASE start distributing copies of the databases needed for running the demos that can be loaded in to a full-blown copy of SQL Server 2008?

I know I /can/ download SQLExpress, but I don't want it. I shouldn't /need/ it.

Please.

Thank you.

-- 
Stuart
Marin Bratanov
Telerik team
 answered on 14 Mar 2018
1 answer
155 views

I have a RadDropDownList in the EditTemplate of a FormView. The page loads with the FormView in EditMode by default. But the RadDropDownList isn't selectable. I had the same problem with RadButtons. I couldn't click on them to submit the form. It's like they were read-only. I switched to asp:Button and the buttons work, but the RDDL still does not work, until I click the cancel button and perform a "reset" of the data. Then the dropdownlist becomes active.

Is there some trick I'm missing to be able to use Rad controls inside a FormView edit template?

Rumen
Telerik team
 answered on 14 Mar 2018
1 answer
116 views

For the life of me i can not figure out why the collapse/expand are missing. I took the page out and put it in its own project and it still doesnt show. I removed all code and script code. Basically a skeleton, but the +/- are no where to be seen! I can drag and drop and the database is updating correctly and TreeList, but he doesnt add in the +/-. It never shows, not even reload with the new data.

You can see from the attached files that the tree is missing the +/- for the third task. I attached the table screen shot too. I also had a problem with BOOTSTRAP theme not even showing the lines for the tree +/-.

This is a huge issue, that doesnt seem to have any rhyme or reason why it is missing. Please throw a bone my way on why this would not work. 

I have another problem too - why can we not decorate the drag container? I would like all the row data not to show, just maybe a box or a label - "dragging" or something I want. If i put in a height for the TreeList the drag container matches this for some messed up reason. If that can be changed in CSS, please let me know. By all means change the default container height to match the drag row height NOT the grid height.

Thanks for the help Telerik

 

<html>
<head>
    <title>Test</title>
      </head>
<body>
    <form id="Form1" runat="server">
    <asp:ScriptManager runat="server" ID="ScriptManager1">
    </asp:ScriptManager>
                              
        <telerik:RadTreeList runat="server" ID="RadTreeListProjectTasks" Skin="Web20"
            DataSourceID="SqlDataSource1" DataKeyNames="TaskProjectDetailId" ParentDataKeyNames="ParentTaskProjectDetailId"
            AutoGenerateColumns="false" Width="100%">
 
            <ClientSettings AllowItemsDragDrop="true">
                <Selecting AllowItemSelection="true" />
            </ClientSettings>
 
            <Columns>
 
                <%--hidden columns for updating emails in user control--%>
                <telerik:TreeListBoundColumn UniqueName="TaskProjectDetailId" DataField="TaskProjectDetailId" Display="false" />
                <telerik:TreeListBoundColumn UniqueName="ParentTaskProjectDetailId" DataField="ParentTaskProjectDetailId" Display="false" />
                <telerik:TreeListBoundColumn UniqueName="UserProfileId" DataField="UserProfileId" Display="false" />
 
                <telerik:TreeListDragDropColumn UniqueName="TreeListDragDropColumn" HeaderStyle-Width="30px">
                </telerik:TreeListDragDropColumn>
 
                <telerik:TreeListTemplateColumn HeaderText="Source" DataField="Subject">
                    <ItemTemplate>
                        <table class="templateTable" width="400px">
                            <tr>
                                <td class="templateHeader">
                                    <asp:Label ID="Subject" runat="server" Text='<%# Bind("Subject") %>'></asp:Label>
                                    <asp:Label ID="Description" runat="server" Text='<%# Bind("Description") %>'></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </telerik:TreeListTemplateColumn>
            </Columns>
 
        </telerik:RadTreeList>
 
 
 
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:TestDbConnectionString %>"
            UpdateCommand="UPDATE [_TasksProjectDetailTBL] SET [ParentTaskProjectDetailId]=@ParentTaskProjectDetailId WHERE [TaskProjectDetailId] = @TaskProjectDetailId"
            SelectCommand="SELECT * FROM [_TasksProjectDetailTBL] TPD WHERE [TPD].TaskProjectMasterId IN (1)">
 
            <UpdateParameters>
                <asp:Parameter Name="TaskProjectDetailIdParentId" Type="Int16"></asp:Parameter>
                <asp:Parameter Name="TaskProjectDetailId" Type="Int64"></asp:Parameter>
            </UpdateParameters>
        </asp:SqlDataSource>
       
       </form>
</body>
</html>
SDI
Top achievements
Rank 1
 answered on 14 Mar 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?