Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
359 views
I can get the menu to show up with the checkboxes for the OnFilterCheckListItemsRequested.

However when you select any of the checkboxes you are not able to click "filter" button and the "show rows with value that" drop down box is disabled.  The button highlights but no click action or postback.

however if i use the "checkbox" or "combine" for the FilterType it works when selecting items from the list.

attached is my radgrid code and a screenshot of the menu.

<telerik:RadGrid ID="RadGrid1" AllowFilteringByColumn="True" runat="server" FilterType="
       AllowPaging="True" OnFilterCheckListItemsRequested="RadGrid1_FilterCheckListItemsRequested"
       Height="100%"  AllowSorting="True"
       ShowGroupPanel="True" EnableGroupsExpandAll="True" EnableHeaderContextMenu="True"
       EnableHierarchyExpandAll="True" ShowFooter="True" ShowStatusBar="True"
       PageSize="500" OnInfrastructureExporting="RadGrid1_InfrastructureExporting"
       EnableHeaderContextAggregatesMenu="True"
       FilterMenu-EnableAutoScroll="False" FilterMenu-EnableImageSprites="True" FilterMenu-EnableRootItemScroll="True"
       FilterMenu-EnableSelection="True" FilterMenu-EnableTextHTMLEncoding="True"
       FilterMenu-ShowToggleHandle="True" MasterTableView-AllowFilteringByColumn="True"
       MasterTableView-EnableGroupsExpandAll="True" MasterTableView-EnableHeaderContextAggregatesMenu="True"
       MasterTableView-EnableHeaderContextFilterMenu="True" MasterTableView-EnableHeaderContextMenu="True"
       MasterTableView-EnableHierarchyExpandAll="True" MasterTableView-RetrieveDataTypeFromFirstItem="True"
       RegisterWithScriptManager="True" PagerStyle-PageSizeControlType="RadComboBox" ClientSettings-AllowColumnHide="True"
       ClientSettings-AllowColumnsReorder="True" ClientSettings-AllowDragToGroup="True"
       ClientSettings-AllowKeyboardNavigation="True" ClientSettings-AllowRowsDragDrop="True"
       ClientSettings-EnableRowHoverStyle="True" FilterMenu-AppendDataBoundItems="True">
        <CommandItemStyle />
        <ExportSettings ExportOnlyData="True" IgnorePaging="True" Excel-Format="Xlsx">
        </ExportSettings>
        <ClientSettings AllowDragToGroup="false" Resizing-AllowColumnResize="true" AllowColumnHide="True"AllowColumnsReorder="True" AllowRowHide="True" AllowRowsDragDrop="True" ReorderColumnsOnClient="True" Animation-AllowColumnReorderAnimation="False" Animation-AllowColumnRevertAnimation="False" DataBinding-EnableCaching="True" Resizing-AllowResizeToFit="True" Resizing-EnableRealTimeResize="True" Scrolling-AllowScroll="False" Scrolling-SaveScrollPosition="True">
            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
 
        </ClientSettings>
        <MasterTableView CommandItemDisplay="Top" Width="100%" EnableGroupsExpandAll="True"EnableHeaderContextAggregatesMenu="True">
            <CommandItemSettings ShowAddNewRecordButton="False" ShowExportToCsvButton="True" ShowExportToExcelButton="True"ShowRefreshButton="True" />
        </MasterTableView>
        <FilterMenu CssClass="RadFilterMenu_CheckList">
        </FilterMenu>
    </telerik:RadGrid>

 

 

Code Behind

Protected Sub RadGrid1_FilterCheckListItemsRequested(sender As Object, e As GridFilterCheckListItemsRequestedEventArgs)
    Dim DataField As String = TryCast(e.Column, IGridDataColumn).GetActiveDataField()
 
    e.ListBox.DataSource = GetDataTableFromCacheOrDatabase(DataField)
    e.ListBox.DataKeyField = DataField
    e.ListBox.DataTextField = DataField
    e.ListBox.DataValueField = DataField
    e.ListBox.DataBind()
End Sub
 
 
Private Sub RadGrid1_ColumnCreated(sender As Object, e As GridColumnCreatedEventArgs) Handles RadGrid1.ColumnCreated
 
    e.Column.FilterCheckListEnableLoadOnDemand = True
 
