Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
113 views
Is it possible to add a title after the check-box in the header of a GridClientSelectColumn?
Ewen
Top achievements
Rank 1
 answered on 12 Apr 2010
1 answer
109 views
Good Morning,

I added a chart control to my page and set the data source. Everything works just fine except one little detail. I set the width property of the chart control to 1000px (height to 500px), disabled visibility of title and legends. Now I have a lot of unsused white space in my control which the chart should fill in.

Have a look at the attached screenshot to see what I mean.

Can I influence the size of a chart inside a control?
Ves
Telerik team
 answered on 12 Apr 2010
7 answers
221 views
Attached image is the error generated when call set_mode(2) with AutoResizeHeight enabled.(I spend few hours to figure out this reason.)

In my application, I use tabstrip to switch editor mode , but when I enabled AutoResizeHeight and call ShowText method in IE, I always encounter some internal errors (no error in Firefox).

    function OnClientTabSelected(tabstrip, args) { 
        var multiPage = $find("<%=mp.ClientID %>"); 
        var tab = args.get_tab(); 
        var editor = getEditor(); // defined in ascx control 
 
        switch (tab.get_index()) { 
            case 0: 
                showHTML(tab, multiPage, editor); 
                break; 
            case 1: 
                showText(tab, multiPage, editor); 
                break; 
            case 2: 
                showSource(tab, multiPage, editor); 
                break; 
        } 
    } 
    function showHTML(tab, multiPage, editor) { 
        editor.set_mode(1); 
        showEditorToolbar(true); 
        if (multiPage.get_selectedIndex() != 0) 
            multiPage.set_selectedIndex(0); 
    } 
 
    function showText(tab, multiPage, editor) { 
        editor.set_mode(2); 
        //OnClientModeChange(editor); 
        showEditorToolbar(true); 
        if (multiPage.get_selectedIndex() != 0) 
            multiPage.set_selectedIndex(1); 
        //multiPage.set_selectedIndex(tab.get_index()); 
    } 

Rumen
Telerik team
 answered on 12 Apr 2010
1 answer
156 views
We have an edit window with an asp:SqlDataSource and FormView.  When we hit save, the SqlDataSource Updated event checks for exceptions, and if there are none, it injects the Close script for the window:

Inject.Text = "<script>CloseMe()</script>";

 

function CloseMe()  
{<br/> 
var oWindow = GetRadWindow();  
oWindow.argument = 1;  
oWindow.close();  
} 

We recently updated the Telerik controls on our development server. 
What happens on development with this code is that the window does close, but not until after it flashes up a page that says "Navigation to the Webpage has been Cancelled".  On our Production server, which hasn't been updated, it doesn't do that. It just shows the loading panel before it closes. 

I have tried just about all I can think of to remedy this on my end.  I believe it is something happening differently with the IFRAME in the RAD Window or the RAD Panel in the most recent update.

Anyone have any suggestions?

 

Georgi Tunev
Telerik team
 answered on 12 Apr 2010
3 answers
141 views
Hi

I have a Grid with Calculated Columns
- when the user clicks edit button he enters the unit cost of an item.
- then the Item Cost is calculated automaticaly (Number of Pages * Unit Cost).
- Unit Cost is in Orders Table and Number of Pages is on Item Table.
- Everything is working fine except the user has to click two times on Edit to update the Item Cost, as for the first edit the user enters the Unit Cost and by clicking Update the Unit Cost columns updated correctly but the Item Cost column does not and the user needs to click edit again and click update again (without any change) to update the Item Cost Column.

Can the Item Cost update automaticaly when the user clicks update the first time.

