Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
109 views
I want to add a dropdown for tokens to a radeditor.  However, when I do this

<telerik:RadEditor runat="server" ID="BodyEditor" >
                    <Tools>
                        <telerik:EditorToolGroup>
                             <telerik:EditorDropDown Name="Tokens" Text="Tokens">
                             </telerik:EditorDropDown>
                        </telerik:EditorToolGroup>
                    </Tools>
                    <Content>
                    </Content>
                </telerik:RadEditor>

the formatting toolbar and others no longer appears.  I only want to add my custom dropdown, not replace the default toolbar.
Rumen
Telerik team
 answered on 10 May 2011
4 answers
556 views
how to clear the radgrid .after bind the record

SqlConn = ObjDBHelp.GetOpenConnection();

            DataTable dt1 = new DataTable();
            DataTable dt2 = new DataTable();
            SqlDataAdapter sqladp = new SqlDataAdapter();

            try
            {
                if (showinactive == "0")
                {
                    string selectQuery = "SELECT AssetName, SerialNumber, Asset_UserID,Asset_Inactive FROM [Assets] where Asset_Inactive>0 order by AssetName asc";
                    sqladp.SelectCommand = new SqlCommand(selectQuery, SqlConn);
                    sqladp.Fill(dt1);
                    int i = dt1.Rows.Count;
                    dt1 = null;

                    if (i > 0)
                    {
                        selectQuery = "SELECT a.AssetID,a.AssetName,a.SerialNumber,a.Asset_UserID,b.ppl_Name,a.Asset_Inactive FROM [Assets] a , People b " +
                                      "where a.Asset_UserID=b.PeopleID  order by AssetName asc";
                        sqladp.SelectCommand = new SqlCommand(selectQuery, SqlConn);
                        sqladp.Fill(dt2);
                        GridColumn chkbox = RadGrid1.MasterTableView.GetColumnSafe("Asset_Inactive");
                        chkbox.Visible = true;
                    }
                    else
                    {
                        selectQuery = "SELECT a.AssetID,a.AssetName,a.SerialNumber,a.Asset_UserID,b.ppl_Name,a.Asset_Inactive FROM [Assets] a , People b " +
                                      "where a.Asset_UserID=b.PeopleID  order by AssetName asc";
                        sqladp.SelectCommand = new SqlCommand(selectQuery, SqlConn);
                        sqladp.Fill(dt2);
                        RadGrid1.DataSource = dt2;
                        RadGrid1.DataBind();
                        GridColumn chkbox = RadGrid1.MasterTableView.GetColumnSafe("Asset_Inactive");
                        chkbox.Visible = false;
                    }
                }
                else
                {
                    string selectQuery = "SELECT AssetName, SerialNumber, Asset_UserID,Asset_Inactive FROM [Assets] where Asset_Inactive>0 order by AssetName asc";
                    sqladp.SelectCommand = new SqlCommand(selectQuery, SqlConn);
                    sqladp.Fill(dt1);
                    int i = dt1.Rows.Count;
                    dt1 = null;

                    if (i > 0)
                    {
                        selectQuery = "select  a.AssetID,a.AssetName,a.SerialNumber,a.Asset_UserID,b.ppl_Name,a.Asset_Inactive FROM [Assets] a , People b  " +
                                            "where a.Asset_UserID=b.PeopleID and a.Asset_Inactive=1 order by AssetName asc";
                        sqladp.SelectCommand = new SqlCommand(selectQuery, SqlConn);
                        sqladp.Fill(dt2);
                        showinactive = "0";
                    }
                }
                RadGrid1.DataSource = dt2;
                Session["AssetList"] = dt2;
            }
            finally
            {
                ObjDBHelp.CloseConnection(SqlConn);
                dt2 = null;
            }

Thanks,
Mohamed .
mohamed
Top achievements
Rank 1
 answered on 10 May 2011
1 answer
103 views
Hi All,

  I have two Rad listboxes on my web page. I can move the items from one list box. when I transfer the items from lefts side listbox to right side one, the value from left listbox are gone to the right listbox so everthing is working as I want it to be. when I save the listbox with the selected value and display the listbox again after running the web site again, the values that I selected are shown on the right side, but the same values are also shown on the left side. Is their any way I can exclude the values that are on the right side of the listbox not to be displayed on the left side of the listbox.
