Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
116 views
Hi,

I found an obscure bug in the RibbonBar. I have 8 buttons in the first group of the ribbon bar. Normally, they are all visible. But there is one mode of the page where 7 of them are set to invisible in CreateChildControls after they were added to the RibbonBar. If buttons 2-8 are set to invisible but not the first one, everything works fine after a postback and button 1 is still enabled. But when the visible button is at e.g. the 6th position while all others are invisble, the button gets disabled after the postback. I'm using Q3 2011.

My workaround for this is to check the mode and insert the button at the first position when I'm in this specific mode. 
But it would be nice if this strange bug would get fixed.
Bozhidar
Telerik team
 answered on 13 Sep 2012
5 answers
82 views
Hello All

I'm using the DateTime picker, and I would like to be able to click on either the date or time icon (or perhaps a different icon entirely) so that both the Date and Time Picker pop up at the same time and within the same frame

Please see attached for example

Many thanks
Radoslav
Telerik team
 answered on 13 Sep 2012
4 answers
287 views

I have grid like below.i have two links Aggregate Data ,Account Data in detail table.

 

When i click Aggregate Data link  "Type" detail table view should display and Account" detail table view should hide
When i click Account Data  link Account" detail table view should display and "Type" detail table view should hide

 how to show/hide type/account detail tables based on Aggregate Data link/ Account Data  link clicks  

telerik:RadGrid ID="grdResult" runat="server" Width="100%" AutoGenerateColumns="False"

 AllowPaging="True" Skin="DV" EnableEmbeddedSkins="false" PageSize="25" ExpandCollapseColumn-Display="false"

 ExpandCollapseColumn-Visible="false">

 <mastertableview width="100%" nomasterrecordstext="<%$ Resources:Generic,NoRecord %>"

 pagesize="25" allowcustompaging="true" name="SourceTable">

 <Columns>

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

 

 

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

 </Columns>

 <DetailTables>

 <telerik:GridTableView Name="Site" runat="server" AllowPaging="false" PageSize="25"

 ShowHeader="false" TableLayout="Auto">

<HeaderStyle BackColor="#d1d1d1" />

 <Columns>

 <telerik:GridBoundColumn HeaderText="" UniqueName="SiteName" DataField="SiteName"

ItemStyle-Width="100px" ItemStyle-CssClass="MasBGcolor">

 </telerik:GridBoundColumn>

 <telerik:GridTemplateColumn >

 <ItemTemplate>

 <asp:Label ID="lblDisplay" runat="server" Text="Display:" ></asp:Label>

 <asp:Label ID="lblAgrData" runat="server" Text="Aggregate Data" visible="false"></asp:Label>

 <asp:LinkButton ID="lnkAgrData" runat="server" CommandName="cmdAggrigate">Aggregate Data</asp:LinkButton>|

 <asp:LinkButton ID="lnkAccountData" runat="server" CommandName="cmdAccount">Account Data</asp:LinkButton>

 </ItemTemplate>

 </telerik:GridTemplateColumn>

 </Columns>

 <DetailTables>

 <telerik:GridTableView Name="Type" runat="server" AllowPaging="false" PageSize="25" ExpandCollapseColumn-Display="false"

 ExpandCollapseColumn-Visible="false" ShowHeader="false" TableLayout="Auto" >

 <HeaderStyle BackColor="#d1d1d1" />

 <Columns>

 <telerik:GridBoundColumn HeaderText="" DataField="TypeName" UniqueName="TypeName" ItemStyle-CssClass="MasBGcolor" >

 </telerik:GridBoundColumn>

 </Columns>

 <DetailTables>

 <telerik:GridTableView Name="Details" runat="server" AllowPaging="false" PageSize="25"

 ShowHeader="false" TableLayout="Auto" >

 <HeaderStyle BackColor="#d1d1d1" />

 <Columns>

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

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

 

</Columns>

 </telerik:GridTableView>

 </DetailTables>

 </telerik:GridTableView>

 <telerik:GridTableView Name="Account" runat="server" AllowPaging="false" PageSize="25"

 ShowHeader="false" TableLayout="Auto">

 <HeaderStyle BackColor="#d1d1d1" />

 <Columns>

 <telerik:GridBoundColumn HeaderText="" UniqueName="AccountName" DataField="AccountName"

 ItemStyle-Width="100px" ItemStyle-CssClass="MasBGcolor">

 </telerik:GridBoundColumn>

 </Columns>

 <DetailTables>

 <telerik:GridTableView Name="AccountType" runat="server" AllowPaging="false" PageSize="25" ExpandCollapseColumn-Display="false"

 ExpandCollapseColumn-Visible="false" ShowHeader="false" TableLayout="Auto" >

 <HeaderStyle BackColor="#d1d1d1" />

 <Columns>

 <telerik:GridBoundColumn HeaderText="" DataField="TypeName" UniqueName="TypeName" ItemStyle-CssClass="MasBGcolor" >