End Sub


Viktor Tachev
Telerik team
 answered on 23 Feb 2016
1 answer
110 views
Hello
I have a table with grand-parentKey, parentKey and childKey
I want to display data in format
grandParentKey1
                  parentKey1
                              Child1
                  parentKey2
                               Child...
grandParentKey2
                   parentKey3
  etc..

How do I declare the ParentDataKeyNames and DataKeyNames for this example?

Thank you
Raka
Viktor Tachev
Telerik team
 answered on 23 Feb 2016
1 answer
80 views

Good morning , I have a radtreeview and I want to drag an item.

< Img src = " smiley.gif " alt = "Smiley face" height = " 42 " width = " 42 ">

some of my radtreeview nodes , you can accomplish this with javascript.

Good morning , I have a radtreeview and I want to drag an item < Img src = " smiley.gif " alt = "Smiley face" height = " 42 " width = " 42 "> some of my radtreeview nodes , you can accomplish this with javascript.
Good morning , I have a radtreeview and I want to drag an item < Img src = " smiley.gif " alt = "Smiley face" height = " 42 " width = " 42 "> some of my radtreeview nodes , you can accomplish this with javascript.
Good morning , I have a radtreeview and I want to drag an item < Img src = " smiley.gif " alt = "Smiley face" height = " 42 " width = " 42 "> some of my radtreeview nodes , you can accomplish this with javascript.
Good morning , I have a radtreeview and I want to drag an item < Img src = " smiley.gif " alt = "Smiley face" height = " 42 " width = " 42 "> some of my radtreeview nodes , you can accomplish this with javascript.
Good morning , I have a radtreeview and I want to drag an item < Img src = " smiley.gif " alt = "Smiley face" height = " 42 " width = " 42 "> some of my radtreeview nodes , you can accomplish this with javascript.
Good morning , I have a radtreeview and I want to drag an item < Img src = " smiley.gif " alt = "Smiley face" height = " 42 " width = " 42 "> some of my radtreeview nodes , you can accomplish this with javascript.
Ivan Danchev
Telerik team
 answered on 23 Feb 2016
3 answers
457 views
I have the following error
"Could not load file or assembly 'Telerik.OpenAccess, Version = 2013.2.702.1, Culture = neutral, PublicKeyToken = 7ce17eeaf1d59342' or one of Its dependencies"

I have not installed Telerik.OpenAccess and neither have any reference because I'm not using, but I do not understand because it gives the error.
Pavlina
Telerik team
 answered on 23 Feb 2016
2 answers
112 views

Hello,

I have two web pages that use a RadFilter. The first one is used to set the filter for a data search. The second one is used to display the research results. The first page send the filter settings to the second one using this code line:

queryString[_QUERYSTRING_PARAM_FILTERS] = Server.UrlEncode(RadFilter1.SaveSettings());

The second web page receive the filter settings using this code lines:

RadFilter1.LoadSettings(Server.UrlDecode(Request[_QUERYSTRING_PARAM_FILTERS]));
RadFilter1.FireApplyCommand();

