Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
109 views
I display pdf documents in a RadPane and when I use the SplitterBar to reduce the size of the viewing area it goes under the PDF viewer and I am not able to release it to resize.
Svetlina Anati
Telerik team
 answered on 13 Jan 2011
0 answers
51 views
This seems to work fine in Chrome, but not Internet Explorer 7. Any idea what might be causing this? Are there any workarounds?

Thanks!
- J
John Truong
Top achievements
Rank 1
 asked on 13 Jan 2011
6 answers
300 views
Hi,

I am having issues accessing values from a Template Column that I created. Here is what I have.

....
....
  <telerik:GridTemplateColumn UniqueName="ItemDiscount" HeaderText="Discount">
                                    <EditItemTemplate>                                        
                                                    <asp:RadioButtonList ID="rdListItemDiscount" runat="server">
                                                        <asp:ListItem Selected="True">Discount in %</asp:ListItem>
                                                        <asp:ListItem>Discount in $</asp:ListItem>
                                                    </asp:RadioButtonList>
                                                    &nbsp;
                                                    <telerik:RadNumericTextBox ID="txtItemDiscountVal" runat="server" Width="20px">
                                                    </telerik:RadNumericTextBox>                                           
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblLineDiscountVal" runat="server" Text="No Discount Applied"></asp:Label>
                                    </ItemTemplate>
                                </telerik:GridTemplateColumn>
                                <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" EditText="Add Discount"
                                    UpdateText="Update Discount">
                                    <ItemStyle CssClass="MyImageButton" />
                                </telerik:GridEditCommandColumn>
.....
.....
Code Behind:

Protected Sub rgLineItems_ItemUpdated(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridUpdatedEventArgs) Handles rgLineItems.ItemUpdated
        Try
            Dim i As Integer = 1
            Dim CellValue As String
            Dim txtVal As String
            CellValue = CType(rgLineItems.Items(i).FindControl("rdListItemDiscount"), RadioButtonList).SelectedItem.Value
            txtVal = CType(rgLineItems.Items(i).FindControl("txtItemDiscountVal"), TextBox).Text
        Catch ex As Exception
        End Try
    End Sub

I would like to get the selected value from the radiobuttonlist and the text value upon clicking on Update Discount. Once this is done, I would like to change the EditItemTemplate column to a value entered by the user in the textbox. Let me know where I am going wrong and is this really possible?

Thanks in advance!
Soumya
Soumya Parla
Top achievements
Rank 1
 answered on 13 Jan 2011
5 answers
103 views
I'm using a RadGrid with a relatively straightforward setup of DataBound columns, and a single Grid Expression that I set on page load like this: 

if (!Page.IsPostBack)
{
    //set up an initial group by base
    var baseExpression = new GridGroupByExpression();
    var selectField = new GridGroupByField {FieldAlias = "Base", FieldName = "Dest_Name", HeaderValueSeparator = " "};
    baseExpression.SelectFields.Add(selectField);
 
    var groupField = new GridGroupByField() {FieldName = "Dest_Name"};
    baseExpression.GroupByFields.Add(groupField);
 
    Grid.MasterTableView.GroupByExpressions.Add(baseExpression);
}

I then load the data via DataSource = foo and DataBind();

The problem comes when I right click on the column header and select ungroup form the menu, it doesn't get ungrouped.  I can group and ungroup with other columns, but the initial column does not ungroup, unless I use the menu to group by the column, and then ungroup it.

Is there a way around this behaviour?
Pavlina
Telerik team
 answered on 13 Jan 2011
2 answers
83 views
Hello All, 
I attached simple example, using which is easy to reproduce issue by the following steps:
1. lunch application
2. press "Show test RadDock"
3. press button again.
4. move RadDock.
So, after that you should see two RadDocks.
Other issue:
1. lunch application
2. press button
3. move RadDock
4. close RadDock
5. press button
6. move RadDock
7. close RadDock
8. press button
You will see the follow JS exception:
Sys.WebForms.PageRequestManagerServerErrorException: Invalid JSON primitive: {"Top":155,"Left":510,"DockZoneID":"","Collapsed":false,"Pinned":false,"Resizable":false,"Closed":false,"Width":"300px","Height":null,"ExpandedHeight":0,"Index":-1}.

Could you please say what I do wrong? Or advise some workarounds?
Pero
Telerik team
 answered on 13 Jan 2011
3 answers
60 views
I have created a web page in which I placed a rad grid and set the virtual scroll paging property to true,so when I group a grid by a column in which group consumes more than 1 page so instead of showing records list in collapse manner, it shows space of records consumed by that group which should not be happened instead of this it should show records list in the collapse manner and not the space of records consumed by that group. The code for aspx page is as follows:-

<telerik:RadGrid ID="rgFITList" runat="server" AllowSorting="True"

TabIndex="3" EnableTheming="False" ShowGroupPanel="True" OnItemCommand="rgFITList_ItemCommand"

