Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
184 views
I can't find ASP.NET Checkbox in Radgrid row with Client side Javascript in the RowDatabound event.  I would think this would be simple to do. I must be doing something silly.

I am able to find a Telerik control but not a ASP.NET control
       function RadGrid1_RowDataBound(sender, args) {
  
  
          // this works
           var radTextBox1 = args.get_item().findControl("LastName"); // find control
           radTextBox1.set_value(args.get_dataItem()["Enabled2"]);
  
           // This does not work
           var MyCheckbox = args.get_item().findControl("CheckBoxEnabled"); // find control
}

Here is the grid code

<telerik:GridTemplateColumn HeaderText="Enabled" AllowFiltering="False">
    <HeaderStyle Width="40px" />
    <ItemStyle Width="40px" />
    <ItemTemplate>
        <!-- Can find this -->
        <telerik:RadTextBox ID="LastName" runat="server" Width="80px" />
         <!-- Cannot find this -->
        <asp:CheckBox ID="CheckBoxEnabled" runat="server" />
    </ItemTemplate>
</telerik:GridTemplateColumn>


Thanks

 

 

 

Shinu
Top achievements
Rank 2
 answered on 19 Jan 2011
1 answer
61 views
Hi,

I want to add row
 
header and column header on grid. Please let me know what is the better way

 column

Base Currency

SGD

THB

USD

 

 

BHD

 

 

HKD

 

 

 

 

 

 

 

 


Column types demo table no  border

Shinu
Top achievements
Rank 2
 answered on 19 Jan 2011
1 answer
100 views
Hi.

Is there a way to make a custom command show a context menu?
Just as if the command icon was the root level of a dropdown menu.

Thank you
/Jesper
Jesper Krejberg Petersen
Top achievements
Rank 2
 answered on 18 Jan 2011
4 answers
179 views
Telerik.Web.UI : runtime = v2.0.50727, ver = 2008.2.723.20

Error when removing column from grid.

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
 

Process I am going through:

1. user selects add column on the page
2. Post back, add column to datasource
3. rebind grid
    (grab data from datasource, clear columns from grid, add all current columns)
4. user selects delete column
5. confirm delete
6. postback, delete column from datasource
7. rebind grid
    (grab data from datasource, clear columns from grid, add all current columns)

This works if all of this is done continuously. However, if I navigate off of this page at before step 4 and return to the page and continue, then I receive the error above.

Note: on NeedDataSource event I am setting datagrid.DataSource to the System.Data.DataTable

i dont know if it has to do with the viewstate? i tried to provide as much info as i can, let me know if anything else is required.

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

