Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
162 views
I'm in need of an OnClientClose event for the ColorPicker, but do not see one.  Does anyone know if this exists or a similar clientSide event I can use?

Erik
Top achievements
Rank 1
 answered on 01 Jul 2014
1 answer
72 views
Hello All, 
I am getting some issue with here is my code

See attached , i have aspx, VB page along with the ERROR, also screen short after F12
, exception is 
Uncaught TypeError: Cannot set property 'control' of undefined 

Interesting thing is this same code is basically generating columns based on the query and condition, in some pages it's really work but in some case not , and from the error when i go to the source i found it's date picker also on load this exception happen , and including date picker no ajax is working even loader , row filter all, 


Please help as soon you can 


























Mahaarajan
Top achievements
Rank 1
 answered on 01 Jul 2014
1 answer
72 views
Hi

I have a radFileExplorer control which displays documents and media files.
when i open mp3 files through the radFileExplorer then a popup window play mp3 file , its work fine.
but when i open  mp4 files through the radFileExplorer then a popup window display "404 - File or directory not found", but mp4 files are already exits.
Is this known behaviour and is there anything I can do to stop it? please help me out how can i soolve my issue.

Thanks
Vessy
Telerik team
 answered on 01 Jul 2014
1 answer
174 views
Hello All

We've had this problem since we started using the Telerik controls, and I was hoping for a fix.

ANY control we use comes with the Telerik.web.ui dll or xml file. 
When we try and publish a site we get an access denied on either the dll or the xml file.  This locks up Visual Studio 2010 and causes us to have to reboot.  Stopping the devenv.exe *32 process is not an option, because we can not kill it off.  We get Access Denied, and have to reboot our PC's
We are all domain admins and local admins so this doesn't seem to be a security issue.

This happens when we build web sites, or web applications.

We have tried publishing to the local machine.  That works, then hand copying to the server.  Most of the time the copy hangs on the Telerik.Web.UI.xml file.  Sometimes it's the .dll, and locks up file explorer.

Any and all help would be great as my developers are about to abandon using your controls.

Thanks

Gary
Ianko
Telerik team
 answered on 01 Jul 2014
1 answer
153 views
In my radgrid I want to delete and store the deleted rows in a separate table.
I get an empty string as value where I use a GridAutoCompleteColumn.
The value I want is ItemNo.
<telerik:GridBoundColumn DataField="Whs" FilterControlAltText="Filter Whs column"
                    HeaderText="Whs" SortExpression="Whs" UniqueName="Whs">
                </telerik:GridBoundColumn>
                <telerik:GridAutoCompleteColumn DataTextField="ItemNo" DataValueField="ItemNo" DataField="ItemNo"
                    DataSourceID="sqlDS_mitmas" Filter="StartsWith" InputType="Text" HeaderText="ItemNo" UniqueName="ItemNo">
                </telerik:GridAutoCompleteColumn>
Protected Sub RadGrid1_ItemDeleted(sender As Object, e As Telerik.Web.UI.GridDeletedEventArgs) Handles RadGrid1.ItemDeleted
 
        Dim dataItem As GridDataItem = CType(e.Item, GridDataItem)
 
        Dim whs As String = dataItem("Whs").Text
        Dim itemno As String = dataItem("ItemNo").Text
        Dim itemname As String = dataItem("ItemName").Text
        Dim deletedby = User.Identity.Name.ToString()
 
        InsertHistory(whs, itemno, itemname, deletedby)
 
    End Sub
itemno is empty, how can i get it/fetch it?
Kostadin
Telerik team
 answered on 01 Jul 2014
3 answers
185 views
I can do dynamic server-side column groupings ONCE, but then can't get the grid to 're-set' for different groupings unless I change the AutoGenerateColumns to FALSE & generate the columns on the server-side.

The SECOND time (when a new Start Date is selected), I get the error: "No column group with the specified group name ( Mon_06-23 ) exists!"
(where Mon_06-23 is an 'old' grouping from the previous viewing)

Apparently I am not doing enough to "clear out the grid" before re-generating it with new Column Groupings.

My grid HTML is:

<telerik:RadGrid ID="RadGridWkSched" runat="server" CellSpacing="0" GridLines="Vertical" AutoGenerateColumns="True"
    OnItemDataBound="RadGridWkSched_ItemDataBound" OnColumnCreated="RadGridWkSched_ColumnCreated">
