Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
131 views
I've run out of ideas on how to do this so I'm hoping one of you will give me an idea.

What I'm trying to do, at the request of our user community, is have a popup open when a user drags/drop a row so they can enter some information.

I'm using jQuery and some jQuery plug-ins in trying to accomplish this, everything works independently but when I try to incorporate it with the drap event it doesn't work.

I've tried squirting the javascript at the end of the rowdrop event of the grid and it does trigger my javascript and I've traced it and it should popup my window but it doesn't, I suspect that the javascript is being triggered at the wrong time in the sequence of events.

Any help would be appreciated.

All I need is a popup with a text area and a OK/Cancel that is triggered at the end of the dropping of a row.

Thanks
Alex
Top achievements
Rank 2
 answered on 20 May 2011
5 answers
335 views
Hi,
I am using the webservice method of populating my radtreeview as it was described as the most efficient way to load large amounts of data. So the signature of my webservice method is:

[WebMethod]
public RadTreeNodeData[] WebServiceMethodName(RadTreeNodeData node, object context)

However, the nodes that I am populating the tree with depend on the security access of the user that is logged in to my application..
Is it possible to pass additional parameters to the webservice method? Or must I use a ServerSideCallBack method to populate the tree? I am hoping that I can still use the webservices functionality... I would like to pass a signature like this to my webservice method:
[WebMethod]
public RadTreeNodeData[] WebServiceMethodName(RadTreeNodeData node, object context, object userSession)

I look forward to your response. Thank you!

Nikolay Tsenkov
Telerik team
 answered on 20 May 2011
1 answer
96 views
I have a used one of your chart demonstrations and require a little help.

DataTable table = PageAccess.CountOfEnquiriesBetweenDates(startDate, endDate);
 
        var c = table.Rows.Count;
         
 
        RadChart radChart = new RadChart();
        radChart.ChartTitle.TextBlock.Text = "Enquiries";
        radChart.Skin = "DeepGray";
 
         
        var chartSeries = new ChartSeries {Name = "Enquiries", Type = ChartSeriesType.Bar};
        //It works when I just put in a value
        chartSeries.AddItem(c, "Enquiries");
from the code above I have executes a stored procedure retruned as a DataTable and I am then counting the number of rows in the table.  I need this value to be in the graph data. I have tried Convert.ToDouble(c), I am using VS 2010.  Can someone shed any light on what I have done wrong?

Many thanks

Simon
Simon
Top achievements
Rank 1
 answered on 20 May 2011
3 answers
102 views

Hello,

Imagine two tables, each with two columns.

Operations
 UserId
 StartedBy

 

Users 
 Id 
 UserName

Operations.UserId is a FK to Users.Id. All columns are integers.

This works:

<telerik:GridDropDownColumn 
    DataField="UserId" 
    DataSourceID="UsersDataSource" 
    HeaderText="UserId"
    ListTextField="UserName" 
    ListValueField="Id"  
    UniqueName="UserId">
</telerik:GridDropDownColumn>

 

This doesn't:

<telerik:GridDropDownColumn 
    DataField="StartedBy" 
    DataSourceID="UsersDataSource" 
    HeaderText="Started By"
    ListTextField="UserName" 
    ListValueField="Id"  
    UniqueName="StartedBy">
</telerik:GridDropDownColumn>

Here's the DataSource:

<asp:EntityDataSource 
    ID="UsersDataSource" 
    runat="server" 
    ConnectionString="name=MyEntities" 
    DefaultContainerName="MyEntities" 
    EnableFlattening="False" 
    EntitySetName="Users" 
    EntityTypeFilter="User" 
    OrderBy="it.[UserName]">
</asp:EntityDataSource>

I know the UserId works because it is a foreign key but the second "StartedBy" is just a normal Int32 column in the Db that I have no control over (i.e. no relationship is or will be defined).

Normally, I'd just shrug and roll some code-behind but I'd much rather solve this in the declarative manner.

What is the simplest way I can get my StartedBy dropdown to bind via the value recorded in Operations.StartedBy?

 
Richard

Mira
Telerik team
 answered on 20 May 2011
4 answers
252 views

hi all

i have a little problem with radlistbox, already i add items from a radcombobox, this function run correctly, but radlistbox accept repeated items, i want to know how i can validate with client side code if items on list do repeated before to add new item

thanks in advance for read this thread and for all answers

Regards!