[External Code]
  System.Web.RegularExpressions.dll!System.Web.Util.CalliHelper.EventArgFunctionCaller(System.IntPtr fp, object o, object t, System.EventArgs e) + 0x10 bytes 
  System.Web.dll!System.Web.Util.CalliEventHandlerDelegateProxy.Callback(object sender, System.EventArgs e) + 0x22 bytes 
  System.Web.dll!System.Web.UI.Control.OnLoad(System.EventArgs e) + 0x64 bytes 
  System.Web.dll!System.Web.UI.Control.LoadRecursive() + 0x30 bytes 
  System.Web.dll!System.Web.UI.Page.ProcessRequestMain(bool includeStagesBeforeAsyncPoint = true, bool includeStagesAfterAsyncPoint = true) + 0x59d bytes 
  System.Web.dll!System.Web.UI.Page.ProcessRequest(bool includeStagesBeforeAsyncPoint, bool includeStagesAfterAsyncPoint = true) + 0x67 bytes 
  System.Web.dll!System.Web.UI.Page.ProcessRequest() + 0x57 bytes 
  System.Web.dll!System.Web.UI.Page.ProcessRequestWithNoAssert(System.Web.HttpContext context) + 0x13 bytes 
  System.Web.dll!System.Web.UI.Page.ProcessRequest(System.Web.HttpContext context) + 0x32 bytes 
  App_Web_3crb2jk7.dll!ASP.error_error_aspx.ProcessRequest(System.Web.HttpContext context = {System.Web.HttpContext}) + 0x2f bytes C#
  System.Web.dll!System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() + 0x167 bytes 
  System.Web.dll!System.Web.HttpApplication.ExecuteStep(System.Web.HttpApplication.IExecutionStep step = {System.Web.HttpApplication.CallHandlerExecutionStep}, ref bool completedSynchronously = true) + 0x41 bytes 
  System.Web.dll!System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(System.Exception error) + 0x1b3 bytes 
  System.Web.dll!System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(System.Web.HttpContext context, System.AsyncCallback cb, object extraData) + 0x8e bytes 
  System.Web.dll!System.Web.HttpRuntime.ProcessRequestInternal(System.Web.HttpWorkerRequest wr = {Microsoft.VisualStudio.WebHost.Request}) + 0x1b5 bytes 
  System.Web.dll!System.Web.HttpRuntime.ProcessRequestNoDemand(System.Web.HttpWorkerRequest wr) + 0x62 bytes 
  System.Web.dll!System.Web.HttpRuntime.ProcessRequest(System.Web.HttpWorkerRequest wr) + 0x38 bytes 
  WebDev.WebHost.dll!Microsoft.VisualStudio.WebHost.Request.Process() + 0x113 bytes 
  WebDev.WebHost.dll!Microsoft.VisualStudio.WebHost.Host.ProcessRequest(Microsoft.VisualStudio.WebHost.Connection conn = {System.Runtime.Remoting.Proxies.__TransparentProxy}) + 0x5c bytes 
  [Appdomain Transition] 
  WebDev.WebHost.dll!Microsoft.VisualStudio.WebHost.Server.OnSocketAccept(object acceptedSocket) + 0x86 bytes 
  mscorlib.dll!System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(object state) + 0x1a bytes 
  mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x81 bytes 
  mscorlib.dll!System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(System.Threading._ThreadPoolWaitCallback tpWaitCallBack) + 0x50 bytes 
 mscorlib.dll!System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(object state) + 0x60 bytes 


Srinivas
Top achievements
Rank 1
 answered on 18 Jan 2011
6 answers
246 views
Hello everybody.
I can't succed in find anything with $find('objectID') method.
I'm using a webapp structure consisting of one page that loads dynamically a couple of UserControls implementing various functions.
On the other hand document.getElementById('objectID') give me back the object, so I'm pretty sure the objectID is correct.
Any idea?

Thanks in advance

Andrea

Adham Shaaban
Top achievements
Rank 1
 answered on 18 Jan 2011
7 answers
319 views
Hello

I wonder if there is an easy way to get a radwindow confirmation on a RadButton like there is on RadGrid's GridButtonColumn.

Regards
Mihai
Jonx
Top achievements
Rank 2
 answered on 18 Jan 2011
2 answers
69 views
Hi, I just upgraded my controls in my working DNN 5.6 project from 2010.3.1215.35 to 2010.3.1317.35.  After the upgrade the SelectedItems collection is always empty.  I have a grid control and respond to NeedDataSource.  The data displays properly and I can select a few rows after which I enter a button event handler where I retrieve the selected items.  Inspection of the control shows the data source is null, however, a 2nd request for data is never issued by the control.  After doing nothing in the button's event handler the page is displayed with the original data.

Telerik.Web.UI is not in the GAC

The proper dll version is in the DNN\bin folder

I cleared all Telerik.Web.UI dlls from C:\Windows\Microsoft.NET

I have a updated the binding redirect:
        <bindingRedirect oldVersion="2010.2.929.35" newVersion="2010.3.1317.35" xmlns="urn:schemas-microsoft-com:asm.v1" />

This was working perfectly before the upgrade.  Any ideas as to what happened and how to fix it?

Ed
Top achievements
Rank 1
 answered on 18 Jan 2011