Here is my problem: I want to add a RadFilterEqualToFilterExpression<Boolean> filter in the code (C#) just before the results web page is opened. The value of this filter is set to true. But the value is lost during the process and the filter's value is false in the results web page.It seems that the SaveSettings() method does not save the value of a filter that has been added in the code.

Do you have any recommendation?

Thank you

Daniel
Telerik team
 answered on 23 Feb 2016
1 answer
88 views

I have to create a grid where one of the columns will be a template column which will hold a Drop down and +/X button. On Clicking of + user can add as many dropdowns as they want and X will delete them in a single row and this data will be saved back to DB.

I know i will have create a grid in Page_init and use ITemplate to create this. every row will be uniquely identified by a value and i need to access that value inside the ITemplate to store the data back to DB to keep track of how many dropdowns have been added so that on page refresh i can load them back in. Is it possible? I tried but i cannot access the data inside the ITemplate->InstantiateIn method since data bound has not happened yet. 

Any example?

 

- The Aqua

Maria Ilieva
Telerik team
 answered on 23 Feb 2016
6 answers
261 views
I have a page where I dynamically create a radcombox, a radnumerictextbox with percent type and a radnumerictextbox with currency type.  Depending on the item selected, I would hide one and display the other.  There is an issue where if a numerictextbox was initially hidden in the code behind and then set to display on the client side, it disappears on mouseover.  It looks like it is applying the riHover class.  Any idea how to fix this?  Thanks.

   -- code behind
   if (cboCommType.SelectedValue == "1")
    {
         txtOngoingPer.Style.Add("display", "inline");
         txtOngoingCurrency.Style.Add("display", "none");                               
     }
    else if (cboCommType.SelectedValue != "4")
    {
         txtOngoingPer.Style.Add("display", "none");
         txtOngoingCurrency.Style.Add("display", "inline");                               
     }

  --client side code
  function cboCommType_OnClientSelectedIndexChanged(sender, eventArgs, ctlId) {
     var item = eventArgs.get_item();
     var selectedValue = item.get_value();

     var txtPer = document.getElementById("ctl00_FormContentPlaceHolder_txtOngoingPer_" + ctlId);
     var txtCur = document.getElementById("ctl00_FormContentPlaceHolder_txtOngoingCurrency_" + ctlId);


    if (selectedValue == "1") {
       txtPer.removeAttribute("disabled")
       txtPer.setAttribute("style", "height: 24px; display:inline");
       txtCur.setAttribute("style", "display:none");
    }
    else {
       txtCur.removeAttribute("disabled")
       txtCur.setAttribute("style", "height: 24px; display:inline");
       txtPer.setAttribute("style", "display:none");
    }
}



--initial for txtOngoingPer (mouseover1.png)


--cboCommType select index change to 1 (mouseover2.png)


--after mousing over textbox, the textbox disappears! (mouseover3.png)
Maria Ilieva
Telerik team
 answered on 23 Feb 2016
5 answers
172 views

Hi,

 

I have a UserControl including a RadPageLayout. The RadPageLayout is built as the following : 1 one row with 2 layoutColumns and each layoutColumn has "x" rows. When I simply display it, everything is ok.

But in my scenario I don't want to display the UserControl including the RadPageLayout immediatly, so I set its Visible property to False. Then when I set its Visible property to True (by clicking on a button for example) the RadPageLayout layout is broken : the two layoutColumns don't stand side by side anymore.

So to summarize, if at the beginning my UserControl's Visible property is set to True then it's ok, but it's set to False then True I have layout issue.

 

Could you help me to find a solution or a workaround ?

 

Thanks,

Rémi

 

Rémi
Top achievements
Rank 1
 answered on 23 Feb 2016
1 answer
131 views

Hi,

We are in the midst of converting all our Infragistics WebGrids to Telerik RadGrid.

Can anyone point me in the direction of a similar type example as what is outlined in the attachment?

Single Column Grid that defaults to no rows showing, but has an ADD ROW button, and when clicked the row loads. The row has a drop down in it.

 

Any direction is appreciated as we're under a tight deadline for this refactoring and have over 100 Grids to switch out to Telerik.

 

Kostadin
Telerik team
 answered on 23 Feb 2016
1 answer
510 views

I've been trying to figure how to do the simplest drag and drop operation on this grid and its getting really frustrating. It seems all the time I'm supposed to save by using these controls i have to spend in forums and web searches...

To the point: Grid show drag drop animation but rows do not change order. I'm guessing there is something else I have to handle but it is not mentioned neither in your documentation or demo. If it is I would like to get the link to that resource.

As per your documentation:

"Furthermore, depending on the position you drag an item (above or below
other record) it will be placed respectively above or below the
corresponding grid item."

http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/drag-and-drop-of-grid-items

 

My code:

   <telerik:RadScriptManager ID="RadScriptManager1" runat="server"></telerik:RadScriptManager>
            <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1">
                <ClientSettings AllowRowsDragDrop="true">
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
                <MasterTableView AutoGenerateColumns="true" DataSourceID="SqlDataSource1">
                </MasterTableView>
            </telerik:RadGrid>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GraveyardConnectionString %>" SelectCommand="SELECT * FROM [OrderTest]"></asp:SqlDataSource>
       

What am I missing? And if it is covered somewhere in your documentation please share the link.

 

 

Kostadin
Telerik team
 answered on 23 Feb 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?