OnSortCommand="rgFITList_SortCommand" OnGroupsChanging="rgFITList_GroupsChanging"

EnableHeaderContextMenu="True" onitemdatabound="rgFITList_ItemDataBound"

GridLines="None" DataSourceID="ODS_FITList"

AllowPaging="true" PageSize="40" AllowCustomPaging="true">

<HeaderContextMenu></HeaderContextMenu>

<MasterTableView AutoGenerateColumns="False" DataKeyNames="FITID"

GroupsDefaultExpanded="False" GroupLoadMode="Client" Name="Master"

DataSourceID="ODS_FITList">

<CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings>

<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>

<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>

<Columns>

<telerik:GridBoundColumn DataField="FITID" HeaderText="Task ID" SortExpression="FITID"

UniqueName="FITID">

<ItemStyle Width="8%"></ItemStyle>

<HeaderStyle Width="8%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="DateSubmitted" HeaderText="Submitted" SortExpression="DateSubmitted"

UniqueName="DateSubmitted" DataFormatString="{0:MM/dd/yyyy}">

<ItemStyle Width="10%"></ItemStyle>

<HeaderStyle Width="10%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="ProjectName" HeaderText="Project" SortExpression="ProjectName" UniqueName="ProjectName">

<ItemStyle Width="17%"></ItemStyle>

<HeaderStyle Width="17%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="FITType" HeaderText="Task Type" SortExpression="FITType"

UniqueName="FITType">

<ItemStyle Width="8%"></ItemStyle>

<HeaderStyle Width="8%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="FITTitle" HeaderText="Title" SortExpression="FITTitle"

UniqueName="FITTitle">

<ItemStyle Width="22%" ></ItemStyle>

<HeaderStyle Width="22%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="FITDescription" HeaderText="FITDescription"

UniqueName="FITDescription" Visible="false">

<ItemStyle Width="22%" ></ItemStyle>

<HeaderStyle Width="22%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="UserName" HeaderText="Assigned To" SortExpression="UserName"

UniqueName="UserName">

<ItemStyle Width="12%"></ItemStyle>

<HeaderStyle Width="12%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="Status" HeaderText="Status" SortExpression="Status"

UniqueName="Status">

<ItemStyle Width="10%"></ItemStyle>

<HeaderStyle Width="10%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="DateDue" HeaderText="Due" SortExpression="DateDue"

UniqueName="DateDue" DataFormatString="{0:MM/dd/yyyy}">

<ItemStyle Width="8%"></ItemStyle>

<HeaderStyle Width="8%" />

</telerik:GridBoundColumn>

<telerik:GridBoundColumn DataField="RankID" HeaderText="RankID"

UniqueName="RankID" Visible="false">

<ItemStyle Width="8%"></ItemStyle>

<HeaderStyle Width="8%" />

</telerik:GridBoundColumn>

<telerik:GridTemplateColumn HeaderText="Priority" UniqueName="Priority" Groupable="false">

<ItemTemplate>

<asp:ImageButton ID="imgMoveOrder" runat="server" CommandName="MoveOrder" ImageUrl="Images/MoveUp.gif"

ToolTip="Move Up" />

</ItemTemplate>

<HeaderStyle Width="80px" HorizontalAlign="Center"></HeaderStyle>

<ItemStyle Width="80px" HorizontalAlign="Center" VerticalAlign="Middle"></ItemStyle>

</telerik:GridTemplateColumn>

<telerik:GridTemplateColumn UniqueName="TemplateColumn" Groupable="false">

<ItemStyle Width="5%" HorizontalAlign="Center" />

<HeaderStyle Width="5%" />

<ItemTemplate>

<asp:ImageButton ID="btnRadEdit" CommandName="EditFIT" TabIndex="5" ImageUrl="~/Images/Edit.gif"

runat="server" AlternateText="Edit" />

</ItemTemplate>

</telerik:GridTemplateColumn>

</Columns>

<EditFormSettings>

<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>

</EditFormSettings>

</MasterTableView>

<ClientSettings EnablePostBackOnRowClick="True" AllowDragToGroup="True" EnableRowHoverStyle="True">

<Selecting AllowRowSelect="true" />

<Scrolling AllowScroll="True" UseStaticHeaders="True" EnableVirtualScrollPaging="True" SaveScrollPosition="True"/>

</ClientSettings>

<FilterMenu EnableTheming="False" TabIndex="6">

<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>

</FilterMenu>

</telerik:RadGrid>

In order to make my problem clear, I am attaching the screenshot of the grid when grouping by a column.So please tell me solution for my problem.
Pavlina
Telerik team
 answered on 13 Jan 2011
1 answer
75 views
Hi. I am using the 2009.3.1401.35 version of telerik controls and I am trying to add a reminder to the scheduler which appears that it's not supported in this version. Is there any turn around for this issue?

Thank you very much for your help.
Veronica
Telerik team
 answered on 13 Jan 2011
