Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
91 views

Hello,

i have a radchart in my page.... The X-Axis values i am getting from database. since the values are large, so they are overlapping with graph when i set rotaion to 90 degree. Kindly let me know the solution.

Here i have attached a pic of that.

Thanks,,,,

Velin
Telerik team
 answered on 15 Mar 2010
2 answers
98 views
Dear Telerik-Team,

I have two datetimepickers on my webpage. One for a start date and the other one for the end date. Now I want to calculate the timespan between both dates and disply the result in a radtextbox on the client side (so without any postback).

I don't have any idea which javascript methods I should use to achieve this goal, so could you please provide me with a sample? I performed some tests with e.get_newDate().toDateString() but didn't come to a satisfying result.

I a looking forward to hering from you,
Kind regards,
Marco
Marco
Top achievements
Rank 1
 answered on 15 Mar 2010
1 answer
98 views
HI there,

I need to access the radgrid fields after an update event.

I thought this I could use either GridDataItem or GridEditableItem.
However, the code below just returns &nbsp into UserName and UserID.



protected void grdUsers_ItemUpdated(object source, GridUpdatedEventArgs e) 
    { 
        string userName; 
        string userID; 
 
        if (e.Item is GridEditableItem) 
        { 
            GridEditableItem gridEditDataItem = e.Item as GridEditableItem; 
             
            userName = gridEditDataItem["UserName"].Text; 
            userID = gridEditDataItem["UserID"].Text; 
        } 
 
        if (e.Item is GridDataItem) 
        { 
            GridDataItem gridDataItem = e.Item as GridDataItem; 
             
            userName = gridDataItem["UserName"].Text; 
            userID = gridDataItem["UserID"].Text; 
        } 
    } 

What am I doing wrong?

Thanks for any help

Richard
Princy
Top achievements
Rank 2
 answered on 15 Mar 2010
1 answer
126 views
hi

im having a poblem when i try to expand my childtable on my data grid..

to be clear i have a prob on itemdatabound event


        If TypeOf e.Item Is GridDataItem Then 
            Dim dataItem As GridDataItem = DirectCast(e.Item, GridDataItem) 
            Dim DateDiff As Int32 = Convert.ToInt32(dataItem("colDTDIFF").Text) 
            If DateDiff <= 30 Then 
                dataItem.BackColor = Drawing.Color.IndianRed 
            ElseIf DateDiff <= 60 Then 
                dataItem.BackColor = Drawing.Color.Yellow 
            ElseIf DateDiff <= 90 Then 
                dataItem.BackColor = Drawing.Color.SpringGreen 
            End If 
        End If 
    End Sub

Dim DateDiff As Int32 = Convert.ToInt32(dataItem("colDTDIFF").Text) --> erro from this line


here my aspx code:
                   <telerik:RadGrid ID="grdCrediti" DataSourceID="objDSScont" runat="server" Width="99.7%" 
                        AutoGenerateColumns="False" PageSize="15" AllowSorting="True" AllowPaging="True" ShowHeader="true" 
                        GridLines="None" ShowStatusBar="true" AllowAutomaticUpdates="true"
                        <PagerStyle Mode="NumericPages"></PagerStyle> 
                        <MasterTableView DataSourceID="objDSScont" AllowMultiColumnSorting="True" 
                            Width="100%" DataKeyNames="CODICE"
                            <Columns> 
                                <telerik:GridBoundColumn SortExpression="DESCRIZIONE" HeaderText="Servizio" DataField="DESCRIZIONE" UniqueName="colDESCRIZIONE"
                                </telerik:GridBoundColumn> 
                                <telerik:GridBoundColumn SortExpression="DTORDINE" HeaderText="Data Ordine" DataField="DTORDINE" UniqueName="colDTORDINE"
                                </telerik:GridBoundColumn>    
                                <telerik:GridBoundColumn SortExpression="DTSCADENZA" HeaderText="Data Scadenza" DataField="DTSCADENZA" UniqueName="colDTSCADENZA"
                                </telerik:GridBoundColumn>  
                                <telerik:GridBoundColumn HeaderText="Giorni Residui" DataField="DTDIFF" UniqueName="colDTDIFF" AllowSorting="false"
                                </telerik:GridBoundColumn>                                                                                       
                            </Columns> 
                            <DetailTables> 
                                <telerik:GridTableView AutoGenerateColumns="false" Caption="Dettaglio Servizi" AllowSorting="false" 
                                    DataSourceID="objDETT" Width="100%" PageSize="7"
                                    <ParentTableRelation> 
                                        <telerik:GridRelationFields DetailKeyField="CODICE" MasterKeyField="CODICE" /> 
                                    </ParentTableRelation> 
                                    <PagerStyle AlwaysVisible="false" /> 
                                    <Columns> 
                                        <telerik:GridBoundColumn SortExpression="DESCRIZIONE" HeaderText="Descrizione" DataField="DESCRIZIONE" UniqueName="colDESCRIZIONE"
                                        </telerik:GridBoundColumn> 
                                        <telerik:GridBoundColumn SortExpression="QUANTITA" HeaderText="Ordinato" DataField="QUANTITA" UniqueName="colQUANTITA"
                                        </telerik:GridBoundColumn>    
                                        <telerik:GridBoundColumn SortExpression="QUANTITAINS" HeaderText="Utilizzato" DataField="QUANTITAINS" UniqueName="colQUANTITAINS"
                                        </telerik:GridBoundColumn>    
                                        <telerik:GridBoundColumn SortExpression="RESIDUO" HeaderText="Residuo" DataField="RESIDUO" UniqueName="colQUANTITAINS" AllowSorting="false"
                                        </telerik:GridBoundColumn>  
                                        <telerik:GridBoundColumn HeaderText="Giorni Residui" DataField="DTDIFF" UniqueName="colDTDIFF" visible="false"
                                        </telerik:GridBoundColumn>                                                                                                                            
                                    </Columns> 
                                </telerik:GridTableView> 
                            </DetailTables>                             
                        </MasterTableView> 
                    </telerik:RadGrid> 

