Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
149 views
Hi,
 
   I'm new to use radcontrols. In this I'm using radgrid, here I want to display Insert, cancel link button's when click Add New link button.
  below code I written but, when I click on Add New link button, file upload (browse) button enable and also Insert and cancel link are visible,but when click on  add new link button is not happen to edit mode and also I'm unable to  see insert and cancel button. please help to me how to solve this issue.

<

 

radG:RadGrid ID="rad" runat="server" Skin="Windows" Width="600px"

 

 

 

 

 

 

 

 HorizontalAlign="NotSet" OnNeedDataSource="rad_NeedDataSource" OnInsertCommand="rad_InsertCommand" OnDeleteCommand="rad_DeleteCommand" OnUpdateCommand="rad_UpdateCommand">

 

 

 

 

<MasterTableView AutoGenerateColumns="False" DataKeyNames="Id" EditMode="InPlace" CommandItemDisplay="Bottom">

 

 

 

 

<Columns>

 

 

 

 

<radG:GridTemplateColumn HeaderText="Attachment" UniqueName="TemplateColumn">

 

 

 

 

<ItemTemplate>

 

 

 

 

<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>'></asp:Label>

 

 

 

 

</ItemTemplate>

 

 

 

 

<EditItemTemplate>

 

 

 

 

<asp:FileUpload ID="fileUpload" runat="server" />

 

 

 

 

</EditItemTemplate>

 

 

 

 

</radG:GridTemplateColumn>

 

 

 

 

<radG:GridTemplateColumn UniqueName="TemplateColumn">

 

 

 

 

<ItemTemplate>

 

 

 

 

<asp:HyperLink ID="HyperLink1" runat="server" Target="_blank" NavigateUrl='<%# DataBinder.Eval(Container, "DataItem.Id", "Attachment.axd?Id={0}") %>'>View</asp:HyperLink>

 

 

 

 

<asp:LinkButton ID="LinkButton2" runat="server" Text="Edit" CommandName="Edit" />

 

 

 

 

<asp:LinkButton ID="LinkButton3" runat="server" Text="Delete" CommandName="DeleteCommand" />

 

 

 

 

</ItemTemplate>

 

 

 

 

<EditItemTemplate>

 

 

 

 

<asp:LinkButton ID="LinkButton5" runat="server" Text="Update" CommandName="Update" Visible='<%# !rad.MasterTableView.IsItemInserted %>' />

 

 

 

 

<asp:LinkButton ID="LinkButton6" runat="server" Text="Insert" CommandName="PerformInsert" Visible='<%# rad.MasterTableView.IsItemInserted %>' />

 

 

 

 

<asp:LinkButton ID="LinkButton4" runat="server" Text="Cancel" CommandName="Cancel" />

 

 

 

 

</EditItemTemplate>

 

 

 

 

<ItemStyle Wrap="False" />

 

 

 

 

</radG:GridTemplateColumn>

 

 

 

 

</Columns>

 

 

 

 

<CommandItemTemplate>

 

 

 

 

<asp:LinkButton ID="btnAdd" Text="Add New" CommandName="InitInsert" Runat="server" Visible='<%# !rad.IsItemInserted %>'></asp:LinkButton>

 

 

 

 

</CommandItemTemplate>

 

 

 

 

<EditFormSettings>

 

 

 

 

<EditColumn FilterImageUrl="" SortAscImageUrl="" SortDescImageUrl="">

 

 

 

 

</EditColumn>

 

 

 

 

</EditFormSettings>

 

 

 

 

<ExpandCollapseColumn FilterImageUrl="" SortAscImageUrl="" SortDescImageUrl="" Visible="False">

 

 

 

 

<HeaderStyle Width="19px" />

 

 

 

 

</ExpandCollapseColumn>

 

 

 

 

<RowIndicatorColumn Visible="False">

 

 

 

 

<HeaderStyle Width="20px" />

 

 

 

 

</RowIndicatorColumn>

 

 

 

 

</MasterTableView>

 

</

 

 

 

radG:RadGrid>

Thank U in Advance
Mr.Perfect

 

 

 

Perfect
Top achievements
Rank 1
 answered on 04 Jan 2011
5 answers
180 views
I have a requirement that if the validation of the file selected fails and the onclientvalidationfailed method fires, I want to be able to give a generic error message and then automatically Remove the file.

How do I achieve this? I am able to get handle on the 'Remove' button and use remove.click(). But it does nothing. Am I missing something?
Genady Sergeev
Telerik team
 answered on 04 Jan 2011
1 answer
58 views
After add/delete record, clicking Refresh button creates duplicate record or delete more records.

Is there any workaround available?!

Thank you

Regards
Raj
Mira
Telerik team
 answered on 04 Jan 2011
2 answers
92 views
Hello Community,

i have a simple Question.

Can i use Telerik Q2 2009 with my Visual Studio 2010?

I ask because i install my Telerik at my new System but its not working with my VS2010

I hope you can help me.

Greets,
Daniel Ehrenhofer
Daniel
Top achievements
Rank 1
 answered on 04 Jan 2011
1 answer
93 views
HI
how can i change the the animation anchor of the RadMenu so it can expand vertically from the middle ... so when u click on the root item it will expand in two directions up & down in the same time ???
is this possible ?? plz help
Kalina
Telerik team
 answered on 04 Jan 2011
1 answer
93 views
Hi,

What is the way to go when I want to export all columns from a database table with ExcelML.
In the RadGrid I only show some of the columns from the DB.
In the export I want to see them all.
In my current configuration I see only the columns exported which are actually in the Grid.