here is my SqlDataSource:
-----------------------------------------------------
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"
        ConnectionString="<%$ ConnectionStrings:OrderSystemConn %>"
        DeleteCommand="DELETE FROM [Orders] WHERE [OrderID] = @OrderID"
        InsertCommand="INSERT INTO Orders(DaysLeft, StatusID, ItemCost) VALUES (@DaysLeft, @StatusID,)"
        SelectCommand="SELECT Orders.OrderID, Orders.OrderDate, Orders.Quantity, Orders.ManageDate, Orders.OrderSpecs, Orders.ManageSubmit, Orders.ManageComment, Orders.DaysLeft, Orders.FinishDate, Orders.ItemID, Orders.StatusID, Status.StatusName, Orders.SupplierID, Division.DivisionName, Category.CategoryName, Type.TypeName, Item.FullCode, Version.VersionName, Orders.UnitCost, Orders.ItemCost, Orders.TotalCost, Item.PagesNumber FROM Orders INNER JOIN Status ON Orders.StatusID = Status.StatusID INNER JOIN Item ON Orders.ItemID = Item.ItemID INNER JOIN Category ON Item.CategoryID = Category.CategoryID INNER JOIN Division ON Item.DivisionID = Division.DivisionID INNER JOIN Type ON Item.TypeID = Type.TypeID INNER JOIN Version ON Item.VersionID = Version.VersionID WHERE (Orders.ManageSubmit = 1) AND (Orders.StatusID &lt;&gt; 3) AND (Orders.SupplierID = 2) ORDER BY Orders.FinishDate"         
        
        UpdateCommand="UPDATE Orders SET UnitCost = @UnitCost,  ItemCost = Orders.UnitCost * Item.PagesNumber FROM Orders INNER JOIN Item ON Orders.ItemID = Item.ItemID WHERE (Orders.OrderID = @OrderID)">
        <DeleteParameters>
            <asp:Parameter Name="OrderID" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="UnitCost" />
            <asp:Parameter Name="OrderID" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="DaysLeft" />
            <asp:Parameter Name="StatusID" />
        </InsertParameters>
    </asp:SqlDataSource>
-------------------------------------------------------
grand lorie
Top achievements
Rank 1
 answered on 12 Apr 2010
2 answers
84 views
Hi,

I was wondering why we are able to edit and delete only, but I don't see insert? maybe I'm new to this but can someone guide me if I can insert without coding because I'm running out of time to do coding.

Mike Arasteh
Top achievements
Rank 1
 answered on 12 Apr 2010
1 answer
137 views
hi

i want to ask how cn i change the default image of the hierarchy expand image button?

thanks

regards
webster
Shinu
Top achievements
Rank 2
 answered on 12 Apr 2010
1 answer
222 views
Hello,
Is it possible to do the following?

I am building my grid from code behind dynamically, i need to do 2 things:
1. After i draw the grid, i need to write specific data by (Client/Category)
2. When i click on a specific cell it should open a window that will pass the Client and Category of the clicked cell to the window.

I'm attaching the code i'm using

<

 

telerik:RadGrid ID="RadGrid1" Width="100%" runat="server" CellPadding="0" AutoGenerateColumns="false" GridLines="Both"  HorizontalAlign="NotSet" ClientSettings-AllowColumnsReorder="false" ClientSettings-ReorderColumnsOnClient="false"

 

 

 

AllowSorting="false" FilterItemStyle-HorizontalAlign="Center" FilterItemStyle-VerticalAlign="middle"> 

 

 

<clientsettings EnablePostBackOnRowClick="true">

 

<ClientEvents />

 

 

<Selecting AllowRowSelect="True" ></Selecting> 

 

<Scrolling EnableVirtualScrollPaging="true" UseStaticHeaders="True" SaveScrollPosition="true" FrozenColumnsCount="1"/>

 

</clientsettings>  

 

 

<mastertableview borderstyle="None" datakeynames="ClientID1">  

 

</mastertableview>  

 

</telerik:RadGrid> 

 


 

