Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
127 views
Hi,
I am playing around with the MinutesPerRow and TimeLabelRowSpan properties. The default settings are 30 and 2 resp.

In day and weekview, the lines separating the rows are rendered thicker every 2 rows.

If I set TimeLabelRowSpan to 3, this looks very weird/confusing, since the lines separating the time labels do not connect to the thicker rendered row separating lines.

Can I control the events/count in which the thicker row separator lines in the scheduler are rendered?

Or could this be a bug? I would expect the label separating lines to connect to the thicker rendered row separating lines so if it is hardcoded that every 2 row separating lines a line is rendered thicker this cannot be accomplished.
A solution would be to render every TimeLabelRowSpan-nd row separating line thicker.

regards,
Johan


Can I change the subject of a topic?
Better would be:

"What property controls the rendering logic of the thicker row separating lines in dayview/weekview?"
Peter
Telerik team
 answered on 04 Jan 2011
1 answer
101 views
Hello,

Beginner question:
I have a RadToolBox:
<telerik:RadTextBox ID="RadTextBox1" Runat="server" name="nameTest"/>


And I have an ASP button that run this code:
        Dim a As String = Request.Form("nameTest")
        Dim b As String = Request.Form("RadTextBox1")

Both a and b always remain null.

Questions
- How do I get postback values from Rad components ?
- How do I get postback values from Rad components when they are in user control ?


Thank you
Tsvetina
Telerik team
 answered on 04 Jan 2011
2 answers
148 views

I have a page that when auto or partial post back happens, focus is set to the address bar rather than the next control. The interesting thing is that when I put an alert in my RadScriptBlock, after the OK is clicked, focus goes to the correct control -or- if I put in an invalid location, focus is returned to the ExpLocation control & when a correct location is input the second time, the tab order/focus command works correctly (see code below).

That has this up top

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
   
<AjaxSettings>
       
<telerik:AjaxSetting AjaxControlID="RadAjaxPanel1">
           
<UpdatedControls>
               
<telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" />
           
</UpdatedControls>
       
</telerik:AjaxSetting>
       
<telerik:AjaxSetting EventName="OnTextChanged" AjaxControlID="RadNumericTextBox_GLm">
           
<UpdatedControls>
               
<telerik:AjaxUpdatedControl ControlID="RadNumericTextBox_GLm" LoadingPanelID="RadAjaxLoadingPanel1" />
               
<telerik:AjaxUpdatedControl ControlID="lblGlCodeErrorMessage" LoadingPanelID="RadAjaxLoadingPanel1" />
           
</UpdatedControls>
       
</telerik:AjaxSetting>
       
<telerik:AjaxSetting EventName="OnTextChanged" AjaxControlID="RadNumericTextBox_ExpLocation">
           
<UpdatedControls>
               
<telerik:AjaxUpdatedControl ControlID="lblGlCodeErrorMessage" LoadingPanelID="RadAjaxLoadingPanel1" />
               
<telerik:AjaxUpdatedControl ControlID="RadNumericTextBox_ExpLocation" LoadingPanelID="RadAjaxLoadingPanel1" />
           
</UpdatedControls>
       
</telerik:AjaxSetting>
   
</AjaxSettings>
</telerik:RadAjaxManager>

That has this control..

<telerik:RadNumericTextBox ID="RadNumericTextBox_ExpLocation" runat="server" Width="20px" AutoPostBack="true"
MaxLength="3" NumberFormat-AllowRounding="False" Type="Number" NumberFormat-KeepTrailingZerosOnFocus="True"
IncrementSettings-InterceptMouseWheel="false" OnTextChanged="LocationCheck_OnTextChanged" TabIndex="101">
<NumberFormat DecimalDigits="0" GroupSeparator="" AllowRounding="false" KeepNotRoundedValue="false" />

Code behind...

 protected void LocationCheck_OnTextChanged(object sender, System.EventArgs e)
{
   
var cmdText = "SELECT LMLOC FROM DBMOTO..XALOCNP WHERE  " +
           
" LMLOC = @ExpLocation ";
       
using (var conn = new SqlConnection(ConfigurationManager.ConnectionStrings["MAINConnectionString"].ToString()))
       
using (var cmd = new SqlCommand(cmdText, conn))
       
{
            cmd
.Parameters.Add(new SqlParameter("@ExpLocation", RadNumericTextBox_ExpLocation.Text));
            conn
.Open();
           
SqlDataReader dr = cmd.ExecuteReader();
           
if (dr.HasRows)
           
{
               
Session["ValidGL"] = false;
                lblGlCodeErrorMessage
.Visible = false;
                lblGlCodeErrorMessage
.Text = "Good Location";
                btnAddItem
.Enabled = false;
                btnDone
.Enabled = false;
               
RadNumericTextBox_GLm.Focus();
           
}
           
else
           
{
                lblGlCodeErrorMessage
.Visible = true;
                lblGlCodeErrorMessage
.Text = "Invalid/Inactive Location";
                btnAddItem
.Enabled = false;
                btnDone
.Enabled = false;
               
RadNumericTextBox_ExpLocation.Focus();
           
}
       
}
}

Maria Ilieva
Telerik team
 answered on 04 Jan 2011
2 answers
175 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
233 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
79 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
119 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
120 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
131 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
233 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?