</telerik:RadGrid>

My Server-side code is:

        private void FillScheduleWeekGrid()
        {
            // get the Start date from the input control
            DateTime dtstart = DateTime.Parse(RadDatePickerWeek.SelectedDate.ToString());

            // clear out the grid before re-populating it
            currentSection = "";
            RadGridWkSched.Columns.Clear();
            RadGridWkSched.MasterTableView.ColumnGroups.Clear();

            for (int i = 0; i < 7; i++)
            {
                DateTime thisdt = dtstart.AddDays((double)i);
                string weekDate = thisdt.ToString(ScheduleController.DateFormat);

                // declare a column group for this date
                GridColumnGroup colGroupDate = new GridColumnGroup();
                RadGridWkSched.MasterTableView.ColumnGroups.Add(colGroupDate);   // need to add it before setting the values
                colGroupDate.Name = colGroupDate.HeaderText = weekDate;
                colGroupDate.HeaderStyle.HorizontalAlign = HorizontalAlign.Center;
            }
            RadGridWkSched.DataSource = scheduleController.FillScheduleWeekDT(dtstart, serviceLevelID, Session["version"].ToString());
            RadGridWkSched.DataBind();
            }
        }






Viktor Tachev
Telerik team
 answered on 01 Jul 2014
5 answers
403 views
Hello ! I have RadGrid with PDF exporting button on my page. All fonts on the page are "SegoeUI" and in the RadGrid too, but when I export grid data to PDF document the fonts in the table becomes like "Times New Roman"..  

Tryied to add styles to RawHtml on PdfExporting event but nothing happened. 
Travis
Top achievements
Rank 1
 answered on 01 Jul 2014
4 answers
239 views
Hi 
   I currently have a 2 level tree view that displays departments and then assets within those departments. To do this I am using a sql stored procedure to prepare the data. See the attatched file to see the output of this stored procedure. I am then using the following c# code to bind the tree view.  
DataTable assets = new DataTable();
 
          using (SqlConnection connection = new SqlConnection(ConnectionString))
          {
              using (SqlCommand command = new SqlCommand("GetAssetHierarchyByUserId", connection))
              {
                  command.Parameters.Add(new SqlParameter("UserId", UserId));
 
                  command.CommandType = CommandType.StoredProcedure;
 
                  SqlDataAdapter adapter = new SqlDataAdapter(command);
 
                  connection.Open();
 
                  try
                  {
                      adapter.Fill(assets);
                  }
                  finally
                  {
                      connection.Close();
                  }
              }

My Question is, how do I go about adding another level of data to the tree. I want to now display SITES, that have Departments that have Assets. I.E I want to add a grand parent. what would be the correct schema for my stored procedure output to achieve this. 

Thanks
   Dave
tafi
Top achievements
Rank 1
 answered on 01 Jul 2014
5 answers
1.1K+ views
Hello,

There is a way to disable insert row in radgrid from codebehind if it matches some criteria? 
also, i found a way to disable GridEditCommandColumn, but it disables the two buttons, i only want to disable one.

thanks in advance
MikeS
Top achievements
Rank 1
 answered on 01 Jul 2014
4 answers
102 views
Hi,

I am using version 2013.3.1114.35 of your ASP.NET for AJAX controls.

In the past, you have implemented the following awesome workaround, to allow a custom header to be exported, when exporting from a grid.

protected void RadGrid1_GridExporting(object source, GridExportingArgs e)
 {
     string customHeader = "<table><tr><td>CUSTOM HEADER</td></tr></table>";
     e.ExportOutput = e.ExportOutput.Replace("<table cellspacing", customHeader + "<table cellspacing");
 }

I implemented that years ago and it had been working for a long time.  However, it no longer works.  The code runs without error, but the Custom Header is NOT exported.  Only the report data is exported...

For us I don't know exactly when it broke, but I would suspect it was when we upgraded to 2013.3.1114.35.  

Q.  Can you confirm this?
Q.  Can you suggest a "fix"?  Perhaps I just need a different customHeader string???

Any help is appreciated.

Regards,
Michael
Kostadin
Telerik team
 answered on 01 Jul 2014
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?