Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
262 views
Hello
I have a radgrid with 2 levels.
When I insert in the second level (detail view), I update one field from the record in the mastertableview. As the radgrid is not refreshed I need to use the radgrid.rebind() method. But this method collapse my row. I would like to keep the expanded row expanded. So I would like to know if it's possible to expand a row which I know the key value from code behind?
Maybe there is a solution better than that...Any suggestion would be really appreciated!
Thank you!
Myriam
Shinu
Top achievements
Rank 2
 answered on 12 Jun 2009
0 answers
81 views
I have a pie chart with 3 dataseries (3 pies). Each pie chart represent answers for question. Each part of each pie chart represent same data (promotor, passive, detractor). Actually I'm able to have only one legend (because legend is the same for all charts) but i can't display for each pie chart what is the question ? What I want ideally is to have on title over each pie chart to show question title. Is it possible ?
ericc34
Top achievements
Rank 1
 asked on 12 Jun 2009
4 answers
197 views
Hi !!

I don't know if I'm the only one to have this problem (I found nothing in the forum), but it seems to be a bug in the DateTimePicker.

With FF3, when I use a DateTimePicker, I can't change the minutes by writing them in the textbox. If I do so, the value is not saved : if I do a postback or if I give the focus to the control again, the old value come back.

I don't know if that can help, but I've also noticed that the style "focused" doesn't leave the control once it got it.

I have the Q1 2009 version of Telerik controls and the latest version of Firefox.
It was tested on a page with no other control.
It works well on IE8 and Chrome2.0.

Do anyone knows a way to correct that ??

Thanks a lot !!
Mark Griebling
Top achievements
Rank 1
 answered on 11 Jun 2009
3 answers
142 views
I would like to provide a gridview for the user to enter graph data and then I would like the data to show up in a RADChart.  Anyone have a sample similar to this?

Any help would be appreciated
Cindie Tenneson
Top achievements
Rank 1
 answered on 11 Jun 2009
2 answers
127 views
can this be done? I know public shared functions can be referenced and called from client scripts as a web-service but that makes it nearly impossible to call the grids databind method.
is there a solution?
scott
Top achievements
Rank 1
 answered on 11 Jun 2009
1 answer
124 views
I have a RadEditor on a page in a password secured admin section of my website. When I load the page, I am loading the content from my SQL Server 2005 database. Any image included in the content comes up as a red x instead of displaying the image. If I go into the image manager and replace it, the image shows up fine until the page is reloaded, then it goes back to the red x. When I load the content into my home page, the images display correctly (I use an asp repeater control). How do I fix the red x issue in rad editor?

aspx code:
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                    </telerik:RadScriptManager>                   
              
              <span class="home_intro">Page Content:</span><br />
                <telerik:radeditor ID="redPageContent" runat="server" Height="1050px"
                Width="576">
                    <ImageManager UploadPaths="~/assets/images" ViewPaths="~/assets/images" />
                                        <Content></Content>
                </telerik:radeditor>

c# code:
protected void GetText()
    {
        string ID = Request.QueryString["ID"].ToString();
        // Set variables & db connection
        DataTable objDs = new DataTable();
        SqlConnection myConnection = new SqlConnection(ConfigurationManager.ConnectionStrings["CMI"].ConnectionString);
        SqlDataAdapter da = new SqlDataAdapter("SELECT ContentDesc, ContentSidebar, ContentPage, ContentSubPage FROM tblContent WHERE ContentID=" + ID + ";", myConnection);
        myConnection.Open();
        da.Fill(objDs);
        if (objDs.Rows.Count > 0)
        {
            DataRow myRow = objDs.Rows[0];
            redPageContent.Content = myRow["ContentDesc"].ToString();
            redSidebarContent.Content = myRow["ContentSidebar"].ToString();
            lblPageName.Text = myRow["ContentPage"].ToString() + " - " + myRow["ContentSubPage"].ToString();
        }
        myConnection.Close();

    }
Shelley
Top achievements
Rank 1
 answered on 11 Jun 2009
1 answer
104 views
Hello group,
ASP.NET 2.0, VISTA, IE 7.0.5730.13, ASPNET AJAX Q1 2009, prefer VB.NET

I have a grid that I have bound to an ILIST of custom business objects and want to use the radGrid's paging ability with it.

