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

Ver : 2018.3.910.45

Hello,
How to change Radcombobox in Telerik Radcombobox Ver : 2018.3.910.45 ? 

i only can change the background of .radInputCell and text, but looks ugly like this :

 

I want the RadCombobox looks and feels the same as DropDownList above, but the text can be editable

 

Thanks.

Mozart
Top achievements
Rank 1
Iron
Veteran
 asked on 25 Jun 2021
3 answers
230 views

Hi, I am trying to use Persistence Framework in old existing project. The way RadGrid is used in that application, is by opening new aspx page for edit or add record, and then re open main page.

So when Add button is clicked I am saving Grid settings in Session

            RadPersistenceManager PersistenceManager1 = RadPersistenceManager.GetCurrent(Page);
            PersistenceManager1.StorageProviderKey = m_strPersistenceKey;
            SessionStorageProvider.StorageProviderKey = m_strPersistenceKey;
            PersistenceManager1.SaveState();
            Response.Redirect("TblMaint_TableDataForm_Tableau.aspx");

Then in OnNeededDataSource load back Grid state

            RadPersistenceManager PersistenceManager1 = RadPersistenceManager.GetCurrent(Page);
            PersistenceManager1.StorageProviderKey = tblName;
            PersistenceManager1.LoadState();

The problem is, that grid correctly displaying sorting, if it was used and correctly filtering records when filter was used for the column, but there is no visual notification that filtering is using. It only appears when clicking again on filter and selecting one of the options. For example "No filter". Since grid still persisting previous values, filtering stays the same, but visually it now correctly displaying value for filter and column that is used for filter.

 

UPDATE: [Attachment removed by Progress Admin]

Attila Antal
Telerik team
 answered on 24 Jun 2021
1 answer
348 views

Hi,

I would like to know if it is possible to cancel changes for specific rows in RadGrid in Batch Mode. I added a button for each row to cancel the editing operation but when i click on it, it cancel all changes and lose information of other cells that were modified.

i hope you can help me to solve this

Regards

 

Doncho
Telerik team
 answered on 24 Jun 2021
1 answer
239 views

I have a GridTemplateColumn with a EditItemTemplate. In the editItemTemplate there is a cmbDepartment RadCombobox. In the code behind I want to get the cmbDepartment RadComboBox and then check to see if one of the items is equal to a string. If the string is not one of the text values in the RadComboBox I want to add it.