Shinu
Top achievements
Rank 2
 answered on 10 May 2011
4 answers
134 views
I'm using this control in a webpart and I can upload a file with no problem but if I try to delete or create a new folder the events do not fire.

I've already configured the control as shown in this blog post and I can not make this work.

Can anyone please help me with this issue?

Best Regards,
Rahul
Top achievements
Rank 1
 answered on 10 May 2011
2 answers
179 views
Hi

I am attaching a image. I want to do similarly using Radchart control. Is it possible to do?

Regards
Arima
Arima
Top achievements
Rank 1
 answered on 10 May 2011
3 answers
92 views
Hi,

I'm having a problem with RadCharts. When I try to display a chart with around 50 rows of data, the loading image stays in the middle of the chart even if the chart is already completed loading as shown in the attached image.

Anyone? thanks.

Web team
Top achievements
Rank 1
 answered on 10 May 2011
4 answers
246 views
Hi All,

I am using rad grid with filtering (AllowFilteringByColumn="true").
I have "GridDateTimeColumn" with header filter.
What I want to do is to highlight the current date in calendar of grid filter date picker.
How can I do this?
I have used following to access the date picker, But it did not work.
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridFilteringItem)
        {
            GridFilteringItem item = e.Item as GridFilteringItem;
            RadDatePicker picker = item.FindControl("RadDatePicker1") as RadDatePicker;
        }
    }

Please give me a solution.

Thanks & Regards,
Madu
Marc Fearby
Top achievements
Rank 1
 answered on 10 May 2011
1 answer
86 views
Hi,

I have a chart that can have small values, say 1 or 2, but it can go up to the hundreds as well. This is dynamic total data and there is no defined upper limit to this, but they are all integer. I've noticed that for these small values, the RadChart seems to insert some intermediate values into the series even if there are no such values in the DataTable datasource. Is there a way to prevent RadChart from doing this?

Attached is a sample screenshot of the intermediate values inserted. Only the value 2 is set in the datasource, we can live with the value "1" but none of those having decimal places. Any assistance on this would be greatly appreciated. Thanks!
Gimmik
Top achievements
Rank 1
 answered on 10 May 2011
1 answer
177 views

Hi 
i have a problem with this code in a master page.  
<link href="<%=ResolveUrl("~/App_Themes/SkinSistema.css")%>" rel="stylesheet" type="text/css" />

before telerik, this work perfectly, but i have incorporate telerik RadScriptManager and then does not work.
this is my error:
"La colección de controles no puede modificarse porque el control contiene bloques de código (por ej. <% ... %>)."

i need help.
thk

Fernando
Top achievements
Rank 1
 answered on 09 May 2011
1 answer
101 views
Hi there, im trying the telerik controls, and i wanted to know if is possible to trigger an alert after uploading a file in edititem template.


this is my code-behind


Protected Sub rgOferta_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles rgOferta.ItemDataBound
If
TypeOf e.Item Is GridEditFormItem AndAlso e.Item.IsInEditMode Then
            'popup&editform
            Dim edititem As GridEditFormItem = DirectCast(e.Item, GridEditFormItem)
            Dim RadUpload1 As RadUpload = DirectCast(edititem.FindControl("RadUpload1"), RadUpload)
            Dim btns As Button = e.Item.FindControl("btnPrueba")
             Dim estado As String = ""
            If Not btns Is Nothing Then
                If Not RadUpload1 Is Nothing Then
                    estado = UploadFile(RadUpload1)
                    btns.OnClientClick = "showAlert('" & estado & "'); return false;"
                                       
                End If
            End If
        End If
end sub



And this is my javascript which is quite simple.
   function showAlert(valor) {
      alert(valor);
    }

Im using radajaxmanager to ajaxified radgrid.


any help would be appreciated.


regards
Gimmik
Top achievements
Rank 1
 answered on 09 May 2011
Narrow your results
Selected tags
Tags
+124 more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?