Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
221 views
How do I limit users to Check only 8 items in a CheckBox inside  GridTemplateColumn/ItemTemplate either by Client side or server side


<telerik:GridTemplateColumn DataField ="ID" UniqueName="CheckBoxColumn">
                                            <ItemTemplate>     
                                                 <asp:CheckBox ID="CheckBoxStatus" runat="server"  />                                                                                                                                                      
                                                                                                
                                           </ItemTemplate>
                                       </telerik:GridTemplateColumn>

Ebenezer
Top achievements
Rank 1
 answered on 16 Aug 2013
4 answers
159 views
I am putting RadCaptcha in a usercontrol .ascx so I can re-use it in several pages on "my" website.   I put the .ascx with the RadCaptcha on 3 pages.  RadCaptcha image is displayed OK on the first page, but it blanks out after a "refresh", a click on a button, or after a "redirect" from other pages.  The RadCaptcha image does not display at all from the remaining 2 pages.

A work-around is to enable the "Generate New Image" lnk button, but this is kind of strange, making the users generate a new image everytime.

Can I put RadCaptcha in an .ascx and re-use it?  I do not want to put 3 separate RadCaptcha on 3 separate pages, this would make maintenance a pain.  Is this a correct approach to using RadCaptcha?

Here my snippet:

 

 

 

<telerik:RadCaptcha ID="RadCaptcha1" runat="server" ErrorMessage="Enter code below" EnableRefreshImage="true" RegisterWithScriptManager="true"

 

 

 

ValidationGroup="Group" CaptchaTextBoxLabel="" Font-Size="8pt">

 

 

 

</telerik:RadCaptcha>

 

 

 

Thanks for responding.

An
Top achievements
Rank 1
 answered on 16 Aug 2013
8 answers
341 views
I am using Radcaptcha on my Login page and it is showing the image ok.  However, when I clicked on any button on my page, the image no longer appear.  I enabled the refresh linkbutton but this is not very user-friendly.  Is it possible that I programmatically refresh the image on OnLoad event so the image will be displayed every time?

Thanks for responding.
An
Top achievements
Rank 1
 answered on 16 Aug 2013
1 answer
116 views
How do I attaqch the source code - seems like this form will only accept image files?
  
1. I have what amounts to a simple demo online 'excel spreadsheet'
2. table with fixed 7 cols, 7 rows
3. 2 cols are editable, and as a result of editing them, a calculation is performed on 2 other colums
  
I've set up the 'updater' fields and the 'updatEE' fields propertly I believe. 
  
1. It's not even firing for one of the colums. 
2. For the column that's firing, it's firing MULTIPLE RANDOM events, including it's own, 
    and including for the colun that won't fire. 
3. If I've set up my 'updater' and 'updatee' controls correctly, then why is the ENTIRE table flashing each TextChange?
  
This is a very very simple application. I'm intersted in what I"m doing wrong because I think I've
Followed all the fules. 
  
I don't want to post all the code, would rather include a zip - but how do I do that? It seems to only accept images?
Kostadin
Telerik team
 answered on 16 Aug 2013
2 answers
382 views
hello all,

I want scrolling for radlistview and I am not able to do that below is my code,

<telerik:RadListView     ID="plantlistview" runat="server" ItemPlaceholderID="TrackContainer"
                                    DataSourceID="imagedatasourcec"  Skin="Outlook"  Height="300px" AllowCustomPaging="True" >                                 
                                    <LayoutTemplate >                                    
                                        <div class="RadListView RadListView_<%# Container.Skin %>"  >
                                            <asp:PlaceHolder  ID="TrackContainer" runat="server" ></asp:PlaceHolder>
                                        </div>                                        
                                    </LayoutTemplate>                                    
                                    <ItemTemplate >
                                        <div class="track rlvI" >
                                            <div style="position: absolute; z-index: 8;">
                                                <asp:Image ID="Image2" runat="server" Height="200px" Width="200px" ImageUrl="~/style/Images/webimages/photoframe.png" />
                                            </div>
                                            <div style="position: absolute; z-index: 9; padding-top: 20px; padding-left: 20px;">
                                                <asp:Image ID="Image44" runat="server" Height="160" Width="160" ImageUrl='<%# String.Format("~/Images/{0}", Eval("img_name"))%>' />
                                            </div>
                                            <div id="Div1" style="position: absolute; z-index: 10;" onclick="window.open('donate.htm', '_self');">
                                                <telerik:RadListViewItemDragHandle ID="RadListViewItemDragHandle1" Height="150" Width="150"
                                                    CssClass="img123" runat="server" ToolTip="Drag and drop it on the list to add in liiii">
                                                </telerik:RadListViewItemDragHandle>
                                            </div>
                                        </div>
                                    </ItemTemplate>
                                    <ClientSettings AllowItemsDragDrop="True"  >
                                    </ClientSettings>
                                    
                                </telerik:RadListView>
                             
------------------------------------------------------------------------------------------
CSS

*
{
    padding:0;
    margin:0; 
    font-family:  Helvetica,Arial, sans-serif;
    font-size: 12px;
}

#trackContainer
{
    border:none;    
    width:800px;
    float:left;    
} 
div.RadListView
{

    border:none;
    background-color:Transparent;    
}
.track,
div.RadListView div.track
{
    width:210px;
    height:225px;    
    float:left;   
    padding:0;
    margin:0;
    border:0;
} 

div.RadListView div.track h3,
div.RadListView div.track div
{
    text-align:center;   
    
    
} 
div.RadListView div.track h3
{
    font-size:12px;
} 
div.RadListView div.track .info
{
    padding-top:60px;
    
}