need answer asap

thanks

regards
webster



Princy
Top achievements
Rank 2
 answered on 15 Mar 2010
2 answers
152 views
Hi

I am trying to popup my custom radwindow ( Radwindow contains one radcombo dropdown and textbox) from editor icon, so after user selected the value from dropdown and put the text, it should paste the html back to the selected text. It works perfect under Firefox, but under IE8, if I click the dropdown or textbox area of the radwindow, the selection is lost.


Rumen
Telerik team
 answered on 15 Mar 2010
2 answers
147 views
Hi,

I have an image gallery admin window, where images can be drag-and-dropped to rearrange their order (see attached screen-shot). It works fine until I drag the last image (right side) on each row. As you can see in image no. 1 the behavior is as expected, while on image no. 2 the images on the following rows are messed-up once I click to drag the last image on the row. The images are rearranged correctly once I drop the selected image. Nevertheless, this mess-up prevents a smooth utilization of the image gallery tool. This behavior is consistent on FF, IE, Safari, and Chrome.

The aspx docking part looks like this:
 <telerik:RadDockLayout ID="radDockLayout1" runat="server"
        <asp:HiddenField ID="hidImages" runat="server" /> 
        <telerik:RadDockZone ID="radDockZone1" runat="server" Orientation="Horizontal" Width="740px" Height="400px">            
        </telerik:RadDockZone> 
    </telerik:RadDockLayout> 

RadDocks are dynamically created on server-side:
Dim radDock As New RadDock 
radDock.ID = "radDock$" & intImageID
radDock.UniqueName = "radDock$" & intImageID
radDock.DockMode = DockMode.Docked 
radDock.DockHandle = DockHandle.None                   
radDock.Width = Unit.Pixel(140) 
radDock.Height = Unit.Pixel(170) 
radDock.OnClientInitialize = "SetHandleDock" 
radDock.OnClientDragEnd = "onDockDragEnd" 
radDock.Style.Value = "margin:2px; text-align:center;" 
Dim lbl As New Label 
lbl.Text = "<div>" 
' Here comes Dock content => image and admin bar 
lbl.Text &= "</div>" 
radDock.ContentContainer.Controls.Add(lbl) 
radDockZone1.Controls.Add(radDock) 

Note that 'onClientDragStart' is not used in this case.

Any ideas on this issue are welcome.

Thanks!
eyal


eyal
Top achievements
Rank 1
 answered on 15 Mar 2010
1 answer
106 views
Hi All,

I have a RadGrid on page, i did not assigned any properties to it, just simply i places a grid on page as below

and generating a a datatable dynamically and binding it to grid,

now my issue is, i want to provide export to excel option on command iten tab on top.

how can i achieve this, please help me.

<telerik:RadGrid ID="RadGrid1" runat="server" > 
</telerik:RadGrid> 
Shinu
Top achievements
Rank 2
 answered on 15 Mar 2010
1 answer
52 views
hi
how can i edit/delete/addnew  items in radgrid control?
Shinu
Top achievements
Rank 2
 answered on 15 Mar 2010
2 answers
112 views
Hi,

I have been evaluating the scheduler component on the website, I am yet to download it and test it. I will be using it to schedule 25 mechanics, there appointments will last between half a day and 2 weeks. I imagine the view would be grouped by resource vertically (like in the attachment).

The one stumbling block I can see is one appointment cannot be scheduled on non consecutive days. Meaning I want the appointment "Training Session 1" to be on the 8th and the 10th, as seen in the attached file. I cannot do it with one appointment, the job will need multiple appointments, correct?

If it does need to multiple appointments for the one job, is it possible to setup a function that would give the users the ability to copy an appointment though a drag and drop?

Cheers,
Grant
G C
Top achievements
Rank 1
 answered on 15 Mar 2010
2 answers
64 views
Hello,


So this is the first time I download and test telerik ASP.NET AJAX. Before I even start to use or run my website that I created using C# I get the attached error before the run time.

I have attached a zip file created by the problem step recorder in windows7, so you can see the images at the buttom of the generated file.

http://zipmyfiles.net/uploads/100308102558-44545.zip



you can notice I can see the calender during the run time but not before that.

I'm using Visual Studio 2008 Academic.

Any idea why I'm getting this error ?

Thanks,
Musab
Musab Alghzawi
Top achievements
Rank 1
 answered on 14 Mar 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?