Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
90 views
Hi Telerik Team,
We are trying to make monthly chart in which series are being created Dynamically. On X-axis, we need to group chart with Months Name. I also tried your sample application and also following same steps in my application. But it shows me some inconsistant values (Mean it is not showing values according to proper months). I am selecting records using Linq Entity framework and keep them in Data Table. When i receive records in datatable, data is to be shown properly but when i pass this datatable to my Rad Chart control then it shows some inconsistant values. Can you please guide us that how we can solve this issue.

Regards,
Ascertia Team
Ves
Telerik team
 answered on 27 Jul 2009
1 answer
90 views
hello I've started look into nestedviewtemplates and have a couple of question

1. http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/nestedviewtemplate/defaultcs.aspx in this sample, the sales grid consists of a detailview table. the sqldatasource has a sessionparameter. Now i Assume that the parenttablerelationship-settings do put the correct value inside there and that it should be asp:Parameter instead - because i cannot see where the session parameter is set.

2. My other question is how to achieve what is done in the nestedview sample programmatically?  Using the sqldatasources and binding to the hidden Label to use as ID and then use controlparameter seems pretty okay. But what if there's a scenario where i cannot use the parameterized datasources? I looked into the documentation and found the OnDetailTableDataBind event which i have successfully used to fetch data and bind it to detailtables, but how can it be done in nestedviewtemplates?

i haven't tested the sample extensively but i suppose the fact that nestedviewtemplate consists of tabstrips, detailviews etc adds to the complexity of databinding programmatically?
Mira
Telerik team
 answered on 27 Jul 2009
5 answers
159 views
Hi,

I have a WCF-bound grid that works fine. I have the user select one or more items, click a button, which opens a Window for editing. All this is fine. 

I have an event handler on closing of the window and in this I want to be able to update the grid with the changes. This, however, runs the code but does not retrieve the changes by calling the WCF service.

My JavaScript:

var grid = $find('<%=radGridDataGroups.ClientID %>'); 
var selItems = grid.get_masterTableView().get_selectedItems(); 
if (selItems.length == 0) { 
    radalert('Please select an item to edit and then try again.', 300, 100, 'Edit Data Group'); 
} else { 
    for (var i = 0; i < selItems.length; i++) { 
        var w=migOpenDialog('~/secure/dialogs/system/EditDataGroup.aspx?dataGroupID=' + selItems[i].getDataKeyValue("DataGroupID"), 600, 600); 
        if (w) { 
            w.setActive(true); 
            w.set_modal(true); 
            w.add_close(function() { 
                alert('hello');  
                var masterTable = $find("<%=radGridDataGroups.ClientID %>").get_masterTableView(); 
                masterTable.rebind(); 
            }); 
            w.show(); 
        } 
    } 
} 

So the 'hello' message is displayed (I have also put breakpoints in there). I have stepped through the $find call, which gets the grid and the rebind method appears to run, but nothing happens.

So how can I refresh a WCF grid based on changes?

Note: migOpenDialog is just a wrapper for your openWindow function.

Many thanks
Nathan J Pledger
Top achievements
Rank 2
 answered on 27 Jul 2009
3 answers
148 views
Hello,

How can i quickly add 5000 items to the list control on client side?

I can use the _addNewItems("", options) in RadComboBox, do you have any similar method in RadListBox control which allows to avoid creating RadListItem javascript objects one by one?

Thanks
Simon
Telerik team
 answered on 27 Jul 2009
4 answers
136 views
Hi

I have a grid which allows me to edit the row. Updating works fine. However when I use the itemupdated event handler the row does not update. The itemupdated eventworks fires fine though.

Is there something else I must do when I use the itemupdated event or is this a bug?

Thank you
Pavlina
Telerik team
 answered on 27 Jul 2009
2 answers
504 views
Guys,
Can you please let me know what is the best way to doing this.  I have a RadGrid
That uses <FormTemplate> for editing. Inside of that I have another RadGrid and "Save" Button. How can I get an access to a grid that in enbaded inside of the FormTemplate

