Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
113 views
Specifically, I need to hide the Insert Image button and associated controls on the Cell Properties tab of the Table Wizard.

I can do it with a simple bit of CSS (I believe), but I need to know how to inject CSS in to that dialog.

Any/all help will be appreciated.

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 11 Nov 2011
1 answer
155 views
In a previous verion of Telerik controls, the following code worked, but it no longer does.  Can anyone help?  Both CustC and CustAN now return a blank value

Private Sub RadGrid2_InsertCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid2.InsertCommand
    Dim editedItem As GridEditableItem = CType(e.Item, GridEditableItem)
    Dim isCustCode As Boolean = False
    'Dim intAutoNumber As Integer = CType(editedItem.FindControl("AutoNumber"), TextBox).Text
    'Dim strActivity As String = CType(editedItem.FindControl("Activity"), TextBox).Text
    Dim MyUserControl As UserControl = CType(e.Item.FindControl(GridEditFormItem.EditFormUserControlID), UserControl)
    Dim CustC As String = CType(MyUserControl.FindControl("rcCustomer"), RadComboBox).Text
    Dim CustAN As String = CType(MyUserControl.FindControl("rcCustomer"), RadComboBox).SelectedValue

The code for the ascx page is as follows:


Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
    dsCustomers.Clear()        
  
Dim strSPName1 As String = ""
          
  
  
        If (Session("SalesPersonID") = "0" And Session("CSRID") <> "0") Or Session("SalesPersonID") = "999" Or Session("EstimatorID") <> "0" Then
            strSPName1 = "GetCustomersActivity"
        ElseIf Session("SalesPersonID") <> "0" Then
            strSPName1 = "GetCustomersActivitySales"
        End If
  
        If strSPName1 = "" Then
            strSPName1 = "GetCustomersActivity"
        End If
  
  Dim cmd1 As New SqlCommand(strSPName1, myConnection2)
        cmd1.CommandType = CommandType.StoredProcedure
  
         
  
        If (Session("SalesPersonID") = "0" And Session("CSRID") <> "0") Or Session("SalesPersonID") = "999" Or Session("EstimatorID") <> "0" Then
        ElseIf Session("SalesPersonID") <> "0" Then
            cmd1.Parameters.Add(New SqlParameter("@SalesPersonID", Session("SalesPersonID")))
        End If
  
  
  
  
  
  
        dtAdapter2.SelectCommand = cmd1
        dtAdapter2.Fill(dsCustomers)
  
        dvCustomers = New DataView(dsCustomers.Tables(0))
  
  
        Me.dvCustomers.AddNew.Item("CustName") = " "
        Me.dvCustomers.AddNew.Item("CustName") = "  "
        Me.dvCustomers.Sort = "CustName"
        Me.dsCustomers.AcceptChanges()
  
        rcCustomer.ClearSelection()
  
        rcCustomer.DataTextField = "CustName"
        rcCustomer.DataValueField = "CustName"
        rcCustomer.DataSource = dvCustomers
        rcCustomer.DataBind()
  
    End Sub
Dimitar Terziev
Telerik team
 answered on 11 Nov 2011
3 answers
201 views
Hi,

I am using Radgrid, I have a colum with the html link upon clicking on that we are opening a radwindow , I have to preserve the rad windows even when the parent Radgrid refreshes ( Postback), I am using asp.net timer control to refresh the grid at a particular interval, as soon as the grid refreshes the windows disappear , Please suggest me how can I preserve the rad window during postback..

we are using DLL version of  2009.1.311.35.

I have done the below code to achieve that.