arturo
Top achievements
Rank 1
 answered on 20 May 2011
5 answers
127 views
The latest controls build seems to break the old solution to the 100% height update panel issue (that of finding the update panel id server-side and setting its height explicitly cliient-side). This breakage is no big deal since I'd like to switch to using the relatively new UpdatePanelHeight property instead of the old hack. However, I have run into an issue. I have a MasterPAge and Contentpage and the latter has two Content Areas. Various controls in each Content are need to ajaxify eachother.

1) I'd like to place an AjaxManagerProxy declaration on the ContentPage so I can make use of the UpdatePanelHeight property, however, I'm not sure how to reference controls in the two contentAreas in the AjaxSettings.
 
2) OR, I can also set the ajaxSettings server-side, but then I don't know how to set the UpdatePanelHeight property.

Can someone let me know how to do either of these.. though #1 is preferrable.

P.S., it would be nice if you could extend the AddAjaxSetting Method to include a parameter for the UpdatePanelHeight.
Tsvetina
Telerik team
 answered on 20 May 2011
2 answers
116 views
Hi,

Can anyone please help me with an example to bind a chart in the runtime using code behind?
I have stored procedures and .Net class files, with Datatable as output, ready with me.

I need a simple example to bind the chart with these classes' objects in the c# file.

Thanks...
Simon
Top achievements
Rank 1
 answered on 20 May 2011
3 answers
111 views
Simple situation.

In the web page:

<telerik:RadWindowManager ID="RWMan" runat="server">

 

   <Windows>

 

    <telerik:RadWindow ID="RWITaskView" runat="server" Width="400" Height="200" BorderColor="Blue"

 

      DestroyOnClose="true" VisibleTitlebar="true" VisibleStatusbar="false"
 
     NavigateUrl ="MemberITaskView.aspx"

 

      VisibleOnPageLoad="false" AutoSize="true" AutoSizeBehaviors="Height, Width"
      KeepInScreenBounds
="false" Behaviors ="Close,Move"

 

      EnableShadow="true" EnableEmbeddedSkins ="false">

 

    </telerik:RadWindow >

 

    <telerik:RadWindow ID="RWITaskEdit" runat="server" Width="400" Height ="200"

 

      DestroyOnClose="true" VisibleTitlebar="true" VisibleStatusbar="false"
      NavigateUrl
="MemberITaskEdit.aspx"

 

      VisibleOnPageLoad="false" AutoSize="true" AutoSizeBehaviors="Height, Width"
      KeepInScreenBounds
="false" Behaviors ="Close,Move"

 

      EnableShadow="true" EnableEmbeddedSkins ="false">

 

    </telerik:RadWindow >

 

  </Windows >

 

</telerik:RadWindowManager >


In databind event for a grid:

 

 

(e.Item.Cells[ViewPos].Controls[1]

 

as HyperLink).Attributes["onclick"] = "ShowITaskView('" + ky + "');" ;

 

 

 

 

 
In webpage script:

 

 

function ShowITaskView(id) {  

 

var Wnd = radopen("MemberITaskView.aspx?itid=" + id, "RWITaskView" );

 

 

 

 

 return false  

 

 

}

 

 

PROBLEM:
1. On the first click on a hyperlink in the RadGrid control,
    The autosize and everything works fine EXCEPT that the title bar and boundaries have opacity 0 somehow
2. On subsequent clicks on hyperlinks in same or other rows,
    Autosize and everything does NOT work, AND the title bar and boundaries are normal.

See the two screen shots.

Any ideas?

Thanks.

Svetlina Anati
Telerik team
 answered on 20 May 2011
5 answers
115 views
Hi,

     i am using rad scheduler in my application. i want to increase the appointment size based on number of appointment.
if only one appointment is available for a day that appoint ment region should be big. 
please refer my screen shot which i attached.
Peter
Telerik team
 answered on 20 May 2011
2 answers
60 views
Is there a way to define a hierarchy grid, but when I expand a particular row (too see its nested item) to hide all the cells in that row?

Something like here: http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarativerelations/defaultcs.aspx
But when the first row is expanded and I see the inner grid, I want to have the cells that contain: "ALFKI", "Maria Anders" and "Alfreds Futterkiste" hidden. And when I collapse the first row to have that cells displayed.

If there is no way to do that feel free to offer another solution.

Thanks,
Kamen
Kamen
Top achievements
Rank 1
 answered on 20 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?