in code behind, in  btnSaveBitData_Click how can I find gvBits. I can do something like
gvBits = (RadGrid)gvPolicyData.MasterTableView.Items[editIndex].EditFormItem.EditFormCell.FindControl("gvPolicyBits"); 
but it got to be a better way.
 
    <telerik:RadGrid ID="gvMaster" runat="server" AutoGenerateColumns="false">  
        <MasterTableView DataKeyNames="SomeId" EditMode="EditForms">  
            <Columns> 
                <telerik:GridTemplateColumn HeaderText="Actions" ItemStyle-Width="150px">  
                    <ItemTemplate> 
                        <div class="actions_menu" style="width: 150px">  
                            <asp:LinkButton ID="lnkSet" runat="server" CausesValidation="false" CommandName="edit" 
                                CssClass="float bits" Text="Set "></asp:LinkButton> 
                            <br style="clear: left" /> 
                        </div> 
                    </ItemTemplate> 
                    <ItemStyle Width="150px" /> 
                </telerik:GridTemplateColumn> 
            </Columns> 
            <EditFormSettings EditFormType="Template">  
                <FormTemplate> 
                    <div style="padding: 10px; background-color: #F8F8FF">  
                        <telerik:RadGrid runat="server" ID="gvBits" AutoGenerateColumns="false" Skin="Office2007" 
                            OnNeedDataSource="gvBits_NeedDataSource">  
                            <MasterTableView> 
                                <Columns> 
                                    <telerik:GridBoundColumn> 
                                    </telerik:GridBoundColumn> 
                                </Columns> 
                            </MasterTableView> 
                        </telerik:RadGrid> 
                        <br /> 
                        <asp:Button ID="btnSaveBitData" runat="server" Text="Save" CssClass="action_button" 
                            OnClick="btnSaveBitData_Click" />&nbsp;&nbsp;  
                    </div> 
                </FormTemplate> 
            </EditFormSettings> 
        </MasterTableView> 
    </telerik:RadGrid> 

 

 

Orest
Top achievements
Rank 1
 answered on 27 Jul 2009
1 answer
156 views
Hello,

we are developing a client/server 3-tier application and need to filter and sort huge amount of data. Let me first explain the current situation.

WebSite <-> ApplicationServer <-> Database
WinApp <-> WebService <-> ApplicationServer <-> Database

The Website calls the methods in the applicationserver directly e.g. "Users.GetAllUsers()".
The WinApp calls the same method via webservice.

Our current grids show the data in the sort order returned by the method above. Now we need to implement sorting/filtering and paging on the grids and we'd like to use the standard funktionality of the grids. As we have a 3-Tier application i do not want to directly connect the grid to the database, merely i want to connect the grid to the ApplicationServer.

Does anybody know how we can achieve this in an elegant way? It should work over webservices, too.
I was thinking of getting a serialized expression tree from the radgrid that i can send to the webservice which itself manipulates it and sends it to the database. The data is then returned to the grid.

Any ideas?

Bodevain Svensson
Top achievements
Rank 1
 answered on 27 Jul 2009
9 answers
182 views
Hi please can some one help me with this problem.
I have a Rad calendar control next to a text box and when I select a date i will be added to the text box. I also would like when I click on the caledar conrol 'Today's date background color be different from the rest of the days so that the user see todays date. This is usually done by default on aspx.net calendar control but i can get it work on Rad calendar control.

Thanks
Rao
Pavlina
Telerik team
 answered on 27 Jul 2009
1 answer
162 views
Hi ,

I am uploading  files using Document Manager and inserting the uploaded file into the RadEditor content by clicking the Insert button.
Again if i click the insert button the document gets added in the same line next to the previous one. I want to add the next attachment in the next line with a line break. Is it Possible to insert a line break in the button click or please provide a solution so that i can add attachments in seperate lines.

Thanks in Advance
Veda.S 
Rumen
Telerik team
 answered on 27 Jul 2009
1 answer
118 views
Hi,

I have just found some kind of fault in the advancedFormTemplate system. Validators position themselves wrong, even in the official example:
http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx

If you open one of the appointments, delete the subject, submits the form and then clicks on the subjectfield the errormessage appears a weird place.

What can I do to correct this?
What can I do to get full control of the position of the errormessage?

Regards
Rune
Alex Gyoshev
Telerik team
 answered on 27 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?