protected override object SaveViewState()
        {
            Control windowsManager = ctlVariables.FindControl("listPopupManager");
            Control windows = windowsManager.FindControl("variableValue");
            Object basestate =  base.SaveViewState();
            object[] allStates = new object[10];
              
            allStates[0] = windows.Visible;
            return allStates;
        }
  
        protected override void LoadViewState(object savedState)
        {
            if (savedState != null)
            {
                object[] myState = (object[])savedState;
                if (myState[0] != null)
                {
                    string visible = myState[1].ToString();
                } 
            }



Thanks,
Ambuj

Shinu
Top achievements
Rank 2
 answered on 11 Nov 2011
3 answers
218 views
Hi,
I have a project using a RadGrid connected into a DataSourceObject and using paging to select only the necessary
quantity of records that I need to show on a web page. Everything is working fine, except by one situation that I would
like to know if somebody can help me to solve.

When I press the Insert button on grid , it opens a new empty row to edit the fields values, but the page is moved
to the last page of the grid, generating a call to the select method of objectDataSource with the parameters of
startRowIndex and maximumRows to get data from the last records from a table.

How is possible to avoid this behavior, keep on the same page that was been shown before the insert button be pressed ?

Thanks,
Edson
Jayesh Goyani
Top achievements
Rank 2
 answered on 11 Nov 2011
1 answer
105 views
This must be so simple/obvious I can't find it. I have a context menu set up to supply various details on appointments and I need to display these details in a modal popup type of display with an X or OK button to close it.

Is this something I can/should do from Rad Scheduler or should I just make a modal popup external to the control?

Thanks!
Princy
Top achievements
Rank 2
 answered on 11 Nov 2011
1 answer
197 views
Hi im using RadUpload, a few days ago, I get an exception saying "A potentially dangerous Request.Files value was detected from the client", caused by an illegal character (#) in the filename. I don't want to se validateRequest=false on @page directive. I would like to validate filename client side.
How can I do that?
Shinu
Top achievements
Rank 2
 answered on 11 Nov 2011
1 answer
371 views
I have a usercontrol inside a radajaxpanel of my aspx page. I have a datepicker in this usercontrol.
On page load I have made the datepicker visible false as :-
DateRange.EndDateControl.Style.Value = "display: none";
I need to make the datepicker visible true at client side on onclick of checkbox. I have written a call back function as :-
function MakeControlsVisible(CheckBoxControl) {
                 var endDateControl = "<%= DateRange.EndDateControl.ClientID %>";
        var datePicker = document.getElementById(endDateControl);
  
                    if (CheckBoxControl.checked == true) {
                        datePicker.style.display = "block";
                    }
                                   }
Even after making the datepicker style "display:block" , I am not able to see the datepicker on my page. Can you help me what is going wrong?
Princy
Top achievements
Rank 2
 answered on 11 Nov 2011
1 answer
331 views
Hi there,

I am trying to create an editor programmatically.

A part of my code is :

RadEditor _editor = new RadEditor();
/*Document Manager*/
string documentsPath = "Library/Documents/";           
_editor.DocumentManager.UploadPaths = new string[] { documentsPath };
_editor.DocumentManager.ViewPaths = new string[] { documentsPath };
_editor.DocumentManager.DeletePaths = new string[] { documentsPath };
_editor.DocumentManager.SearchPatterns = new string[] { "*.doc,*.txt,*.docx,*.xls,*.xlsx,*.pdf,*.jpg,*.jpeg,*.eps" };
_editor.DocumentManager.MaxUploadFileSize = 104857600;

It is reading the new extensions allowed, but is neither pulling in the old documents uploaded previously via Document Manager, nor is allowing me to upload any other document. I have attached the screen shots. 

Please help!
Somya
Top achievements
Rank 1
 answered on 11 Nov 2011
5 answers
156 views
After checking the demos i have designed a hierarchy with etailtables.I have a textbox in edititemtemplate of detailtable.How can i access the datakeyvalue and show in this textbox in edit mode?
Shinu
Top achievements
Rank 2
 answered on 11 Nov 2011
8 answers
1.3K+ views
Hello,

1. I want to trigger an onclick method in the c# code-behind when the AccountNumber is clicked. I cannot find an attribute or such an event to trigger an onclick method.

<telerik:GridHyperLinkColumn DataNavigateUrlFields="ID"
    DataNavigateUrlFormatString="Page.aspx?id={0}" DataTextField="AccountNumber"
    HeaderText="Account Number" UniqueName="AccountNumber">


Thanks
Mike McMillan
Top achievements
Rank 1
 answered on 11 Nov 2011
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?