Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
61 views
Hi, I have a RadCalendar (ajax q2) that I am assigning different event descriptions via the Dayrender Event as shown below. The goal is to show a RadWindow that receives the EventID of the clicked day (eventID being something unique in our system). I have tried to do this by adding a .Attributes.Add onclick along with associated javascript as shown below. However, what happens when I click an Event is that the window initially opens but then closes after postback. All I want is for the window to stay open after postback. Any thoughts on how to achieve this? Many thanks.

// Javascript function (assumes rwm is a radwindow manager on page
function launchAgenda(EventID)
{
  var oWnd = $find("<%= rwmAgenda.ClientID %>");  
  oWnd.show();  
  oWnd.setSize(900,700);  
  oWnd.moveTo(10,10);
  oWnd.setUrl("Faculty/Agenda.aspx?EID=" + EventID);
}
</script>

' Visual Basic DayRender sub
  Public Sub CustomizeDay(ByVal sender As Object, ByVal e As Telerik.Web.UI.Calendar.DayRenderEventArgs) Handles RadCalendar1.DayRender
        Dim CurrentDate As DateTime = e.Day.Date
        Dim currentCell As TableCell = e.Cell
        Dim d As CalendarDay
        Dim c As TableCell
Dim EventID as Integer = 52
 
                    Dim EventDesc As String = "my event"
                    currentCell.Text = EventDesc
                    currentCell.Attributes.Add("onclick", "launchAgenda(" & EventID.ToString & ")")

    End Sub 'CustomizeDay
Sebastian
Telerik team
 answered on 28 Oct 2008
1 answer
241 views
Hi,
Is there a way that I can change the orientation of the scheduler? Instead of displaying the hours from top to bottom in the left column, I like to display the hours in the top row from left to right.

This would make the scheduler great for viewing all resources.

thanks
Peter
Telerik team
 answered on 28 Oct 2008
1 answer
99 views
Hi,

I am going to be developing a usercontrol that has a treeview in it. Are there any articles that discuss how LINQ can be used to databind records to a treeview.

Thanks in Advance.
Anshul.
Veselin Vasilev
Telerik team
 answered on 28 Oct 2008
0 answers
81 views
i have to do some functionality that need to work with sessions.

can anyone tel me how to set the session["Row"] in method  on Row Click,

so that on server side i can get the value and fulfil the desired work.

var row = <%= Session["Row"] %>" ;  this get the inital value

but i want suggest to set the session vaiable on client side so that i update next time in

page load function.

mano
Top achievements
Rank 1
 asked on 28 Oct 2008
2 answers
93 views

i have a templete column in which asp image is placed. i want the following functionality:

When the onclick is fired,

1) first the icon is changed
2) that row in which the icon is placed is deleted on next refresh.

how can i mark the row in onclick event?? so that i can delete it next it. plz help

mano
Top achievements
Rank 1
 answered on 28 Oct 2008
1 answer
157 views
i want to create a dynamic report  that has the same Hierarchy with DetailTableDataBind event format but with different data. using store procedure to get the datas, how do i specify the mastertableview,detailview and column, and how do i do all of this in the server side. Plus how do i export all data on this to excel.

so if i have table call student
name     address      shoes         shirt     zip  city state size

i want name to be master,address to be detail, shoes to be detail again

so if a user select a report call student it will get the above info and generate a Hierarchy with DetailTableDataBind event with the above info.

if a user select grade report, it will select info from grade table
level     class      test      number
and level will be master, class will be detailtable.

and so on. could i do all this on server side and i want to be able to say e.detailtableview.datasource = "exec storedprocedure ......"

thank you very much for your help . i really appreciate it.
Princy
Top achievements
Rank 2
 answered on 28 Oct 2008
6 answers
154 views
hi
i am having problem in rad editor in rad controls ajax clr2.0 Q2
image manager is disabled

i hav done all which is mentioned in
http://www.telerik.com/support/kb/article/b454K-gda-b454T-btc-b454c-btc.aspx

but image manager is still disabled

my code is

<telerik:RadEditor ID="RadEditor1" runat="server" AllowScripts="True" Skin="Telerik" 
                Height="474px" Width="658px" ToolsFile="Controls/SomeTools.xml"
     <Content> 
     </Content> 
     <ImageManager UploadPaths="~/Images/" ViewPaths="~/Images/" DeletePaths="~/Images/"  /> 
</telerik:RadEditor> 


plz help.
Rumen
Telerik team
 answered on 28 Oct 2008
3 answers
333 views
Hi,
I have a radgrid with like 5 columns and one hidden column(index 1).

When a conflict occurs, I will show the hidden column + the "image" in the hidden column.

Problem.  I have like 4 columns with predefined width, like 100px each, and one column with undefined width.
Something like this:
<telerik:GridBoundColumn SortExpression="name" DataField="enrol_stage_name" HeaderText="stages" Reorderable="False" HeaderStyle-Width="100px" ItemStyle-Width="100px"/>

When I show the hidden column using RadGrid1.MasterTableView.showColumn(index); similar to that from http://demos.mcmscontrols.com/aspnet/Grid/Examples/Client/ClientSideAPI/DefaultCS.aspx
Note:RadGrid1.MasterTableView.ShowColumn(index) does not work with the Uppercase "S" as shown in the link above.
It will cause the predefined columns to resize its width, those 100px columns, where I was expecting it to only resize the one column without the width defined.  It looks ugly now, plz help.

Grid width is set to 100%.

Cheers

Yavor
Telerik team
 answered on 28 Oct 2008
1 answer
196 views

Dear Support,

I'm having a little issue with the Ajax Manager.

With a button, I would like to dynamically add RadNumericTextboxes to a simple html table.
This is a fraction of the code:

        // click new row  
        protected void buttonNewRow_Click(object sender, EventArgs e)  
        {  
            // session  
            if (Session["rowCount"] == null)  
                Session["rowCount"] = 0;  
 
            // get int  
            int rowCount = (int)Session["rowCount"];  
            Session["rowCount"] = ++rowCount;  
        }  
         
        // load page  
        protected void Page_Load(object sender, EventArgs e)  
        {  
            // add 5 rows by default  
            for (int i = 0; i < 5; i++)  
                AddRow();  
 
            // add button clicked rows  
            if (Session["rowCount"] != null)  
            {  
                for (int i = 0; i < (int)Session["rowCount"]; i++)  
                    AddRow();  
            }          
        } 

Everything works fine, except... the first time I click nothing happens!
Is there any way to solve this issue? Or am I doing it totally wrong?
Vlad
Telerik team
 answered on 28 Oct 2008
1 answer
92 views
Hi,

I have a page with multiple charts. One chart has a drill down map, the others do not have any ActiveRegion information.  However all charts now point to the same map.  The html generated has:
<img ..... usemap="#mapid" ...

This is the same for every chart even those without drill down information.

If I turn session back on then the problem is resolved.

Is there any way I can work around this?   Force the generated html to NOT generate usemap="#mapid" ?

Thanks

Guido Tapia
Ves
Telerik team
 answered on 28 Oct 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?