Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
298 views
I am having trouble checking a checkbox with VB.NET and RadGrid. So far I have been able to confirm that the value is indeed 1, but when I go to have the program check the box, it doesn't show anything.

My VB.NET code looks like this:

Protected Sub myRadGrid_RowDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles myRadGrid.ItemDataBound

            If e.Item.ItemType = DataControlRowType.DataRow Then
                If (System.Web.UI.DataBinder.Eval(e.Item.DataItem, "InLocation")) Then
                    Dim myinLocation As CheckBox = CType(e.Item.FindControl("cbLocationUsed"), CheckBox)
                    myinLocation.Checked = True
                    Dim myinLocation2 As CheckBox = CType(myRadGrid.MasterTableView.FindControl("cbLocationUsed"), CheckBox)
                    myinLocation2.Checked = True
                    myinLocation.DataBind()
                    myinLocation2.DataBind()
                    LoadMyRadGrid()
                End If
            End If

End Sub

What this should be doing, I think think, is taking in the row like a GridView would with RowDataBound and then check its type, evaluate the InLocation field and populate the checkbox if need be. I think threw a few different methods to see if they would solve it. Nothing really happened though. Which one of the methods would I use here? Or am I completely off track.
Alexander
Top achievements
Rank 1
 answered on 05 Jun 2014
2 answers
343 views

I'm having a ton of problems getting RadAjax controls to work.  I've spent the better part of the past 24 hours trying to resolve this with no luck.

I started to receive the error on a website (not a web application).  Single project, no solution file.

Could not load type 'Telerik.Web.UI.RadUploadHttpModule'.

I thought that odd that it started since the previous run didn't have any errors and I don't use the upload module in this website.

I've tried everything to resolve this.

First I deleted anything to do with Telerik and reinstalled.  This did not solve the problem.

Second, I removed all references to Telerik from web.config then manually added them all back in from another website.  This did not solve the problem.

Next, I deleted all the lines referencing the upload module and uploadprogress from web.config.  After doing this I received the following error:

Could not load type 'Telerik.Web.UI.RadCompression'

Next, I deleted all the lines referencing RadCompression from web.config.  After doing this I received the following error:

ASP.NET Ajax client-side framework failed to load.

I have also done the following:

Uninstalled and reinstalled the 4.0 Framework.

Tried the 4.5 Framework

Tried the 4.5.1 Framework

Uninstalled and reinstalled VS 2012

Uninstalled and reinstalled VS 2013

I thought since this was an Ajax issue, I should try other browsers.  I was using IE 10.  I tried Firefox and Chrome and no problems.  Or so I thought.  Since I had removed the references to upload and compression, ajax worked fine.  But once I put back all the Telerik references the errors continued occurred in Firefox.

I then tried a test scenario. 

I created an empty website.

I added one page, default.aspx.

I added Ajax to the site.

