Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
532 views
Here is the scenario:

  •   I have a RadGrid with 3 columns -- Qty -- Description -- Price Per
  •   Data comes in from the server - as a list of items you can select
  •   The Qty column is a RadNumbericTextbox with spinner buttons -- Price Per is set from the database
  •   When you change the Qty, I want to recalculate the total of all lines for the entire grid and show it in a separate RadNumbericTextbox outside of the RadGrid
  •   The math is the sum of Qty * Price Per for all lines.

Attached screenshot shows the grid I am dealing with to give a clear idea...
Dan
Top achievements
Rank 1
 answered on 24 Apr 2012
3 answers
303 views
Is there a good tutorial or documentation that explains this control and how it works.  We just purchased the controls at my work and i'm trying to learn as much about them as possible.  I'm not sure what this control does and how exactly to use it.  Any help would be appreciated.

Thank you
Eyup
Telerik team
 answered on 24 Apr 2012
1 answer
99 views
The behavior I'm seeing is that scrollIntoView() modifies the position of the scrollbar even when the node in question is already in view.  Is there a way to prevent this?  In attempting to accomplish this, I haven't been able to find a property on the node that describes whether it is already in view.  Can anyone help?

Phil
Plamen
Telerik team
 answered on 24 Apr 2012
3 answers
206 views
Hi

I'm using a Radgrid, fairly simple implementation:

<telerik:RadGrid ID="approval" runat="server" AutoGenerateColumns="False"
            CellSpacing="0" GridLines="None" AllowFilteringByColumn="true"
            onneeddatasource="approval_NeedDataSource"
            OnItemCommand="approval_ItemCommand" OnInit="approval_Init" >

<MasterTableView allowpaging="True" datakeynames="Id" AllowSorting="true"
    name="claims" commanditemdisplay="Bottom"  AllowFilteringByColumn="true">

I'm having an issue with the filter options, I have enabled column filtering and this is working fine.  I want to limit the number of filter options available.  I followed this guide: http://www.telerik.com/help/aspnet-ajax/grid-reducing-filtermenu-options.html 

I created an Init handler:
protected void approval_Init(object sender, EventArgs e)
{
    GridFilterMenu menu = approval.FilterMenu;
    int i = 0;
    while (i < menu.Items.Count)
    {
        if (menu.Items[i].Text == "NoFilter" || menu.Items[i].Text == "Contains" || menu.Items[i].Text == "DoesNotContain"  || menu.Items[i].Text == "EqualTo" || menu.Items[i].Text == "GreaterThan" || menu.Items[i].Text == "LessThan")
        {
            i++;
        }
        else
        {
            menu.Items.RemoveAt(i);
        }
    }
}


However this isn't working, if I attach a breakpoint the code isn't being hit.

Any advice?

Thanks
Contact
Top achievements
Rank 1
 answered on 24 Apr 2012
1 answer
87 views
I have a need where when I 'typeahead' to load the combobox... each time an item is selected it is automatically added to another listbox on the page (not removed from the combobox list collection). I don't really want it to remain selected in the combobox. Or displayed in the text field.

Dimitar Terziev
Telerik team
 answered on 24 Apr 2012
5 answers
109 views
Hello,

I'm trying to create "virtual" directories for our file-system and then display them using the fileexplorer from Telerik.

I have a table called FILES that looks something like this:

id int (key)
filename varchar(50)

A table calle VERZEICHNIS that looks like this
id int (key)
directoryname varchar(50)
vorgaengerid int

and a many to many connection between them

FILES_VERZEICHNIS

filesid int  (key)
verzeichnisid int (key)

I've got it to display everything just fine using a custom file provider, but I've run into two problems.

One, because the files come from Internet users we've created a system where the filename displayed can exist more than once in a directory (the id is the key). When the Fileexplorer Itemcommand is fired, it only passes the path. I can probably append an id to some part of the filename, but this is unsightly and exposes information to the user they don't need. Perhaps there's a way I can get at the source node and destination node and the underlying dataitems, but I can't find it.

Two, I've probably set up the page wrong, because when the treeview attempts to refresh the wait indicator never goes away and I get four javascript errors. Three say "a is undefined" and the fourth says "Fehler: $get(this._currentDirectoryInputID) is null
Quelldatei: http://aspnet-scripts.telerikstatic.com/ajaxz/2011.1.315/FileExplorer/RadFileExplorer.js
Zeile: 674 "

Any help with either of these matters would be most appreciated.
Paul Herzberg
Top achievements
Rank 1
 answered on 24 Apr 2012
3 answers
68 views
Hi,
if you try to d&d a file or a link to a file from a website (not from LocalSystem) asyncUpload functionality is being broken with
"file is undefined" exception
var fileApi = function (asyncUpload) {
$.extend(this, {
_processFiles:
...
$.each(files, function (index, file) {
var row = index == 0 ? context.initialRow : module._appendRow(context.initialRow.id);
module.trigger("FileSelected", row, input, file.name, (index + 1) == context.progress.totalFiles);
context.map.push({ file: file, row: row });
});
...
}
}
Plamen
Telerik team
 answered on 24 Apr 2012
1 answer
120 views
My scenario:

I have a RadGrid where each item has a link that will open a RadWindow. Inside each radwindow, I have a textbox that will add comments, and once a comment is added, a grid will show in it's place with comment details inside. We only allow one comment, so when a user comes back to that item and clicks the link again, the radwindow will open and only show the comments grid. My issue is everything works fine until I close the radwindow, and open a new window where a comment hasn't been added. I see the comment box (as I should), but when I close this window and go back to the window where I just added the comment, it shows the comment box instead of the comments grid (even though it hits the logic in the codebehind), until I right-click and choose refresh. I'm using IE8. I've tried DestroyOnClose=true and that worked, except after it builds the initial RadWindow, if I close it and I click a new link to open a new window none of the properties from the rad window manager are saved and a default radwindow is opened in it's place. 

Any help on this would be greatly appreciated. If I haven't been descriptive enough I can provide more details
Derek
Top achievements
Rank 1
 answered on 24 Apr 2012
5 answers
101 views
I'm a little surprised there is no way to default this information.  I can understand letting the user edited what is being sent but in my case what is being shared is the result of tasks they have completed and the user really doesn't have easy access to all the data.

I hope that this functionality is being considered. ( or that I'm wrong and it can be defaulted )

Andy
Marin Bratanov
Telerik team
 answered on 24 Apr 2012
0 answers
182 views
I have a radgrid bind to a list of object A which contains another object B as below

Class B
{
   string name;
}
class A
{
   B b;
}

for one of the GridBoundColumn, it is bind to b.name with DataField and SortExpression, however some of object A had null vaue for field b, so the page is throwing exception.

how can I config it so that if field b is null for the object A, it just uses empty string "", otherwise bind to b.name?

thanks.
Henry
Top achievements
Rank 1
 asked on 24 Apr 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?