The RadComboBox loads from the Department lookup table. The data for the Grid is from a MyTable where the Department Name is stored with the rest of the record/row. If the Department Name is deleted from the lookup table I want to add the Department to the RadcomboBox when I load, or after I load the RadGrid.

 

 

 

   <telerik:RadGrid ID="rdgrdADGroupsAdmin" runat="server" OnItemDataBound="OnItemDataBoundHandler" AutoGenerateColumns="false" AllowPaging="true" Width="900px" PageSize="25" AllowSorting="True" AllowFilteringByColumn="true" GridLines="Horizontal" CssClass="ctbGridHeader">
        <GroupingSettings CaseSensitive="False" />
        <SelectedItemStyle CssClass="MySelectedClass" />
        <ClientSettings>
            <Selecting AllowRowSelect="True" />
            <Resizing EnableNextColumnResize="false" />
        </ClientSettings>
        <MasterTableView DataKeyNames="ADGroupMappingID, ADGroupName, DepartmentID, DepartmentName,  DeletedFlag" EditMode="InPlace" CommandItemDisplay="Top">
            <CommandItemSettings ShowRefreshButton="False" ShowAddNewRecordButton="True" AddNewRecordText="Add Funder Type" />
            <EditFormSettings EditColumn-ButtonType="PushButton">
            </EditFormSettings>
            <AlternatingItemStyle CssClass="MyRowClass" />
            <CommandItemTemplate>
                <div id="divButtons" style="padding: 5px 0 5px 5px">
                    <telerik:RadButton ID="btnAddDurationType" OnClientClicking="RadAddADMapping" runat="server" Text="Add Duration Type" CommandName="InitInsert">
                    </telerik:RadButton>
                     <telerik:RadButton ID="btnTEST" OnClientClicking="RadAddADMapping" runat="server" Text="Test Get Combo box" CommandName="TestComboBox">
                    </telerik:RadButton>
                </div>
            </CommandItemTemplate>
            <Columns>
                <telerik:GridEditCommandColumn FilterControlAltText="Filter EditCommandColumn column" UniqueName="EditColumn"
                    ButtonType="imagebutton">
                    <ItemStyle Width="3%" />
                </telerik:GridEditCommandColumn>
                <telerik:GridBoundColumn DataField="ADGroupMappingID" Display="false" UniqueName="colADGroupMappingID" ReadOnly="true">
                    <HeaderStyle HorizontalAlign="Center" />
                </telerik:GridBoundColumn>
                <%--<telerik:GridBoundColumn DataField="ADGroupName" MaxLength="50" FilterControlAltText="Filter colADGroupName column" UniqueName="colADGroupName" HeaderText="Name" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                    FilterControlToolTip="Press Enter or Tab key to search for value entered." FilterControlWidth="90%">
                    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Top" Width="150px" />
                     <ItemStyle  VerticalAlign="Top" Width="150px"  />
                    <ColumnValidationSettings EnableRequiredFieldValidation="true" EnableModelErrorMessageValidation="true">
                        <RequiredFieldValidator ForeColor="Red" ErrorMessage="This field is required"></RequiredFieldValidator>
                        <ModelErrorMessage BackColor="Red" />
                    </ColumnValidationSettings>
                </telerik:GridBoundColumn>--%>
                <telerik:GridTemplateColumn HeaderStyle-Width="200px" HeaderText="AD Group Name" DataType="System.String" DataField="ADGroupName" UniqueName="colADGroupName" FilterControlAltText="Filter colADGroupName column" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains"
                    ShowFilterIcon="false" FilterControlToolTip="Press Enter or Tab key to search for value entered." FilterControlWidth="100%" SortExpression="ADGroupName">
                    <ItemTemplate>
                        <%#DataBinder.Eval(Container.DataItem, "ADGroupName")%>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="rdTxtBxcolADGroupName" runat="server" MaxLength="64" TextMode="SingleLine" Rows="1" Wrap="true" Width="80%" Text='<%# Bind("ADGroupName") %>'></asp:TextBox>
                    </EditItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </telerik:GridTemplateColumn>
                <telerik:GridTemplateColumn DataField="DepartmentName" HeaderText="Department" FilterControlAltText="Filter colDepartmentName column" UniqueName="colDepartmentName" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" ShowFilterIcon="false"
                    FilterControlToolTip="Press Enter or Tab key to search for value entered." FilterControlWidth="90%" SortExpression="DepartmentName">
                    <ItemTemplate>
                        <%#DataBinder.Eval(Container.DataItem, "DepartmentName")%>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle Width="250px" VerticalAlign="Top" />
                    <EditItemTemplate>
                        <telerik:RadComboBox RenderMode="Lightweight" runat="server" ID="cmbDepartment" Width="300" DropDownWidth="300" DataTextField="DeptName"
                            DataValueField="DEPTLKEY" DataSourceID="dsDepartments" SelectedValue='<%#Bind("DepartmentID") %>' AppendDataBoundItems="true">
                        </telerik:RadComboBox>
                    </EditItemTemplate>
                </telerik:GridTemplateColumn>
               <%-- <telerik:GridDropDownColumn UniqueName="DropDownListColumn" ListTextField="DeptName"
                    ListValueField="DEPTLKEY" DataSourceID="dsDepartments" HeaderText="DropDown Column"
                    DataField="DepartmentName"  AllowAutomaticLoadOnDemand="true" DropDownControlType="RadComboBox" AllowSorting="true">
                </telerik:GridDropDownColumn>--%>
                <telerik:GridCheckBoxColumn UniqueName="colIsEditor" AllowFiltering="false" HeaderText="Is Editor" DataField="IsEditor">
                    <HeaderStyle HorizontalAlign="Left" Width="6%" />
                </telerik:GridCheckBoxColumn>
                <telerik:GridCheckBoxColumn UniqueName="colIsAdmin" AllowFiltering="false" HeaderText="Is Admin" DataField="IsAdmin">
                    <HeaderStyle HorizontalAlign="Left" Width="6%" />
                </telerik:GridCheckBoxColumn>
                <telerik:GridCheckBoxColumn UniqueName="colIsAllRecordsOnly" AllowFiltering="false" HeaderText="View All Records" DataField="IsAllRecordsOnly">
                    <HeaderStyle HorizontalAlign="Left" Width="6%" />
                </telerik:GridCheckBoxColumn>
                <telerik:GridButtonColumn ConfirmText="Delete this Duration Type?" ButtonType="LinkButton"
                    CommandName="Delete" Text="Delete" UniqueName="DeleteColumn">
                    <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" Width="3%" />
                </telerik:GridButtonColumn>

            </Columns>
            <EditFormSettings EditColumn-ButtonType="ImageButton">
            </EditFormSettings>
        </MasterTableView>
    </telerik:RadGrid>
    <%--<asp:SqlDataSource ID="dsDepartments" runat="server" ConnectionString="<%$ ConnectionStrings:csAppDB %>" SelectCommand="GetAllActiveDepartments" SelectCommandType="StoredProcedure"></asp:SqlDataSource>--%>    
    <asp:SqlDataSource ID="dsDepartments" runat="server" ConnectionString="<%$ ConnectionStrings:csCTBUtility %>" SelectCommand="Select * from (select *, row_number() over(partition by DEPTLKEY order by DEPTSTARTDATE desc) as rn from DEPARTMENT WHERE DEPTSTARTDATE <= GETDATE() and (DEPTENDDATE IS NULL or DEPTENDDATE >= GETDATE())) as T where rn = 1 ORDER BY DEPTNAME"></asp:SqlDataSource>

 

 

 

 

 