Private Sub Test_Init(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Init

 

Dim dt1 As DataTable = Dac.ExecuteDataTable("usp_rr_admin_pc_getClients", Nothing)

 

 

 

Dim objDT = dt1

 

 

 

 

 

If RadGrid1.Columns.Count > 0 Then

 

 

RadGrid1.Columns.Clear()

 

End If

 

 

objDT.Columns.Add(

"ClientNameAR1", GetType(String))

 

 

 

Dim ogridcolumn As GridBoundColumn

 

 

ogridcolumn =

New GridBoundColumn

 

 

 ogridcolumn.Visible =

True

 

 

 

ogridcolumn.HeaderText = "ClientNameAR"

 

 

 

ogridcolumn.DataField = "ClientNameAR"

 

 

 

ogridcolumn.HeaderStyle.Width = "70"

 

 

 

ogridcolumn.ItemStyle.Width = "70"

 

 

 

ogridcolumn.ItemStyle.BorderColor = Drawing.Color.Black

 

RadGrid1.Columns.Add(ogridcolumn)

 

objDT.Columns.Add(

"ClientID1", GetType(String))

 

 

ogridcolumn =

New GridBoundColumn

 

 

ogridcolumn.HeaderText =

"ClientID"

 

 

 

ogridcolumn.DataField = "ClientID"

 

 

 

ogridcolumn.Visible = True

 

 

 

ogridcolumn.ItemStyle.BorderColor = Drawing.Color.Black

 

RadGrid1.Columns.Add(ogridcolumn)

 

Dim dt3 As DataTable = Dac.ExecuteDataTable("usp_rr_admin_pc_getCategories", Nothing)

 

 

 

For Each drRow As DataRow In dt3.Rows

 

 

 

Dim val As String = drRow.Item("CategoryAR").ToString

 

objDT.Columns.Add(val)

ogridcolumn =

 

New GridBoundColumn

 

ogridcolumn.Visible =

 

True

 

 

ogridcolumn.DataField = val

ogridcolumn.HeaderText = val

ogridcolumn.UniqueName = val

ogridcolumn.HeaderStyle.Width =

"70"

 

 

ogridcolumn.ItemStyle.Width =

"70"

 

 

ogridcolumn.ItemStyle.BorderColor = Drawing.Color.Black

RadGrid1.Columns.Add(ogridcolumn)

 

Dim val1 As String = drRow.Item("CategoryID").ToString

 

objDT.Columns.Add(val1)

ogridcolumn =

 

New GridBoundColumn

 

ogridcolumn.Visible =

 

True

 

 

ogridcolumn.DataField = val1

ogridcolumn.HeaderText = val1

ogridcolumn.UniqueName = val1

ogridcolumn.ItemStyle.BorderColor = Drawing.Color.Black

RadGrid1.Columns.Add(ogridcolumn)

 

Next

 

 

ogridcolumn =

Nothing

 

 

 

Dim dt2 As DataTable = Dac.ExecuteDataTable("usp_rr_admin_pc_getClients", Nothing)

 

 

 

For Each dr As DataRow In dt2.Rows

 

objDR = objDT.NewRow

objDR(

 

"ClientID1") = dr("ClientID")

 

objDR(

 

"ClientNameAR1") = dr("ClientNameAR")

 

objDT.Rows.Add(objDR)

 

 

Next

 

 

dt2.Dispose()

dt2 =

Nothing

 

 

RadGrid1.DataSource = objDT

RadGrid1.DataBind()

objDT.Dispose()

objDT =

Nothing

 

 

RadGrid1.MasterTableView.Dir = GridTableTextDirection.RTL

 

End Sub

 

 


Shinu
Top achievements
Rank 2
 answered on 12 Apr 2010
1 answer
85 views
Hi, I've been using radwindow for a while and mostly happy with the product.
However, i got a compatibility issue now with silverlight in radwindow that IE loads fine and chrome doesn't.

Example url

click slideshow

in IE, it works everytime, firefox, works most of the time, and Chrome, it load blank page when I ctrl-F5 pressed, but works first time
Georgi Tunev
Telerik team
 answered on 12 Apr 2010
0 answers
53 views
At this moment I'm using the following configuration:

- vs2008
- ASP.NET 3.5
- Windows XP sp2
- IIS 5.1/6.0
- Deploying using   WebDeploymentProject
- Telerik

I'm deploying with no problem into :
- windows 2003 server
- IIS6.0

But I need to deploy the same app into this:
- Windows 2008 server standard
- IIS7

In the first attempt I use the same technique, but it doesnt work :(.  Saying I need to remove from each page the attribute autoeventwireup="true"

Can anybody help me to share the right technique for deploying a web site from an scenario like this?

Thanks everybody.




benitolopez_sistemas
Top achievements
Rank 1
 asked on 11 Apr 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?