I ran the site.  It ran fine.  Blank page rendered (which was expected since there weren't any controls on the page)

I added Telerik to the site.

The same issues occured, first the upload module issue.  I removed the references in web.config.  Then the radcompression issue.  I removed the references in web.config.  Then I received the ajax error.

I uninstalled IE 10.  The errors continued to occur with IE 9 (Windows 7, 64 bit, reverted to IE 9 on uninstall of IE 10).  I installed IE 11.  The errors continued to occur.

We use Telerik 2011.3.1115.40 at work.  A buddy of mine has 2013 Q1 & Q3.  We tried with both of those.  The error occurs in all three versions.

I have tried other websites we have in development and the errors occur in all three.  Only I have the problem.  Nothing has changed on the computer.  Windows Update is not set to automatic.

I am at a complete loss at this point on what to try next.  I am completely at a standstill with my development.

Below is the full error for the upload module.  I can send the test site if needed.  Let me know how.

Server Error in '/' Application.

--------------------------------------------------------------------------------

Could not load type 'Telerik.Web.UI.RadUploadHttpModule'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Could not load type 'Telerik.Web.UI.RadUploadHttpModule'.

Source Error:

 An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

 

Stack Trace:

 [HttpException (0x80004005): Could not load type 'Telerik.Web.UI.RadUploadHttpModule'.]

   System.Web.Compilation.BuildManager.GetType(String typeName, Boolean throwOnError, Boolean ignoreCase) +9670312

   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +38

[ConfigurationErrorsException: Could not load type 'Telerik.Web.UI.RadUploadHttpModule'.]

   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, XmlNode node, Boolean checkAptcaBit, Boolean ignoreCase) +359

   System.Web.Configuration.ConfigUtil.GetType(String typeName, String propertyName, ConfigurationElement configElement, Boolean checkAptcaBit) +19

   System.Web.Configuration.Common.ModulesEntry.SecureGetType(String typeName, String propertyName, ConfigurationElement configElement) +39

   System.Web.Configuration.Common.ModulesEntry..ctor(String name, String typeName, String propertyName, ConfigurationElement configElement) +42

   System.Web.HttpApplication.BuildIntegratedModuleCollection(List`1 moduleList) +160

   System.Web.HttpApplication.GetModuleCollection(IntPtr appContext) +950

   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +82

   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172

   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336

   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): Could not load type 'Telerik.Web.UI.RadUploadHttpModule'.]

   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9913572

   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101

   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

  

--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18408

 

Bruce
Top achievements
Rank 1
 answered on 05 Jun 2014
1 answer
183 views
Hello,

I am using the RadScheduler control with the AdvancedForm pop up and the issue i am having is that even though i have set the Z-index to 10000 (from other Forum threads) I am not able to access my drop downs on the AdvancedForm.

The Z-Index works because the advanced form template is always on top of my other controls no matter where i move it on the screen, but if the controls are not directly over the RadScheduler they are not "Active" or something...

I included a couple of screen shots

allcontrolswork    when the entire AdvancedForm is over the RadScheduler
advancedform_Room_orgno_donotwork    Two of my Resource drop downs are above the grid.
onlyobjectsthatareoverscheduler                Students Text box works, you can enter a number but translator Required drop down does not work, neither does the save or cancel buttons.

The Z-index are as follows

 Radscheduler      200
advancedForm.ascx  main div tag is associated with these CSS styles


<div class="rsAdvancedEdit rsAdvancedModal" style="position: relative">

in scheduler.css I have set these values


.RadScheduler .rsAdvancedEdit .rsAdvTitle {
height: 30px;
position: relative;
z-index: 10000 !important; }



.RadScheduler div.rsAdvancedModal .rsAdvContentWrapper {
position: relative;
z-index: 10000 !important;
background: none;
border-width: 1px 0 0 0; }

It doesnt allow me to attach .css files or my advancedform.ascx so this is all i can share at the moment... if you have seen this error before please let me know.

The strangest thing is it works locally on my machine, its only when i migrate to a Web Server that this doesnt work.

Any Help would be much appreciated...
Janice
Top achievements
Rank 1
 answered on 05 Jun 2014
8 answers
3.2K+ views
1) Do you have an example to display image in a rad window as modal pop-up
2) Display rad window on a image client side click event.

Thanks.
Marin Bratanov
Telerik team
 answered on 05 Jun 2014
1 answer
81 views

We are dynamically creating web pages using VB .Net 4.5.  We are placing the radeditor (we are using Telerik.Web.UI.dll version 2013.1.417.45 which I believe is corresponds to RadControls for ASP.NET AJAX Q1 2013 SP2) on the pages.  On the first page if we perform a spell check and there are no errors we can continue to the second page that is again dynamically created with an instance of the radeditor.  However, if there was an error that the spell check found then the page will not continue to the next page.  One item to note, if an error is found and we try to continue to a second page without the editor it works, however when trying to continue to a third page that has the editor it will not load the page.  We also have noted this behavior if just inserting a symbol into the editor.  Any ideas?

Ianko
Telerik team
 answered on 05 Jun 2014
5 answers
128 views
We're using a localised (nl-NL) version of the editor.

In the table properties dialog, there is the option to bring up a style editor popup.
That dialog has many empty/invisible language strings, eg. most of the dropdowns there seem to be empty.

Possibly this is because of missing NL translations?

If so:
1) Why doesn't the dialog display the non-translated english default strings instead of nothing?
2) Which RESX file to we need to translate to get NL language strings for that style editor?

And if this is not because of missing NL translations: what is the cause then?

Ianko
Telerik team
 answered on 05 Jun 2014
2 answers
117 views
I have a grid with a clientselectcolumn that allows multiple row selection. When I check the header check box only the rows on the visible page get checked, not all of the rows for all pages.Is this how the header check box is supposed to work? If so, how do I force it to select all rows for all pages? Also, is there a list of command names that I can trap for in the itemcommand event. I have "RowClick" for single rows but is there one for the header click?

Thanks,
Dennis
dhuss
Top achievements
Rank 1
 answered on 05 Jun 2014
4 answers
686 views
I have tried numerous approaches to prevent the default drop zone that is added by the AsynUpload to the page from showing or firing its drag events but have come up empty handed.  As you can see by looking at my source code:

<div class="ssbUploaderDropZone">
    <asp:Label runat="server" ID="lblTop" CssClass="ssbLabel ssbTopLabel"></asp:Label>
    <telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload" CssClass="ssbImageUploader" DropZones=".ssbUploaderDropZone">
    </telerik:RadAsyncUpload>
    <asp:Label runat="server" ID="lblBottom" CssClass="ssbLabel ssbBottomLabel"></asp:Label>
</div>
<asp:HiddenField runat="server" ID="hdnOrganizationNameFolder" />
<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel" RenderMode="Inline" style="display:none;">
    <%--Provide support for this element when it is updated by RadAjaxManager or RadAjaxPanel--%>
    <telerik:RadScriptBlock runat="server">
        <script>
            AsyncUploader.initialize('<%=this.ClientID%>');
        </script>
    </telerik:RadScriptBlock>
</telerik:RadAjaxPanel>
<telerik:RadCodeBlock runat="server" ID="RadCodeBlock">
    <script>
        $(document).ready(function () {
            AsyncUploader.initialize('<%=this.ClientID%>');
        });
    </script>
</telerik:RadCodeBlock>

/// <summary>
/// Wraps the usercontrol in a container div that is the ID of the usercontrol.
/// </summary>
/// <param name="writer"></param>
protected override void Render(HtmlTextWriter writer)
{
    //Add a containing div element
    writer.Write("<div id=\"" + this.ClientID + "\" class=\"ssbUploaderContainer\">");
    base.Render(writer);
    writer.Write("</div>");
}


.ruDropZone {
    display: none !important;
}

// -------------------------------------------------- //AsyncUploader
// Async Uploader
// -------------------------------------------------- //
 
function AsyncUploader() {
        // Avoid using the window scope:
        // return a new util object if we're in the wrong scope
        if (window === this) {
            return new AsyncUploader();
        }
  
        // Return the object
        return this;
};
 
// Prototype Functions
AsyncUploader.prototype = {
    initialize: function (controlID) {
        /// <summary>Initialize the AsyncUploader control</summary>
        /// <param name="controlID" type="String">The ID of the AsyncUpload control to initialize</param>
        control = $("[id$='" + controlID + "']");
        if (control[0]) {
            var dropZone = $(control).find(".ssbUploaderDropZone");
            dropZone.bind({ "dragenter": function (e) { AsyncUploader.dragEnter(e, dropZone); } });
            dropZone.bind({ "dragleave": function (e) { AsyncUploader.dragLeave(e, dropZone); } });
            dropZone.bind({ "drop": function (e) { AsyncUploader.drop(e, dropZone); } });
        }
    },
    dragEnter: function (e, dropZone) {
        /// <summary>Handles the DragEnter event</summary>
        /// <param name="e" type="Event">The event that has occurred</param>
        /// <param name="dropZone" type="DOM Element">The dropZone DOM element</param>
        $(dropZone).css('border', '1px solid #000000');
        $(dropZone).addClass('ssbUploaderDropZoneDragEnter');
    },
    dragLeave: function (e, dropZone) {
        /// <summary>Handles the DragLeave event</summary>
        /// <param name="e" type="Event">The event that has occurred</param>
        /// <param name="dropZone" type="DOM Element">The dropZone DOM element</param>
        $(dropZone).css('border', '0px none');
        $(dropZone).removeClass('ssbUploaderDropZoneDragEnter');
    },
    drop: function (e, dropZone) {
        /// <summary>Handles the Drop event</summary>
        /// <param name="e" type="Event">The event that has occurred</param>
        /// <param name="dropZone" type="DOM Element">The dropZone DOM element</param>
        $(dropZone).css('border', '0px none');
        $(dropZone).removeClass('ssbUploaderDropZoneDragEnter');
    }
};
 
//intialize SimplePopover for use
var AsyncUploader = new AsyncUploader();

What I am trying to do is create a custom drop zone that encompasses the AsnycUpload control and two label controls.  However, the default drop zone that the AsyncUpload also adds to the page is still added to the control as well, and as a result, the dragenter event of the default drop zone fires when you drag a file over the AsyncUpload elements (<ul> and <li> that have a dragenter event set).  I and several developers at my company have attempted to unbind the dragenter events, but it seems like they are impossible to do so.
Hristo Valyavicharski
Telerik team
 answered on 05 Jun 2014
5 answers
596 views
Hello Telerik.
I have to make RadUpload Control width=100%.

I set to width property "100%" but it wasn't work.

please let me know how can i make sure width property 100%?
Magdalena
Telerik team
 answered on 05 Jun 2014
1 answer
109 views
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;

namespace MFP_ASP
{
public class CustomFilteringColumn : GridBoundColumn
{
private object listDataSource = null;
//RadGrid calls this method when it initializes the controls inside the filtering item cells
protected override void SetupFilterControls(TableCell cell)
{
base.SetupFilterControls(cell);
cell.Controls.RemoveAt(0);
DropDownList list = new DropDownList();
list.ID = "list" + this.DataField;
list.AutoPostBack = true;
list.SelectedIndexChanged += new EventHandler(list_SelectedIndexChanged);
cell.Controls.AddAt(0, list);
cell.Controls.RemoveAt(1);
list.DataTextField = this.DataField;
list.DataValueField = this.DataField;
list.DataSource = this.ListDataSource;
}
void list_SelectedIndexChanged(object sender, EventArgs e)
{
GridFilteringItem filterItem = (sender as DropDownList).NamingContainer as GridFilteringItem;
if (this.DataType == System.Type.GetType("System.Int32") || this.DataType == System.Type.GetType("System.Int16") || this.DataType == System.Type.GetType("System.Int64"))
{
filterItem.FireCommandEvent("Filter", new Pair("EqualTo", this.UniqueName));
}
else
// treat everything else like a string
filterItem.FireCommandEvent("Filter", new Pair("Contains", this.UniqueName));
}
public object ListDataSource
{
get
{
return this.listDataSource;
}
set
{
listDataSource = value;
}
}
//RadGrid calls this method when the value should be set to the filtering input control(s)
protected override void SetCurrentFilterValueToControl(TableCell cell)
{
base.SetCurrentFilterValueToControl(cell);
DropDownList list = (DropDownList)cell.Controls[0];
if (this.CurrentFilterValue != string.Empty)
{
list.SelectedValue = this.CurrentFilterValue;
}
}
//RadGrid calls this method to extract the filtering value from the filtering input control(s)
protected override string GetCurrentFilterValueFromControl(TableCell cell)
{
DropDownList list = (DropDownList)cell.Controls[0];
return list.SelectedValue;
}
protected override string GetFilterDataField()
{
return this.DataField;
}

}
}

<%@ register namespace="MFP_ASP" tagprefix="custom" %>


<MasterTableView AutoGenerateColumns="False" DataSourceID="PMPerformanceDataSource" DataKeyNames="Branch,Cust_No" PageSize="25">
<Columns>
<custom:CustomFilteringColumn DataField="Branch" HeaderText="Branch" SortExpression="Branch" UniqueName="Branch" ListDataSource="SQLDataSourcefrmPM_Branch">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</custom:CustomFilteringColumn>I have copied the code from the demo. I added the reference in the heading. But the control is not recognized. I named mine CustomFilteringColumn and have it in a class file in the root folder. I only want to use dropdownlistboxes for the filters so if I cannot get it to work there is no sale of this product to me.
Kostadin
Telerik team
 answered on 05 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?