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

Hello,

I display GridDateTimeColumns in localized format on the grid but I need the filter expression for the GridDateTimeColumn to be in US date time format because datetimes in my database or stored in this format. I use the grid.MasterTableView.FilterExpression (in SQL format with EnableLinqExpressions false) in NeedDataSource to filter data in the database with the applied filters. The format of the filter expression is in the culture of the user's browser rather than the US date format. How can I change the filter expression date format?

 

Thank you.

Ryan
Top achievements
Rank 1
 asked on 19 Dec 2017
0 answers
87 views

Does radgrid have the capability of "clientside" filtering?  Where it does the filter on the "grid" data itself (clientside) and then return the row accordingly?  What I mean is rather then come back to the server and redo a SQL query, the filter will just search all data on the grid (all columns) on the client side and display the rows that matches.

Thank you!

Frank
Top achievements
Rank 1
 asked on 18 Dec 2017
0 answers
147 views

Hi,

I have created the application with Radtreelist control. I have used datagrid as one of the template column.

In radtreelist, i have one asp:checkbox, and the datagrid has one checkbox. My requirement is when i click on the checkbox in the radtreelist, it automatically should select the checkbox in the datagrid. Am using javascript, but it throwing error in find element. Please assist me. 

 function Checked(btn, e) {
                var radgrid = $find("<%= RadBOMTreeList.ClientID %>");
                var row = radgrid.get_dataItems();
                for (var i = 0; i < row.length; i++) {
                    var Rows = row[i];
                var chk = radgrid.getContainerItem("chkItemNoBOM");
                    var grdDrawings = Rows.findElement("grdDrawings");
                    //Get all input elements in Gridview
                    var inputList = grdDrawings.getElementsByTagName("input");
                    for (var j = 0; j < inputList.length; j++) {
                        if (chk.checked == true) {
                            if (inputList[j].type == "checkbox") {
                                chk.checked = true;
                                inputList[j].checked = true;
                            }
                        }
                        else {
                            chk.checked = false;
                            inputList[j].checked = false;
                        }
                    }
                }
            }

karthika
Top achievements
Rank 1
 asked on 18 Dec 2017
3 answers
1.6K+ views

Keeps saying time after time it is a bit old, even after installing new version.

 

See screenshot.

 

Marc

Nikolay Mishev
Telerik team
 answered on 18 Dec 2017
2 answers
252 views

We have a project using 2 RadListBoxes to transfer items each other as below. when we double-click an item in one list, the item will be transferred to another list. That works very well. But in server side asp.net code, the number of items in each box is not correct. I tried to create an event handler for OnClientDoubleClicking and OnClientDoubleClicked to track and commit the changes. But it is still the same error.  Can someone help on this? Thanks.

 

<p><telerik:RadListBox runat="server" ID="rlbUnselectedStatus" AutoPostBackOnTransfer="false"<br>                            AllowTransfer="true" AllowTransferOnDoubleClick="true" TransferToID="rlbSelectedStatus"<br>                            DataTextField="StatusName" DataValueField="StatusId" CausesValidation="false"<br>                            SelectionMode="Multiple" Height="120px" Width="240px" TabIndex="1"  /></p><p><br>                        <telerik:RadListBox runat="server" ID="rlbSelectedStatus" AutoPostBackOnTransfer="false"<br>                             AllowTransfer="true" AllowTransferOnDoubleClick="true" TransferToID="rlbUnselectedStatus"<br>                            DataTextField="StatusName" DataValueField="StatusId"  CausesValidation="false" <br>                            SelectionMode="Multiple" Height="120px" Width="210px" TabIndex="1" /></p>
Peter Milchev
Telerik team
 answered on 18 Dec 2017
6 answers
820 views

I am using version Telerik.Web.UI  2016.2.607.45  

 

I have downloaded the patch SecurityPatch_2016_2_607.zip from https://www.telerik.com/account/product-download?product=RCAJAX

 

When I replaced the references form the old Telerik.Web.UI to the newly patched dll I get the following error compiling the project.  

 

'Could not load file or assembly 'Telerik.Web.UI, Version=2016.1.225.45, Culture=neutral, PublicKeyToken=' xxxx' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) 'D:\......LC'

 

This appears to be in my license Telerik.Web.UI.RadGrid, Telerik.Web.UI, Version=2016.1.225.45.  I did not renew my subscription in 2016 but purchased the license 2015

 

 

 

 

 

Marin Bratanov
Telerik team
 answered on 18 Dec 2017
0 answers
138 views

Here is what is working:
I have a RadGrid with a single MasterTableView, loading data from a database table.
Users are able to edit the data using a WebUserControl:
                <EditFormSettings UserControlName="JIBCoding.ascx" EditFormType="WebUserControl" PopUpSettings-Height="600" PopUpSettings-Width="1000">
                    <EditColumn UniqueName="order_by">
                    </EditColumn>
                </EditFormSettings>
The Edit form appears, the user can edit the data, press the "Update" button, which triggers the 'OnUpdateCommand="RadGrid1_UpdateCommand"' to reflect the edited data in the grid and update the database.
All this works fine.

However, I need to be able to perform some validation on the data entered by the user before the Update sequence starts.
If the validation fails, I want to display an alert with an error message, and with the WebUserControl form to remain displayed, with the data as entered by the user. Basically intercept the "update" sequence.

As a result, I have been trying to figure out how to programmatically fire the "Update" comment from Javascript, and I can't figure out what I'm doing wrong.
I've been basing my attempts on the following post:
https://www.telerik.com/forums/calling-the-itemcommand-handler-from-javascript