</telerik:GridBoundColumn>

 </Columns>

 <DetailTables>

 <telerik:GridTableView Name="AccountDetails" runat="server" AllowPaging="false" PageSize="25"

 ShowHeader="false" TableLayout="Auto" >

 <HeaderStyle BackColor="#d1d1d1" />

 <Columns>

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

 </Columns>

 </telerik:GridTableView>

 </DetailTables>

 </telerik:GridTableView>

 </DetailTables>

 </telerik:GridTableView>

 </DetailTables>

 </telerik:GridTableView>

 </DetailTables>

 </mastertableview>

 <clientsettings allowexpandcollapse="false" />

 </telerik:RadGrid>

 

Sd
Top achievements
Rank 1
 answered on 13 Sep 2012
16 answers
121 views
Hello,

I'm noticing several problems recently that never occurred before until very recently.  BTW, I'm currently demoing - soon to buy, once I get the kinks worked out (fingers crossed)...

First, I can no longer insert appointments by double-clicking on an empty spot on the vertical timeline view.  In my "real" app, I get no error, nothing in eventlog - the inline form simply doesn't appear.  In my "demo" app, I get the following stack trace:

[ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index]
   System.Web.UI.ControlCollection.get_Item(Int32 index) +8690670
   Telerik.Web.UI.Scheduler.Views.TimelineAllDayTable.CreateAllDayCells(WebControl row, Dictionary`2 appointmentControls) +2003
   Telerik.Web.UI.Scheduler.Views.SchedulerAllDayTable.AddRow(IList`1 allDaySlots, Dictionary`2 appointmentControls) +209
   Telerik.Web.UI.Scheduler.Views.Timeline.RendererBase.CreateInnerContentTable(Control container, IList`1 allTimeLineSlots) +383
   Telerik.Web.UI.Scheduler.Views.Timeline.GroupedByResource.Renderer.CreateVerticalContent(SchedulerTopTable topTable) +402
   Telerik.Web.UI.Scheduler.Views.Timeline.GroupedByResource.Renderer.GetInnerContent() +307
   Telerik.Web.UI.Scheduler.Views.Timeline.GroupedByResource.Renderer.GetContent() +79
   Telerik.Web.UI.RadScheduler.CreateContent() +218
   Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +195
   Telerik.Web.UI.RadScheduler.CreateChildControls() +34
   System.Web.UI.Control.EnsureChildControls() +87
   System.Web.UI.Control.PreRenderRecursiveInternal() +44
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842



Second, when editing appointments (again by double-clicking), the inline edit form will "submarine" under the resource headers on the left - the further right on the timeline the appointment's start date, the further left the form will originate.  I've worked around this by using

    .rsAptEditSizingWrapper
    {
        left: 0px !important;
    }

but this was never an issue before.


Finally, saving edited appointments only works under certain circumstances.  There are several controls on the edit form for the subject value, only one of which is visible at any time based on the data type of the subject (DateTime or string) and whether there is a list of values associated with it (TextBox or RadComboBox).  If the subject is represented by a combobox the save is fine; if the subject is edited via a textbox, however, the save will not occur.  A partial workaround is to add  AutoPostBack="true"  to the textbox, but then it only saves the second time the user presses "Save".  Please let me know if you need me to post my code.


I'm not sure if it's the new version that introduced these issues, but I can't think of what else would cause such problems all at once.  Granted, I've upgrade Firefox recently, but not IE9, and both exhibit the above behaviors.  That said, there are other peculiarities particular to both Firefox 13.0.1 and IE 9.0.6 - some very troublesome.  I'll save those for another thread...

In closing, I'm anxious to purchase the package, as RadScheduler is ideal for what I'm trying to do.  However, given the odd behaviors and inconsistencies, I'm at a loss as to what to do - I don't want to spend the money on a product that won't work reliably for our end users, but I don't want to start from scratch with a different product either.


Regards,
Joe
Plamen
Telerik team
 answered on 13 Sep 2012
4 answers
233 views

Hi, I've a grid:

<telerik:RadGrid ID="Grid" runat="server" GridLines="None" AllowPaging="True" CssClass="RadGrid"
    AllowSorting="True" AutoGenerateColumns="false" ShowStatusBar="true" AllowFilteringByColumn="true">
    <ValidationSettings EnableValidation="true" EnableModelValidation="true" CommandsToValidate="Insert,Edit,Update" />
    <MasterTableView Width="100%" CommandItemDisplay="Top" DataKeyNames="Id" InsertItemPageIndexAction="ShowItemOnCurrentPage">

And I am using EF as Datasource (with RepositoryPattern).

Furthermore I user Dataannotations - so every Entity has a partial MetadataClass with Annotations like:

[MetadataType(typeof(entityMetadata))]
    public partial class entity
    {
        internal sealed class entityMetadata
        {
          
            [Required(ErrorMessage="Id is required")]
            public Int32 Id { get; set; }
  
            [Required(ErrorMessage="Name is required")]
            [StringLength(400)]
            public String Name { get; set; }
  
            [Required(ErrorMessage="Description is required")]
            public String Description { get; set; }
  
        }
    }

I thought with "EnableModelValidation" the Grid would automatically validate against this annotations.
  But it doesn't. 

My UpdateCommand looks like this:

void Grid_UpdateCommand(object sender, GridCommandEventArgs e)
{

   using (IGenericRepository<Lov_KpiType> repositroy = new GenericRepository<Lov_KpiType>())
   {
   GridEditableItem item = e.Item as GridEditableItem;
   int kpiType_Id = Convert.ToInt32(item.GetDataKeyValue("Id").ToString());
   Lov_KpiType kpiType = repositroy.FindById(kpiType_Id);

   item.UpdateValues(kpiType);
   repositroy.SaveChanges();
   }
}

   

The item is not updated and the Grid changes to TemplateMode again. No errormessage is show at this time..

I thought, as it is in MVC, when Data-Annotations are used - no Postback is done when ClientSideValidation fails.

Furthermore I do not know, how to determine if there is an validation-error in code behind.

Please help :)

Radoslav
Telerik team
 answered on 13 Sep 2012
1 answer
74 views
Hi is there a simple way to add text to a popup form? Using ShowCaptionInEditForm="true" duplicates the text on the title bar which is really odd, not sure who would want to do that.

 I don't see a way to get rid of the text in the title bar to avoid duplication. I see you can remove it by hacking the style but that removes the entire bar and not just the text.

Just looking for a simple way to add text to the form.

Thanks
Shinu
Top achievements
Rank 2
 answered on 13 Sep 2012
3 answers
238 views
I  have about 4 columns in RADGRID which I am defining as GRIDNUMERICColumn with following
 

<telerik:GridNumericColumn DataField="AMT1" UniqueName="AMT1 HeaderText="Amount1" 

DataType="System.Int32" DataFormatString="{0:N0}" DecimalDigits="0"

 

ForceExtractValue="Always" SortExpression="AMT1" AllowFiltering="false" EmptyDataText="0"

 

Aggregate="Sum" FooterAggregateFormatString="{0:c0}" FooterStyle-HorizontalAlign="Right" >

 

<ItemStyle HorizontalAlign="Right" />

 

</telerik:GridNumericColumn>



Also I have to total column next to it as  GridCalculatedColumn

AMT1   AMT 2  AMT3   AMT4    TOTAL

I nee to attach  a validator ( client and Server )  to validtate that in edit mode the when user enters the amounts , it should give message if the total goes negative .

As of now i am handling  programmtically when updating I am reading the values and giving message below the grid that there is error . This may be not a efficinet way and this has lot of limitations when i am multirowedit

Can you pleas tell  how to do  client side validation and  server validitaion ( custome validator)

Thanks for your help
 
 
Antonio Stoilkov
Telerik team
 answered on 13 Sep 2012
1 answer
87 views
I would like to know if it is possible to add the description inside an appointment block that is in a DayView State?

When I click on an appointment I see the description in the Advance Edit Form...
Shinu
Top achievements
Rank 2
 answered on 13 Sep 2012
3 answers
85 views
If i have open for editing the first row item - enter works fine (for saving). But any other row instead of saving data, opens for edit the first row item. Any ideas how to fix that?
Shinu
Top achievements
Rank 2
 answered on 13 Sep 2012
2 answers
55 views
Hi there.

I have a RadMenu and am using GroupSettings-RepeatColumns="3".

I want to be able to decide when a RadMenuItem starts the next column. For example, if you go to http://www.dotnetnuke.com/ and hover over "Products" in the main menu you will see the first column is longer than the second column instead of equally distributed. This is what I am trying to achieve.

I want to avoid using templates if possible.

Thanks
Chris
Chris
Top achievements
Rank 1
 answered on 12 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?