Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
83 views
Hi all,
I am manually binding a RadGrid to an IList of custom objects using the NeedsDataSource event handler.....working great as long as i have a singleton property for each column that i want to display. Where i am a little confused is how to deal with a Function that returns a list of other values.

In my case, the custom object being bound to has a Function that returns a Dictionary<int,double>.....often only 1 entry, but sometimes up to 3.

What I want to have is a column that displays all the keyvalue pairs, with some formatting.

So, if the custom object had properties like this:
ID =  1
Name = "Object1 Name"
Balances = <1,100>, <2,200>, <3,300>

I would want 3 columns in my grid to look sort of like this:

ID      Name                               Balances
---------------------------------------------------------------------
1        Object1 Name                   ID: 1 contributed $100
                                                 ID: 2 contributed $200
                                                 ID: 3 contributed $300

I am sure it shouldn't be too hard, but i am not really sure how to do it.

Any advice would be greatly appreciated.

Paul


Paul
Top achievements
Rank 1
 answered on 01 Mar 2013
6 answers
163 views
I've cookbooked a couple of tooltip popups based on your demos.   These appear when I hover over one cell of the RadGrid. The original one was based on http://www.telerik.com/community/code-library/aspnet-ajax/grid/integrating-radtooltipmanager-with-radgrid.aspx.  This was enough for a simple display grid with no filtering or paging.  

When I tried to implement a similar scheme on my far more complex main grid, the popup started displaying data for the wrong record.
This was solved by adding the  RadToolTipManager1.TargetControls.Clear() call to the ItemCommand.  This is fired for the Filter, Page, Sort, and RebindGrid commands.

Everything is working as desired now except for one matter.  

This grid is a standard header/detail arrangement.  If I expand any of the details, the popup stops working.

Suggestions?

Boris
Top achievements
Rank 1
 answered on 01 Mar 2013
1 answer
65 views

I'm new to telerik controls.

I'm using following code to Update my controls asyncronously.

Below is my code:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID =  "RadAjaxLoadingPanel1">

    <AjaxSettings>
        <telerik:AjaxSetting EventName="OnSelectedIndexChanged" AjaxControlID="grd_optnandprcng">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="Req_items"></telerik:AjaxUpdatedControl>                    
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>


as my code shows, i just want to update control Req_items (rad gridview) only on OnSelectedIndexChanged event of grd_optnandprcng (rad gridview).

But its not working. Its updating control on every event of radgridview.

Anyone have any idea to resolve this issue. Thanks.

Kostadin
Telerik team
 answered on 01 Mar 2013
2 answers
87 views
When the user clicks the 'New Row' button from the grid's command bar, I'd like to create the row, put it in edit mode, and set focus to the new row's first field.

I've gotten the new row created and put in edit mode but I cannot get it to put the cursor in the edit controls for the row (I have to click inside them to get it started, from that point Tab gets me from field to field and Enter commits as expected).  Is there an example out there on how to do this that I've missed?
J
Top achievements
Rank 1
 answered on 01 Mar 2013
1 answer
65 views
Using SQLDataSource, so please provide a solution with this rather than an alternative unless it cannot be done. Thanks

TableA and TableB from the same database

My "ItemsRequested" for the combobox has this string setup and it works fine.

Dim sql as string = "SELECT TOP 10 B.serialnumber,  A,column, B,Column FROM DB.dbo.TableA A, DB.dbo.TableB B Where B.column LIKE'" + e.Text + "%' and B.column!='CL' order by B.column"

My problem is on the "ItemBound" method.

e.Item.Text = e.Item.Attributes("column") + ", "+e.Item.Attributes("column") + ", " +e.Item.Attributes("column")

The column name has to be the colum from TableB.  In other words  B.Colmn.
Putting in B.Column of course won't work as follows...
e.Item.Text = e.Item.Attributes("B.serialnumber") + ", "+e.Item.Attributes("column") + ", " +e.Item.Attributes("column")

So with this join involved how do a pull this information specifically from the joined table column? B.Column

Thanks!
Hristo Valyavicharski
Telerik team
 answered on 01 Mar 2013
1 answer
191 views
Is it possible for the CaptionDataField to contain more than one field?  

I had thought to set up the CaptionFormatString with something like "This is {0} of {1}" with the CaptionDataField = "Field1, Field2" but this crashes the grid everytime.

(Both of the fields I tried to use are defined in the DetailTables GridTableView DataKeyNames.)
Jayesh Goyani
Top achievements
Rank 2
 answered on 01 Mar 2013
3 answers
81 views
I used radGrid to display my items, also I am using javascript to find a row and select a row when user type in textbox. The problems is if those row is outside a radgrid's view, how can I move scrollBar to the selectedRow by javascript (clientside)
Charles Goh
Top achievements
Rank 1
 answered on 01 Mar 2013
0 answers
66 views

i designed table in report text box fields are shown but data base fields are not show

see the screen shot


Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 asked on 01 Mar 2013
4 answers
176 views

I have reviewed the Upload Async demo (the overview). Telerik describes this demo as a "simple mail app mockup" and the AsyncUpload is used to add "file attachments". Within the demo, I clicked [Select] to "attach" a file. The demo also displays a default email address of john@johnsmith.com. I replaced this address with my own and clicked [Send], expecting to receive a message in my Inbox that included the file attachment. I never received a mail message (after several attempts).

Can someone explain how this demo is intended to work?
Is it suppose to send email?
If it is suppose to send email, is it also suppose to include a file attachment?
Can I change it so that it emails a hyperlink to a file that was uploaded to my webserver, instead of physically emailing an attachment?

I want a hyperlink (of the uploaded file) to be embedded in the mail message so that when a user receives the mail message, they can simply click on the hyperlink, and have it prompt the user to download the file from my webserver.

Can this be done? How?

Thank you,
Steven

Brian
Top achievements
Rank 1
 answered on 01 Mar 2013
4 answers
99 views
Hi,

(I am using the 2012.3.1205.40 version.)
I think I figured out a weird issue with the RadComBox when used with LoadOnDemand + EnableVirtualScrolling.
I bind my RadComboBoxes with a WCF Webservice and has been surprised to see that it is called two times:
- when I open the drop down panel (normal) 
- but also after I selected an item.

I checked your demo and it worked as expected.
Finally I detected that it was the MaxHeight property that makes the RadCombobox to call the WCF Webservice two times.

Code:
<telerik:RadComboBox ID="ddlCustomer" runat="server" ClientIDMode="Static" EnableLoadOnDemand="true" MaxHeight="200"            
    ShowMoreResultsBox="true" EnableVirtualScrolling="true" EmptyMessage="Type here ..."  >
    <WebServiceSettings Path="~/TestWS.svc" Method="LoadCustomersOnDemand" />
</telerik:RadComboBox>
 
 
<telerik:RadComboBox ID="ddlCustomer2" runat="server" ClientIDMode="Static" EnableLoadOnDemand="true"
    ShowMoreResultsBox="true" EnableVirtualScrolling="true" EmptyMessage="Type here ...">
    <WebServiceSettings Path="~/TestWS.svc" Method="LoadCustomersOnDemand" />
</telerik:RadComboBox>
The first RadCombobox calls my WCF Webservice two times, whereas the second one behaves normally (only one call).

Moreover because it is called two times, when you try to get the selectedItem after the second call, it returns null:
$find("ddlCustomer").get_selectedItem()


Can you check and confirm that?


Dimitar Terziev
Telerik team
 answered on 01 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?