In my Grid.aspx code, I have the following Javascript code:
<script>
    var varRadGrid;
    function GridCreated(sender, eventArgs) {
        varRadGrid = sender;
    }
    function CallUpdate() {
        var masterTable = varRadGrid.get_masterTableView();
        masterTable.fireCommand("Update", "");
    }
</script>

In my WebUserControl code, I have added a "Validate/update" button to call the "CallUpdate" function:
            <asp:Button ID="button" runat="server" Text="validate/update" OnClientClick="javascript:CallUpdate();" />

I can trace through that all the various pieces appear to be working:
1. When the grid initially loads, a reference to it is captured in varRadGrid.
2. When the user presses the "Validate/update" button, the CallUpdate function is called, and it is able to reference the varRadGrid object.
3. However, the code ' masterTable.fireCommand("Update", ""); ' appears to not do anything.
Actually, that's not true - the WebUserControl form closes, but then is immediately redisplayed.

Any edited data is not reflected back in the underlying grid - the "Update" command doesn't appear to be being fired.

Any ideas? Help much appreciated!!

Simon
Top achievements
Rank 1
 asked on 15 Dec 2017
0 answers
260 views

Hi All, 

 

i have a grid view and i want to have 2 question first how can i fill the drop down with data table from the c# 2nd how can i do it cascading from the c# too i will make it onselected item change but can i find the secound dropdown menu to auto fill with the new dropdown list 

 

 

ps <br> is not there its just added by code format :)

 

   <telerik:RadGrid ID="staffmanagement" runat="server" OnNeedDataSource="staffmanagement_NeedDataSource" Skin="Bootstrap" AutoGenerateColumns="false" OnInsertCommand="staffmanagement_InsertCommand" OnUpdateCommand="staffmanagement_UpdateCommand" OnDeleteCommand="staffmanagement_DeleteCommand" AllowPaging="True" ><br>                <MasterTableView CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage" CommandItemSettings-ShowRefreshButton="false" DataKeyNames="ID"><br>               <Columns><br><br>                    <telerik:GridTemplateColumn HeaderText="Department" UniqueName="DepartmentColumn" HeaderStyle-HorizontalAlign="Center"><br>                            <ItemTemplate><br>                                <asp:Label ID="Department" runat="server" Text='<%# Eval("strorg") %>'></asp:Label><br>                            </ItemTemplate><br>                            <EditItemTemplate><br>                                <telerik:RadDropDownList ID="Departmentedit" runat="server"><br>                                  <br>                                </telerik:RadDropDownList><br>                            </EditItemTemplate><br>                            <InsertItemTemplate><br>                                <telerik:RadDropDownList ID="Departmentinsert" runat="server"><br><br>                                  <br>                                </telerik:RadDropDownList><br>                            </InsertItemTemplate><br>                        </telerik:GridTemplateColumn><br></p><p>      <telerik:GridTemplateColumn HeaderText="supDepartment" UniqueName="supDepartmentColumn" HeaderStyle-HorizontalAlign="Center"><br>                            <ItemTemplate><br>                                <asp:Label ID="supDepartment" runat="server" Text='<%# Eval("strsuporg") %>'></asp:Label><br>                            </ItemTemplate><br>                            <EditItemTemplate><br>                                <telerik:RadDropDownList ID="supDepartmentedit" runat="server"><br>                                  <br>                                </telerik:RadDropDownList><br>                            </EditItemTemplate><br>                            <InsertItemTemplate><br>                                <telerik:RadDropDownList ID="supDepartmentinsert" runat="server"><br><br>                                  <br>                                </telerik:RadDropDownList><br>                            </InsertItemTemplate><br>                        </telerik:GridTemplateColumn></p><p></p><p></p><p>                        <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-HorizontalAlign="Center" UniqueName="edit" /><br>                        <telerik:GridButtonColumn ConfirmText="Delete this Staff" ConfirmDialogType="RadWindow" ConfirmTitle="Delete"  ButtonType="FontIconButton" CommandName="Delete" ColumnGroupName="APlate" HeaderStyle-HorizontalAlign="Center" UniqueName="delete" /><br><br><br><br><br>               </Columns><br>                    </MasterTableView><br><br>            </telerik:RadGrid>
Kareem
Top achievements
Rank 2
 asked on 15 Dec 2017
2 answers
177 views

How can I replace expand/collapse images of Radpanel item with some other images when RenderMode="Lightweight" ?

On expand I need to show different image and On collapse I need to show another image.

 

Below solution is not working for me because I think skin file selector is not supporting.

 

<style>
    .t-i-expand-s:before, .t-i-expand-down:before, .p-i-expand-s:before, .p-i-expand-down:before, .p-i-arrow-chevron-down:before {
        content: "\e100" !important;
    }

    .t-i-expand-n:before, .t-i-expand-up:before, .p-i-expand-n:before, .p-i-expand-up:before, .p-i-arrow-chevron-up:before {
        content: "\e101" !important;
    }
</style>

 

 

Right now my selector is like

 

.RadPanelBar .rpExpandable .rpExpandHandle 

{

display : block;

}

 

 

Arpit
Top achievements
Rank 1
 answered on 15 Dec 2017
0 answers
147 views

I have the following problem, I check the documentation and several samples for hours, I attach the images on the aligned RadMenuItem  and left position, whatever the click I need the position the first o second row the RadMenuItem should be aligned to left

In the following line of code does not allow to select the second row of the menu

.infoenergy .RadMenu_Glow .rmHorizontal .rmItem {
    position: static;
}

Franklin
Top achievements
Rank 1
 asked on 15 Dec 2017
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?