4 answers
81 views
v2010.3.1215.35

I drop a RadAjaxManager on a form.  Then I use Configure Ajax Manager to set updated controls. The result looks like this:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
  <AjaxSettings>
    <telerik.web.ui.ajaxsetting ajaxcontrolid="RadAjaxPanel1">
      <updatedcontrols>
        <telerik.web.ui.ajaxupdatedcontrol controlid="RadAjaxPanel1">
        </telerik.web.ui.ajaxupdatedcontrol>
      </updatedcontrols>
    </telerik.web.ui.ajaxsetting>
  </AjaxSettings>
</telerik:RadAjaxManager>

The expected resulting error is:

Warning   Generation of designer file failed: Telerik.Web.UI.AjaxSettingsCollection must have items of type 'Telerik.Web.UI.AjaxSetting'. 'telerik.web.ui.ajaxsetting' is of type 'System.Web.UI.HtmlControls.HtmlGenericControl'.

If I manually enter the markup, IntelliSense properly guides the creation of the tags to create the following:

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
  <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="RadAjaxPanel1">
      <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" />
      </UpdatedControls>
    </telerik:AjaxSetting>
  </AjaxSettings>
</telerik:RadAjaxManager>

So what causes that?

I'm thinking this is just another variant on errors related to control references.  With every release of RadControls and every new project I find myself frustrated with questions like the following:

Do I need a reference in web.config like this?  :
<pages>
   <controls>
     <add tagPrefix="telerik" namespace="Telerik.Web.UI"
            assembly="Telerik.Web.UI" />
   </controls>
 </pages>
Does that need to have the version ID?

Is it better to GAC for development or deployment?

Why is it that if I don't include a registration like the following in every user control I get errors on nested controls?
<%@ Register TagPrefix="telerik"
             Assembly="Telerik.Web.UI, Version=2010.3.1215.35"
            Namespace="Telerik.Web.UI" %>

And how do I avoid issues if I'm working on a client project that's a year old but my current system has the latest RadControls in the toolbox?

These kinds of questions and related problems have apparently affected the developer experience for many people over the years.

I'm hoping Telerik can publish a comprehensive new doc that describes the known issues and resolutions related to assembly references, page control references, nested user controls, master pages with RadAjaxManagerProxy, etc.

Thanks for your time.
Maria Ilieva
Telerik team
 answered on 13 Jan 2011
2 answers
54 views

Using this demo as a template

http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/usercontroleditform/defaultcs.aspx

How can i click "add" and when i click on "edit" on another row it automatically close the add function. as an example when you click on edit on a row if you click onedit on another row the previous one is closed.
Santos
Top achievements
Rank 1
 answered on 13 Jan 2011
2 answers
60 views
Hi, Im trying to programatically create a chart.

I hardcode Xaxis values of A, B, C and would like to add series coresponding to each of thsoe a b c values,

Unfortunately it always ends up adding all of the values to only one of the X axis items.


The fallowing code is the exert from my backend object

/radChartObj.PlotArea.XAxis.Items.Add(new ChartAxisItem("C"));

 

 

//radChartObj.PlotArea.XAxis.Items.Add(new ChartAxisItem("B"));

 

 

 

//radChartObj.PlotArea.XAxis.Items.Add(new ChartAxisItem("A"));

 


 

 

foreach (CallCenterStatistics callCenterStatObj in lstCallCenterStats)

 

{

 

chartSeriesObj =

 

new ChartSeries();

 

chartSeriesObj.Type =

 

ChartSeriesType.Bar;

 

chartSeriesObj.Name = lstChars[count] +

 

"-" + callCenterStatObj.Description;

 

chartSeriesObj.AddItem(

 

Convert.ToInt64(callCenterStatObj.Value), callCenterStatObj.Value + " - " + lstChars[count]);

 

 

chartSeriesObj.Items[0].Label.TextBlock.Appearance.TextProperties.Color =

 

Color.White;

 

chartSeriesObj.Items[0].Label.TextBlock.Appearance.TextProperties.Font =

 

new System.Drawing.Font("Arial", 8,FontStyle.Bold);

 

chartSeriesObj.Items[0].Label.TextBlock.Appearance.AutoTextWrap =

 

AutoTextWrap.True;

 

 

chartSeriesObj.Items[0].Label.Appearance.LabelLocation =

 

StyleSeriesItemLabel.ItemLabelLocation.Inside;

 

chartSeriesObj.Items[0].Label.Appearance.Position.AlignedPosition =

 

AlignedPositions.Left;

 

chartSeriesObj.Items[0].Appearance.FillStyle.MainColor =

 

Color.SeaGreen;

 

chartSeriesObj.Items[0].Appearance.FillStyle.FillType =

 

FillType.Solid;

 

 

 

count ++ ;

radChartObj.Series.Add(chartSeriesObj);

Any ideas what im doing wrong with this one?

Thanks!

Rafal
Top achievements
Rank 1
 answered on 13 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?