Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
96 views
Hi,

I have a treeList (Q3 2011) with multi column sorting enabled.
m_treeList.AllowSorting = true;
m_treeList.AllowMultiColumnSorting = true;

The first column is initially sorted:

if (!Page.IsPostBack)
{
   TreeListSortExpression sort = new TreeListSortExpression();
   sort.FieldName = "Caption";
   sort.SortOrder = TreeListSortOrder.Ascending;
   m_treeList.SortExpressions.Add(sort);
}

I have additional columns which I want to sort ("Name" and "Group") manually.
For example I have the following tree with 3 columns:

Caption | Name | Group
Caption1 (this is just a grouping node)
 + C1 | a | Group1
 + C2 | b | Group1
 + C3 | c | Group1
 + C4 |    | -

I remove the sort of the "Caption" column by clicking twice and add a sort (desc) to "Group" and a sort (asc) to "Name". I expect something like above, but I get:
Caption | Name | Group
Caption1
 + C2 | b | Group1
 + C1 | a | Group1
 + C3 | c | Group1
 + C4 |    | - 

Even if I set "Name" to "desc" it stays the same. If I set the filter just to "Name" it works (a, b, c / c, b, a).
Unfortunately I can't reproduce this with the Demo (http://demos.telerik.com/aspnet-ajax/treelist/examples/sorting/basicsorting/defaultcs.aspx ) because it doesn't have comparable data (no column has double entries).
Also, the documentation is very light regarding this topic.

Is there something else I have to do to get this to work?

Thanks!

Martin
Telerik team
 answered on 29 Mar 2012
2 answers
221 views
I have a RadListView that has an ItemTemplate that contains a RadComboBox. As such, the IDs of the combo boxes are dynamically generated, so this will not work for me:

var rcbAssigneeObject = $find("<%=rcbAssignee.ClientID %>");


. What I'm trying to do is apply some business logic to what can and cannot be selected. I'm having trouble targetting the items in the listbox. When a check box is selected, I need to use jQuery to select all items in the combobox, then check the value of an attribute that is part of the object loaded into the datasource on page load called "type". If this type is equal to, say, "person", then I need to disable all items in the combobox other whos type is "group". I've started with something like this:

$(".AssigneeTag").find(":checkbox").click(
        function () {
            var allItems = $(this).closest(".rcbList").find(".rcbItem");
            //check item types here
    });

I'm stuck on where to go from here. I seem to be unable to access any sort of item client id in order to create an asp object that allows me to manipulate the telerik object. For instance, if I were to just grab the item like:

var myItem = $(this).closest(".rcbItem").attr("id");

it would return null for that field. And if i try to get the id of the parent above that, I also get null.

Any ideas?

Or at the very least, how do I obtain the RadComboBox item starting at the checkbox OnClick event. For instance

var rcb = $(this).pathToRadComboBoxControl().Get();

The from there, how do i iterate through the item collection. is there a method like rcb.get_items().each(...);  ??
Kalina
Telerik team
 answered on 29 Mar 2012
2 answers
174 views
Hello,

I have just read this demo:http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/alleditablecolumns/defaultcs.aspx .
In this demo,the "Category" column is not a field in table [Products] ,but in table [Categories ].And the demo use the following code to show the category's name accurately:
<telerik:GridDropDownColumn DataField="CategoryID" DataSourceID="SqlDataSource2"
                    HeaderText="Category" ListTextField="CategoryName" ListValueField="CategoryID"
                    UniqueName="CategoryID" ColumnEditorID="GridDropDownColumnEditor1">
                </telerik:GridDropDownColumn>

But now I have 3 tables in my datebase,for example,table A,table B and table C.Table A has a foreign key pointing to table B.And table B has a foreign key pointing to table C.Now I want to show A.X,B.Y,C.Z in a grid and realize the insert/update/delete functions.How to?

In addition,if I use dropdownlist to show B.Y and C.Z,I have to deal with the SelectedIndexChanged event to refresh the other dropdownlist.

It seems that my question is a little stupid.Let me give an example.Now I have to manage the students' information.Each student comes from different college,and has their major.Each major is in different college.Now I have 3 tables:[Students],[Majors],[Colleges].[Students].MajorID is a foreign key pointing to [Majors].  [Majors].[CollegeID] is a foreign key pointing to [Colleges]. [Majors].Name is the name of a major and [College].Name is the name of a college.Now I want to use a grid to show/insert/update/delete students.

My current solution is to use other pages for insert/update,is there a faster way?
 
Thanks very much.
Andrey
Telerik team
 answered on 29 Mar 2012
1 answer
148 views
Hi,

Hosted ASP.net v4 web application in IIS 7.5. Application is working fine with http (182 port). When added HPPTS binding with default port (443)...getting javascript error "SCRIPT5009: 'Sys' is undefined"; the same is working with Firefox. After some analysis found that "Telerik.Web.UI.WebResource.axd" is not rendered to IE (v9).

\When I change the HTTPS port number from 443 to other port (say 555)...application is working as expected.