I've gotten the grid to bind and load the first page.  Everything looks great.

When I click on the pager to move to the next page i get a callback (i'm using the RadAjaxManager) the callback happens and the grid dissapears.

I know this isn't a ton of great information but i'm frankly not sure where to start looking.

Any guidance on where to start troubleshooting this?

Many thanks
Will


Daniel
Telerik team
 answered on 11 Jun 2009
1 answer
119 views
I posted earlier about the conditional change of colors for rows but specifically the issue is the values are coming up as a html space.
The value of the data-bound cells are Boolean so how do i get the value on databind when they are essentially now checkboxes?
really stuck here, any help would be appreciated.

If (TypeOf (e.Item) Is GridDataItem) Then 
                'Get the instance of the right type 
                Dim dataBoundItem As GridDataItem = e.Item 
'how do i get the value of the Boolean databound column??? 
'this does not work - it only produces a string of "&nbsp;" 
if dataBoundItem("Ready").Text = x then 
end if 
 
End If 


UPDATE: figured it out. for those looking for a solution. 
If (TypeOf (e.Item) Is GridDataItem) Then 
                'Get the instance of the right type 
                Dim dataBoundItem As GridDataItem = DirectCast(e.Item, GridDataItem) 
                Dim cbPause As CheckBox = dataBoundItem("Pause").Controls.Item(0) 
'get val of check box 
 
end if 
Daniel
Telerik team
 answered on 11 Jun 2009
1 answer
89 views
Hello,

I have a grid that i wish to export ot excel.
The code is seemingly straight forward

 

protected void Button1_Click(object sender, EventArgs e)
        {
            radDeferredIncome.ExportSettings.IgnorePaging = true;
            radDeferredIncome.ExportSettings.OpenInNewWindow = true;
            radDeferredIncome.ExportSettings.ExportOnlyData = true;
            radDeferredIncome.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML;
 
            radDeferredIncome.MasterTableView.ExportToExcel();
        }

The problem is any column that is of type string does not show up in excel.  All the bounnd and numeric columns that have a type of Int32 do.  Has anyone else had this issue?  Is there a fix?


Thanks

John

 

Daniel
Telerik team
 answered on 11 Jun 2009
1 answer
201 views
I am trying to change the rows back and foreground color based on data gleaned from cells. I have tried the below code but the cell data being returned is "&nbsp;" not the Boolean i was expecting from the sql data bound cells.

what am i doing wrong?

Private Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemDataBound 
        Try 
            If (TypeOf (e.Item) Is GridDataItem) Then 
                'Get the instance of the right type 
                Dim dataBoundItem As GridDataItem = e.Item 
 
                Debug.WriteLine(dataBoundItem("pause").Text) 
                Dim rclr As Drawing.Color 
                Dim tclr As Drawing.Color 
                If dataBoundItem("pause").Text = True Then 
                    rclr = Drawing.Color.DarkOrange 
                    tclr = Drawing.Color.Black 
                    GoTo RowSet 
                End If 
                If dataBoundItem("ready").Text = True And dataBoundItem("run").Text = True And dataBoundItem("done").Text = True Then 
                    'done 
                    rclr = Drawing.Color.Black 
                    tclr = Drawing.Color.Gray 
                ElseIf dataBoundItem("ready").Text = True And dataBoundItem("run").Text = True And dataBoundItem("done").Text = False Then 
                    'running  
                    rclr = Drawing.Color.DarkSalmon 
                    tclr = Drawing.Color.Black 
 
                ElseIf dataBoundItem("ready").Text = True And dataBoundItem("run").Text = False And dataBoundItem("done").Text = False Then 
                    'ready 
                    rclr = Drawing.Color.DarkOliveGreen 
                    tclr = Drawing.Color.Black 
                Else 
                    'not set, dont change a thing, well maybe do it incase 
                    rclr = Drawing.Color.Black 
                    tclr = Drawing.Color.White 
                End If 
RowSet: 
                Dim Row As TableRow 
                Row = CType(e.Item, TableRow) 
                Row.BackColor = rclr 
                Row.ForeColor = tclr 
            End If 
 
        Catch ex As Exception 
 
        End Try 
    End Sub 
 
Daniel
Telerik team
 answered on 11 Jun 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?