Attila Antal
Telerik team
 answered on 24 Jun 2021
0 answers
146 views

Regarding the 'Strip All Formatting' , or stripping formatting in general, I'm wondering how this works, I wasn't able to find specific details in documentation. Is it expected to be able to all styling? I'm noticing it doesn't seem to strip styling from outermost tag. I'm wondering if this is expected behavior, or if there are any known issues with this?

Reproducible using the RAD Editor demo (https://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx)

1. Clearing all existing text.

2. Pasting the following HTML into the HTML view:

<h3 style="color: #27282a; margin: 0px 0px 0.5rem; border: 0px solid #f1efef;">Sample Text <h3 style="color: #888888; margin: 0px 0px 0.5rem; border: 0px solid #f1efef;">technology</span> More Sample Text</h3>

3. Switch back to Design view, select all text, and Strip All Formatting.

This doesn't look to strip formatting from outermost tag, where I'd expect it would.

Michael
Top achievements
Rank 1
 asked on 23 Jun 2021
11 answers
282 views
Hi,

I have a grid and it works OK.
Then I had the idea that it would look better if I remove the headers when no data is displayed.
The problem - when I set 

ShowHeadersWhenNoRecords

 

="False"

 

it does allways show the NoRecordsTemplate (even if data is present) - and no data is displayed.
Data is bound to a linq datasource.

When I remove my GridClientDeleteColumn it works like expected.
But this column seems to break the thing.

To reproduce - buil a simple grid, set ShowHeadersWhenNoRecords="False".
Should work as expected.
Add a GridClientDeleteColumn -- it displays always "No records to display"


Regards

Manfred
Attila Antal
Telerik team
 answered on 23 Jun 2021
1 answer
123 views

What is the easiest and fastest way to go back to the previous version of the controls.  I see a folder where it backed everything up in my project.  I am on a tight window for this project so don't want to spend the time figuring out the new errors after updating.  The update was made through the window that pops up in Visual Studio 2019 indicating there is a new version of the controls.

Thanks!

Doncho
Telerik team
 answered on 23 Jun 2021
1 answer
487 views

HI, 
I'm using rad grid with grouping, i've grouped two columns.

Now i want to give two different colors to those two grouped (App Type, Status) columns.

I need Black color font for Status and Blue color font for App Type.

How to achieve this, please help.

Thanks

Doncho
Telerik team
 answered on 23 Jun 2021
2 answers
132 views

I have a radgrid with several rows.  I want to allow the user to edit specific rows but not others.  The other rows I need to calculate based on users input.  I have all this working but I need to figure out how to keep the user from having access to edit the rows that I am editing client-side based on there input.

Example (ASP.Net AJAX):
Rows 1-5 are editable by the user

Rows 6 and 7 are calculated based on 1-5 and I am doing the calculation client-side via OnBatchEditCellValueChanged event.

I need to some how disable the ability of the user to edit rows 6 and 7 without loosing the ability to to calculate and update via the event.

Can I use the event OnBatchEditOpening and set args.get_cancel(true) based on the user clicking in rows 6 or 7?  I have tried this but failed to get it to work.  If this is possible?  Please provide a sample of the script if so.

Thanks,

Jerry

Jerry
Top achievements
Rank 2
Iron
Iron
 answered on 22 Jun 2021
1 answer
358 views

<p>Hi,</p><p>After introducing the Telerik Library and adding Telerik grid to the existing .Net Web application, it causing to load the web page slow compared to the old application( without telerik library and telerik grid). Web page is taking almost 30s to render and the DB returning the data within 3s.&nbsp;</p><p>Please provide us the performance improvement steps to introduce telerik to old web application.</p><p>Thanks.</p>

Below are the few additional details on the Light House Report:

Report when RenderMode="Light Weight"

Performance score.

Avoid an excessive DOM size 5,611 elements

 

Report when RenderMode="Classic"

Avoid an excessive DOM size 5,608 elements

 

Below is the screenshot of the execution time taken with telerik grid in the page.

 

Doncho
Telerik team
 answered on 22 Jun 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?