div.RadListView div.rlvDraggedItem
{
    border:0;
    margin:0;
} 
div.rlvDraggedItem div.track.rlvI
{
    border:none;   
    width:200px;
    
} 

div.rlvDraggedItem div.track.rlvI .info
{
    padding-top:10px;
    padding-left:10px;
} 
div.rlvDraggedItem div.track.rlvI .info div,
div.rlvDraggedItem div.track.rlvI .info h3
{
    font-size:11px;
    line-height:normal;
}
 
div.rlvDraggedItem div.track.rlvI .rlvDrag
{
    display:none;
}
 
div.rlvDraggedItem div.track.rlvI .info .album
{
    display:none;
} 
div.rlvDraggedItem div.track.rlvI .info h3,
div.rlvDraggedItem div.track.rlvI .info div
{
    margin-left:40px;
    width:130px;
    height:16px;
    display:block;
    text-align:left;
    overflow:hidden;
}

Please help me,

    
foram
Top achievements
Rank 1
 answered on 16 Aug 2013
8 answers
480 views
Hi,
I am using Licensed version of telerik controls. I am using rad chart in my asp.net user control.
My application will  get deployed on web farm and we have orcle database as backend tool so we are not using any asp .net session .
I am getting below error when I deploy my application to development server ( it is single server), but on my local machine it is working fine.

---------------------------
Microsoft Internet Explorer
---------------------------
Error loading RadChart image.
You may also wish to check the ASP.NET Trace for further details.
Display stack trace?

Below is the setting  I did in my asp usercontrol on development server

 

<telerik:RadChart ID="ComplianceScoreChart" runat="server" ChartImageFormat="Jpeg" SeriesOrientation="Horizontal"

 

 

Height="100px" Width="200px" UseSession="false">

 


Web.config :
under httphandler I have below setting

<

add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />

 


Also I have Temporary image folder path set. And i am seeing images created and getting deleted immediately.
What can be the reason and how can I fix it? And also What I have to do in QA Test sever (having web farm) so there also It should not break?

Thanks & Regards
Mukund Katpatal.
Ves
Telerik team
 answered on 16 Aug 2013
1 answer
191 views

Hi,
I would like to know how to put the grid in the edit mode once the record is inserted.

I am using telerik radgrid  with editmode="Editforms" and EditFormType="Template"

Insert action is handled in the code behind.

Once record is inserted, I would like the grid to go into edit mode.

I would appreciate  help with this.

Thanks,
Manisha

Konstantin Dikov
Telerik team
 answered on 16 Aug 2013
2 answers
244 views
I have three columns (EventID, EventName, DateCreated) in a RadGrid which I've attached some Manual CRUD operations to. EventID and DateCreated are created automatically in SQL and never need to be updated, so I have hidden their text boxes in the Add Form and disabled them in the Edit Form. My problem is: in the Add Form, their labels stay visible.

How can I hide those labels? I have attached a picture, and code for hiding/disabling text boxes are below.

protected void RadGrid1_ItemCreated(object sender, Telerik.Web.UI.GridItemEventArgs e)
    {
        if (e.Item is GridEditableItem && e.Item.IsInEditMode)
        {
                GridEditableItem item = e.Item as GridEditableItem;
                GridEditManager manager = item.EditManager;
                GridTextBoxColumnEditor editor = manager.GetColumnEditor("EventID") as GridTextBoxColumnEditor;
                GridTextBoxColumnEditor editor2 = manager.GetColumnEditor("DateCreated") as GridTextBoxColumnEditor;
            if (!(e.Item is GridEditFormInsertItem)) //edit record
            {
                editor.TextBoxControl.Enabled = false;
                editor2.TextBoxControl.Enabled = false;
            }
            else //add record
            {
                editor.TextBoxControl.Visible = false;
                editor2.TextBoxControl.Visible = false;
            }
        }
    }
Matthew
Top achievements
Rank 1
 answered on 16 Aug 2013
1 answer
149 views
Ok, I know this is bordering on silly, but I dont upload files to a file structure.  i got the radasyncUploader working and it uploads files to my directory and I save the file name to a dtabasse table.  But now how do I acces the file using the uploader.  Is there a way to do this.  If there re files uploaded for this person I would like to show them on the page load and give admins the ability to delete the files or add new files.

Hristo Valyavicharski
Telerik team
 answered on 16 Aug 2013
1 answer
136 views
I keep getting this error when trying to upgrade my project using VS 2010 Ultimate:
Failed to execute command.

System.Runtime.InteropServices.COMException (0x80004005): Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
   at EnvDTE._DTE.get_ActiveSolutionProjects()
   at Telerik.VSX.Internal.ProjectManagement.ProjectRetriever.GetFirstSelectedProject(DTE dte)
   at Telerik.VSX.Internal.ProjectManagement.ProjectRetriever.GetFirstSelectedProject(IServiceProvider serviceProvider)
   at Telerik.VSX.Internal.ProjectManagement.ProjectWrapFactoryBase`1.GetForFirstSelectedProject(IServiceProvider serviceProvider)
   at Telerik.Web.UI.VSX.ProjectConfigurators.ProjectConfigurationStyles.ProjectUpgrade(IServiceProvider serviceProvider)
   at Telerik.Web.UI.VSX.ProjectConfigurators.StreamlinedProjectConfiguration.StartUpgradeWizard()
   at Telerik.Web.UI.VSPackage.CommandExecutor.Execute(UInt32 commandId)
   at Telerik.VSX.VSPackage.PackageBase.CommandCallback(Object sender, EventArgs e)

I have downloaded the latest version of the controls via the control panel and restarted VS multiple times but I still get the same error. I have gone through the forum and tried everything that users have reported but still continue to get this error. Any help would be appreciated.
Vesko
Telerik team
 answered on 16 Aug 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?