5 answers
243 views
I'm running Dot Net Nuke 5.6, VS 2010 and Telerik 2010.3 and have a catch 22.  It seems that I have multiple web.config files and maybe some conflicts.

I have the Telerik tag defined in my web.config located in the virtual directory of my site.

To use a Telerik control on my page in the VS 2010 designer I need to have a web.config file local to the project that defines the Telerik tag:

<configuration>
  <system.web>

    <pages>

    <controls>

      <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>


Without it I get the error:

Error Creating Control - radGridCustomerPoolThis control cannot be displayed because its TagPrefix is not registered in this Web Form.

However, with a local web.config in the project folder I get the following error on my page in a browser outside the VS environment.

DotNetNuke.Services.Exceptions.ModuleLoadException: It is an error to use a section registered as allowDefinition='MachineToApplication'  beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Why isn't VS picking up the tag definition in the virtual directory?

Any ideas?
Ed
Top achievements
Rank 1
 answered on 18 Jan 2011
1 answer
52 views
I am trying to set the content and I am getting a ReadFile error. BC30451: 'ReadFile' is not declared. It may be inaccessible due to its protection level.
On a different page, the code works. But whenever I create a new page, it will not allow me to enter the code. I dont know what is going on.


Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    If Not Page.IsPostBack Then
        Dim temp As String = Request.QueryString("temp")
        Dim path As String = Server.MapPath("~") & "/Admin/Templates/Template" & temp & ".htm"
        RadEditor1.Content = ReadFile(path)
    End If
End Sub

Please help.
Chad Canterbury
Top achievements
Rank 1
 answered on 18 Jan 2011
3 answers
71 views
Firstly let me state my problem, which has recurred a lot of times over several years of telerik product usage.

Because Telerik tools are so reliable, I seldom upgrade. I have never had a problem within telerik tools being created by installing a newer version. Maybe I am unique in this, but I doubt it.
So, this brings me into a situation where I download and evaluate new versions very seldom, in regard to the release cycles.

The problem, is that there is no place, as far as I can see, where I can download ALL release notes between versions X and Y. Not that by stating as far as I can see I am intentionally leaving the door open for flames, being semi-blind, and a moron. I willingly agree to all this to get the list I need.

Because frequently (every 6mo or so) I find myself needing a bugfix or feature, and googling will show that the fix has been implemented in version X.
Like today, I was looking for radeditor width fix in IE8 and FF4.
http://www.telerik.com/community/forums/aspnet-ajax/editor/radeditor-width-problem.aspx
So. Then I find that it is indeed possible to update, and my specific problem has already been fixed.
Now in order to evaluate my update from earlier versions, I can tell that the version I have is Y (Q2 2010) from the excellent version listing at:
http://www.telerik.com/products/aspnet-ajax/whats-new/release-history.aspx

In order to evaluate, I would need to find all applicable changenotes, in ONE GO, and then evaluate those against the used features in our current err 9 sites.
However, there is no apparent or easy way to find all radeditor only applicable release or change notes between Q2 2010 and Q3 2010 SP1.
I always go for the latest to alleviate my next need for a fix.

Without a means to do this, I manually have to compile a huge list of changes, then evaluate the radeditor specific changes against my sharepoint 2007, 9 existing sites and each of their used features. They all have separate custom editor toolfiles, skins, css files, everything.

Otherwise of course I won't get the stakeholders (site owners and editors) approval for the new version. By the time I get agreement there's probably a new version out again.
And, yes, this is in part due to our being a government entity.
Then there's deployment, testing, integration testing, QA testing and production.


So, please Telerik take into consideration a way to make documentation regarding changes available for customers with valid support contracts at least, where some page would pull change and fix notes from version  X upgrading to version Y, for download or reading.

At least in customers with multiple stakeholders and formal approval processes, this would REALLY make my day. Err year. And next year too.
Pavel
Telerik team
 answered on 18 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?