Can any clarify why port 443 is blocking Telerik.Web.UI.WebResource.axd ?

Thanks in Advance...!
Pradeep
Genady Sergeev
Telerik team
 answered on 29 Mar 2012
1 answer
78 views
Hi,
we're having an issue with RadMaskedTextBox (and RadDatePicker too) with EnableSingleInputRendering true on IE6 browser.

We searched the forums, but we found no suggestions.

We have this simple markup:
<telerik:RadMaskedTextBox ID="radMaskedSingle" runat="server" DisplayPromptChar="X"
    HideOnBlur="true" HoveredStyle-BorderColor="#18d330" Mask="####" PromptChar=""
    SelectionOnFocus="None" Width="100px">
</telerik:RadMaskedTextBox>

<telerik:RadMaskedTextBox ID="radMaskedStandard" runat="server" DisplayPromptChar="X"
    HideOnBlur="true" HoveredStyle-BorderColor="#18d330" Mask="####" PromptChar=""
    SelectionOnFocus="None" Width="100px" EnableSingleInputRendering="true"></telerik:RadMaskedTextBox>

And on codebehind:
protected void Page_Load(object sender, EventArgs e)
{
        radMaskedSingle.Text = "0123";
        radMaskedStandard.Text = "0123";
}

 When we open IE6 browser, value inside radMaskedSingle is partially hidden (see attachment).

Any suggestion/workaround for this issue? (Telerik version Q1 2012 - 2012.1.215).

Regards.
Vasil
Telerik team
 answered on 29 Mar 2012
9 answers
201 views
Hi,

I'm experiencing this issue where you drag and drop files, but before you drop, if you press the Esc key while the files are dragged over... so before you release your mouse to drop, if you press escape, the ruDropzone div is on top and remains on top. The upload control is not shown anymore.

This is reproducible in the online demo as well... any work around for this issue?

http://demos.telerik.com/aspnet-ajax/asyncupload/examples/draganddrop/defaultcs.aspx?product=asyncupload


Thanks.

sathish
Bozhidar
Telerik team
 answered on 29 Mar 2012
1 answer
71 views
Hello,

I have the following scenario:
1. insert table
2. open the table properties dialogue
3. select any class from the apply css dropdown and click ok.

As a result the following mark up is generated:
<table className="bold">
    <tbody>
        <tr>
If I use the apply css dropdown from the main editor tool-bar then class attribute is correctly added.
Do you have any ideas what could be wrong?
The Telerik.Web.UI.dll version is 2011.1.315.35.


Rumen
Telerik team
 answered on 29 Mar 2012
4 answers
176 views
I've just upgraded to 2009.1 of RadControls and have been using the Forest skin. It appears that the vertical grid lines have been removed from this skin in the latest code. I really like the vertical lines, is there any way I can add them back? Setting GridLines="Vertical" does not accomplish this, it seems to only add lines to the filter header.
Kiran
Top achievements
Rank 2
 answered on 29 Mar 2012
0 answers
114 views
Hi,

I am using a redcombobox with loadondemand with a web service.

I am trying to add a property appContext to Radcombobox context as shown below.

When I click on the combo, the call goes to webservice, but I am unable to get the added property appContext in the webservice method. This is happening only when I open a popup and close it and adding the value from the popup to the combo.
Here I can see only the added item but not all the items of the combo.

Adding appContext:
public IEnumerable<ScriptDescriptor> GetScriptDescriptors()
        {
            var descriptor = new ScriptControlDescriptor("Sales.Purchase.Controls.SalesSelector", Panel.ClientID);

            var appContext = new ApplicationContext();

            appContext.DecryptedRequestContext[AppContext.SystemIdRequestKey] = salesId;
            appContext.DecryptedRequestContext["id"] = SelectedSaleTypeId;
            appContext.DecryptedRequestContext["sv"] = sales.Text;
            appContext.DecryptedRequestContext["prid"] = SaleReqID.ToString();


            descriptor.AddProperty("btnDummy", Page.ClientScript.GetPostBackEventReference(btnDummy, String.Empty, true));
            descriptor.AddProperty("appContext", appContext.EncryptedRequestContext);
            descriptor.AddComponentProperty("SalesList", cboSales.ClientID);
           
            return new ScriptDescriptor[] { descriptor };
        }

WebService Method:
I am unable to find the key "appContext"
public RadComboBoxData GetSalesData(RadComboBoxContext context)
        {
            const int itemsPerRequest = 20;

            var comboData = new RadComboBoxData();
                       
            var encryptedContext = context.ContainsKey("appContext") ? (string)context["appContext"] : null;
            .......
            return comboData;
        }

Please help me out

Sri
Top achievements
Rank 1
 asked on 29 Mar 2012
5 answers
189 views
Hello,

I Have 3 comboboxes.
when selecting a value in combobox 1 it fills the values of combobox 2

now i want to fill the values of combobox 3 based on the selected values of combobox1 and combobox 2

How can I achieve this on clientside
Shinu
Top achievements
Rank 2
 answered on 29 Mar 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?