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

Hi, any chance to retrieve the date which is clicked from the Calendar which sits on the top left of Scheduler?

thanks

 
Mehmet
Top achievements
Rank 1
 asked on 24 Feb 2016
9 answers
188 views

Hi All,

 

When placing a set of controls such as the combo box, date picker and textbox in a vertical column they look messy.  The underline field positioning doesn't line up.  The combobox and date pickers seem to line up as do the textbox and checkbox.  

 I've tried working out what CSS controls the appearance of the underline but nothing seems to affect it.  I've been able to change the colour using the border on the rcbInner class but nothing seems to affect the width.

 Any pointers on getting these controls tweaked to not appear staggered.

Regards

Jon

Jon
Top achievements
Rank 1
 answered on 23 Feb 2016
2 answers
126 views

Hi, I have a RadGrid in my page and one of the columns is Size. Size is a combination of dimensions. Let's say, for the sake of simplicity, we have three dimensions - length, width, and height..When displaying, it will not always be in the format of [length x width] or [length x width x height], some might need to be displayed as [width x height] only or ]width x length x height]. We already have appropriate sql function that formats the display appropriately.

Another thing is this field is of string type. So when sorting, we will have issues.In terms like 12 can come up before 9. So what we have done is create another sql function that helps sort it appropriately. We have a varchar(30) columns where we plug in 10 length value for each dimension - 1st five is for the whole number part, 2nd five for decimal part, multiplied by three dimensions so 30 characters length always. Eg.

1.Length    Width    Height    Display           SortValue
2.10        12.125   7         10 x 12.125 x 7   000100000000012125000000700000
3.5         7.75     9.5       7.75 x 5 x 9.5    000077500000005000000000950000
4.8.5       9        2.0125    8.5 x 9 x 2.0125  000085000000009000000000201250
5.2.5       8                  2.5 x 8           000025000000008000000000000000

I am getting data using NeedDataSource. My sql query gets only as much data as is needed to show in the page. So if grid page size is 10, I get first 10 rows only for page 1. When user navigates to second page, code calls NeedDataSource again to get the next 20 rows of data.

In SortCommand method, all I do is populate a SortDictionary with appropriate field name and sort order and rebind grid again.

private Dictionary<String, String> SortByDictionary
{
    get { return ViewState["sortBy"] == null ? new Dictionary<string, string>() : (Dictionary<String, String>)ViewState["sortBy"]; }
    set { ViewState["sortBy"] = value; }
}
 
protected void rgResult_SortCommand(object sender, GridSortCommandEventArgs e)
{
    if (e.CommandArgument != null)
    {
        var key = e.CommandArgument.ToString();
 
        if (SortByDictionary == null)
            SortByDictionary = new Dictionary<string, string>();
 
        if (!SortByDictionary.ContainsKey(key))
            SortByDictionary.Add(key, String.Empty);
 
        if (e.NewSortOrder == GridSortOrder.None)
            SortByDictionary.Remove(key);
        else
            SortByDictionary[key] = e.NewSortOrder == GridSortOrder.Ascending ? "ASC" : "DESC";
    }
 
    e.Item.OwnerTableView.DataSource = GetData(false);
    e.Item.OwnerTableView.Rebind();
}

 

In the GetData function, to create the order by part of the sql query, I loop through all the keys in SortDictionary and change order column to SortValue if I see Display there. Sql query comes up fine and executing it in SSMS presents me the results correctly. For example, from the data example above, it gives me line 5 first, then 3, 4 and 2 as expected.

However, problem lies when displaying in grid. Because user had clicked sort by Display column, grid resorts the data again. So the data gets displayed as line 2, 5, 3, and 4.

My question is - is there a way to prevent grid from resorting? I am using Telerik.Web.UI version 2013.3.1324.40.

  

Thank you.

Baal
Top achievements
Rank 1
 answered on 23 Feb 2016
15 answers
291 views
First, I will say, I do have a work around for this as gathered from previous threads
here: http://www.telerik.com/community/forums/aspnet-ajax/combobox/radcombobox-scrolling-selection-locks-browser.aspx 
and here: http://www.telerik.com/community/forums/aspnet-ajax/combobox/radcombobox-ie-7-freeze-problem.aspx 

But I wanted to post again because this didn't happen for us until we upgraded to the 2010 Q2 release so this is still an issue.

Description:
I have multiple RadComboBoxes (RCB) in a RadWindow that pops up, and all the RCB have mostly the same property settings.
When I click one of the RCB, it opens and the whole browser freezes as the CPU is maxed.
If the RCB in question has fewer items in it (so that it doesn't extend passed the RadWindow boundries) there's no problem. This is odd because the first few RCB are fine, including one that has enough items to extend passed the RadWindow boundries.

Solutions (from the links above):
Either  set the RCB property EnableScreenBoundaryDetection="false" or set the RCB property MaxHeight to some number that will keep the list from extending past the RadWindow boundry.


Just wondering if there is some kind of fix coming to avoid doing these workarounds whenever they crop up.

Robert Helm



Tom
Top achievements
Rank 1
 answered on 23 Feb 2016
5 answers
388 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
133 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
96 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
500 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
161 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
109 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?