Thanks.
Marc
Shinu
Top achievements
Rank 2
 answered on 04 Jan 2011
1 answer
200 views
I have a web application (framework 3.5) that uses AjaxControlToolkit v 3.5.40412.2  along with  Telerik.Web.UI.dll v 2010.3.1215.35

In the master page I use have AjaxControlToolkit ScriptManager with all the script references as below.

<ajaxToolKit:ToolkitScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true">
            <Services>
                <asp:ServiceReference Path="~/Services/PopulateUnitsWebServices.asmx" />
            </Services>
             <Services>
                <asp:ServiceReference Path="~/Services/VolunteerDataService.asmx"/>
            </Services>
            <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </ajaxToolKit:ToolkitScriptManager>  
        <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel" runat="server" Transparency="30" CssClass="LoadingPanel_Hay"></telerik:RadAjaxLoadingPanel>       
       <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Windows7">
    </telerik:RadSkinManager>

In my webpage where i use controls from both Telerik.Web.UI and AjaxControlToolkit I use the RadAjaxManager as below.

<telerik:RadAjaxManager runat="server" ID="radAjax" DefaultLoadingPanelID="RadAjaxLoadingPanel">
           <AjaxSettings>
               <telerik:AjaxSetting AjaxControlID="AvailableDonors">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="AvailableDonors" />
                       <telerik:AjaxUpdatedControl ControlID="SelectedDonors" />   
                       <telerik:AjaxUpdatedControl ControlID="hdnRatingAndCommentSpace" />
                   </UpdatedControls>
               </telerik:AjaxSetting>
               <telerik:AjaxSetting AjaxControlID="SelectedDonors">
                   <UpdatedControls>
                       <telerik:AjaxUpdatedControl ControlID="AvailableDonors" />
                       <telerik:AjaxUpdatedControl ControlID="SelectedDonors" />
                       <telerik:AjaxUpdatedControl ControlID="hdnRatingAndCommentSpace" />
                   </UpdatedControls>
               </telerik:AjaxSetting>
           </AjaxSettings>
       </telerik:RadAjaxManager>

When I debug the application locally the code runs perfectly. However when I publish this site on IIS (v7 or v6) on application server I get the following Ambiguous match exception. I get the same exception when I publish the site on my local machine and run the Precompiled code.

• Ambiguous match found.
(System.Reflection.AmbiguousMatchException)
at System.RuntimeType.GetField(String name, BindingFlags bindingAttr) 
at System.Web.UI.Util.GetNonPrivateFieldType(Type classType, String fieldName) 
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildFieldDeclaration(ControlBuilder builder) 
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) 
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) 
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) 
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) 
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) 
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) 
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) 
at System.Web.Compilation.BaseTemplateCodeDomTreeGenerator.BuildSourceDataTreeFromBuilder(ControlBuilder builder, Boolean fInTemplate, Boolean topLevelControlInTemplate, PropertyEntry pse) 
at System.Web.Compilation.TemplateControlCodeDomTreeGenerator.BuildMiscClassMembers() 
at System.Web.Compilation.PageCodeDomTreeGenerator.BuildMiscClassMembers() 
at System.Web.Compilation.BaseCodeDomTreeGenerator.BuildSourceDataTree() 
at System.Web.Compilation.BaseCodeDomTreeGenerator.GetCodeDomTree(CodeDomProvider codeDomProvider, StringResourceBuilder stringResourceBuilder, VirtualPath virtualPath) 
at System.Web.Compilation.BaseTemplateBuildProvider.GenerateCode(AssemblyBuilder assemblyBuilder) 
at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider)
  
• Ambiguous match found.
(System.Web.HttpParseException)
at System.Web.Compilation.AssemblyBuilder.AddBuildProvider(BuildProvider buildProvider) 
at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() 
at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() 
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath) 
at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) 
at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile) 
at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert) 
at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) 
at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) 
at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) 
at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) 
at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

I have also tried using the RadScriptManager instead of AjaxToolkitScriptManager but with the same exception. I also installed Telerik assembly to the GAC but again with the same results.  I also removed the RadAjaxManager from my webpage but got the same exception.

Thanks for all your help.
Pulak
Simon
Telerik team
 answered on 04 Jan 2011
3 answers
81 views
Hi all,

My grid need filter by date, When I click calendar button at filter Calendar not showing.  
Please see my code ...

<telerik:GridDateTimeColumn DataField="ETD" DataType="System.DateTime"
            FilterControlWidth="120px" HeaderText="ETD"
            ShowFilterIcon="False" SortExpression="ETD" UniqueName="ETD"
            PickerType="DatePicker" DataFormatString="{0:D}">
            <HeaderStyle Width="160px"/>
        </telerik:GridDateTimeColumn>

Thanks and Best Regards.
Pavlina
Telerik team
 answered on 04 Jan 2011
3 answers
132 views
Hey folks,

How do i make my tab order from one control to the radeditor to only tab into the editor box where you type, and then if they press tab again, it doesnt tab within the editor, it tabs out to the next control?

I noticed even the RadEditor i'm currently typing in even tabs through the bold, italic, etc controls before goin to the editor textbox.
Dobromir
Telerik team
 answered on 04 Jan 2011
3 answers
75 views
Dear Telerik Team
Does XmlFormView Control work inside RadAjaxPanel? As You know it doesn't work inside asp.net updatepanel.

Thanks In Advance
Prangadj
Top achievements
Rank 1
 answered on 04 Jan 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?