Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
110 views
Following this documentation:
http://www.telerik.com/help/aspnet-ajax/combobox-custom-attributes.html

There is no Attributes property for the RadComboBoxItem class... Why?  (See attached.)

Thanks.
Boyan Dimitrov
Telerik team
 answered on 18 Mar 2014
10 answers
210 views
Like in this example DEMO, my grid has the ability to show a menu to select and deselect columns. But on the demo, the columns resize to the grid size. Mine doesnt unless some postback is done. How do you resize grid on selecting columns checkbox from the menu?

Edit:
I got this function in javascript that calculate all column width, then apply the width to the grid style. That works well when all columns are there.
Each column must remain at a fixed size (a switch i added with the UniqueName of each column) that way i get the right width. Since i can remove a column, orderIndex can't work here.
So when i click the drop down menu and uncheck a column to hide it, the resize function doesnt work anymore because i can't find the "visible" property of the column, so i get a width containing all columns.
My tableView has a tableLayout fixed.

So, what i need here, is a way to get the visibility of the column to properly resize my grid with it.
Eyup
Telerik team
 answered on 18 Mar 2014
1 answer
75 views
Como hago para llenar el radfilter por una function por el codebehind.

Tengo una conexion ya creada a la bd, y estoy buscando por columnas para el lado del cliente, y quisiera obtener estos valores
Viktor Tachev
Telerik team
 answered on 18 Mar 2014
4 answers
139 views
Is there a way to get an event when the user scrolls from one combobox item to another? I know there are events when the user selects an item, but what about when the highlight comes on?
I'd like to display some additional data related to the item that is highlighted.

Thanks,

Ken
Hristo Valyavicharski
Telerik team
 answered on 18 Mar 2014
3 answers
215 views
Hi. I have a radGrid with several columns. Some of them are comboboxes and two are RadTextBox. When user type something and press enter it processes the filter and when user clear the TextBox and press enter it clear the filter.
I am using the fuction below which was provided by Telerik.
function TitleKey(event, sender) {
     if (event.keyCode == 13) {
              var filterValue = "";
              var filterFunction = "NoFilter";
              var s = sender.value;
              if (s != "") {
                  filterValue = s;
                  var filterFunction = "Contains";
              }
     var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
     tableView.filter("title", filterValue, filterFunction);
     }
}
However everytime I clear the filter and press enter two steps occur. First it brings the grid as first loaded without any filter, than it brings the right grid with the right result if one or more filter are on.
I have tried to debug it and I cannot find why it is bringing a full grid as first Step.
The other thing is the AjaxPanal does not work properly for this textbox filter compared with the combobox. In the combobox the loading icon is on all post back process. With txtbox you rarely notice it on but when it is gone the application is still processing the grid.
Viktor Tachev
Telerik team
 answered on 18 Mar 2014
9 answers
698 views
How do i add autonumber to the RadGrid.
i can do in grid like this
<asp:TemplateField SortExpression="displayedname">
                    <HeaderTemplate>
                        Rec #</HeaderTemplate>
                    <ItemTemplate>
                        <%#Container.DataItemIndex+1%></ItemTemplate>
                </asp:TemplateField>

how do i add in radgrid.
Mohamad
Top achievements
Rank 1
 answered on 18 Mar 2014
2 answers
516 views
Hi,
I can get any data with the client template and it works fine, but i cannot find a way to round a 'Double' value as math round or in string.Format("C0")
in the client template. I want to round the dataItem.QuoteSumDollars which is a 'Double' with no decimal digits.
Here is my HtmlChart Series:

                           <Series>
                            <telerik:LineSeries Name="Quote" DataFieldY="QuoteSumDollars">
                                <LabelsAppearance>
                                    <ClientTemplate>
                                         #=dataItem.QuoteSumDollars#
                                    </ClientTemplate>
                                </LabelsAppearance>
                                <TooltipsAppearance>
                                    <ClientTemplate>
                                        Quote #=dataItem.QuoteID#
                                    </ClientTemplate>
                                </TooltipsAppearance>
                            </telerik:LineSeries>
                        </Series>

Many thanks.
Yaniv
Top achievements
Rank 1
 answered on 18 Mar 2014
4 answers
532 views
HI,
     Currently i am using a radgrid control in our application. I have enabled client side column reorder "true". after that i am saving the preference in database , so that when the user revisit the page it will maintain the column order from database.
The issue i am facing is, it is storing same order index for two columns, can any one help me how i will get unique order index for each column.

my code:
 foreach (GridColumn col in RadGridSearch.MasterTableView.Columns)
                {
                    if (col.UniqueName == "Status" || col.UniqueName == "Deletecolumn" ||
                        col.UniqueName == "GridEditColumn" || col.UniqueName == "DetailView" ||
                        col.UniqueName == "ContactDetails" || col.UniqueName == "ActiveFlag1")
                        continue;
                    else
                    {
                        Int64 UserProfileFieldID = 0, UserProfileID = 0;
                        int SortType = 0, SortSequence = 0;

                        DataRow dr;
                        dr = configData.Tables["UserProfileFields"].NewRow();
                        dr[0] = Convert.ToInt32(col.UniqueName.Split('-')[1]); // Field Number

                        GetFieldValues(GetColumnName(col), Convert.ToInt32(col.UniqueName.Split('-')[1]),
                                ref SortType, ref SortSequence, ref UserProfileFieldID, ref UserProfileID);

                        dr[1] = SortType; // Sorting Type
                        dr[2] = SortSequence; // Sorting Sequence
                        dr[3] = col.OrderIndex; // Column Index
                        dr[4] = col.HeaderStyle.Width.Value;  // Column Size

                        dr[5] = col.EvaluateFilterExpression().ToString(); // Filter exp
                        if (!string.IsNullOrEmpty(col.EvaluateFilterExpression()))
                        {
                            filterSeq = filterSeq + 1;
                            dr[6] = filterSeq;
                        }
                        else
                            dr[6] = 0;

                        dr[7] = col.Display; // Show in UI

                        if (objSearchView.Session["UserPreference"] != null)
                        {

                            dr[8] = UserProfileFieldID; // UserProfileFieldID
                            dr[9] = UserProfileID;  // UserProfileID
                        }
                        configData.Tables["UserProfileFields"].Rows.Add(dr);
                        temp++;
                    }
                }

                AddUserProfileDetail(IdentifierType, objSearchView.Session["UserDescription"] as string, "CustomerSearch", "RadGridSearch", RadGridSearch.MasterTableView.PageSize, RadGridSearch.MasterTableView.FilterExpression, configData);
                //ScriptManager.RegisterStartupScript(objSearchView.Page, objSearchView.GetType(), "alertMessage", "alert('User Preference Saved Successfully')", true);
                //LoadCustomerColumns();
            }
}

Thanks In advance.
Kostadin
Telerik team
 answered on 18 Mar 2014
1 answer
89 views
I'm upgrading from Telerik 2008 to the latest version, however it looks like the css classes are rather different.

I have sorted most of it out, however I still have one odd issue on the header.

When hovering over the column header the whole background of the header should go lighter, however in the area where the text is that is not the case. Also when I hover over the text, the text changes color, but I did not set that up that way.

Any help would be very much appriciated.
Venelin
Telerik team
 answered on 18 Mar 2014
1 answer
70 views
Hello guys,

i'm having problem with gridtempletecolumn, when i add boundcolums the data shown properly but when i use templetecolum it does not show the data, can any one solve my problem.
Pavlina
Telerik team
 answered on 18 Mar 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?