Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
114 views
I am running into some strange issue with edit form in edititemtemplate of a grid.
Using edit form to insert new records and when the form appears its visible under the boundary of the grid only.
Or it will be under the grid which i will have to scroll to see because right under the grid is another grid.

This was working fine before i applied latest release of AJAX Controls but now the pop ups are hidden behind containers. and controls.


<telerik:RadGrid ID="CurrentSalesRepRadGrid" runat="server" CellSpacing="0" GridLines="None"
                            AllowAutomaticInserts="True" AutoGenerateColumns="False" DataSourceID="SalesRepSQLDS" style="z-index:9000">
                            <MasterTableView CommandItemDisplay="Top" DataSourceID="SalesRepSQLDS" EditMode="PopUp">
                                <CommandItemSettings ExportToPdfText="Export to PDF" AddNewRecordText="Take Over\Assign this Item" />
                                <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
                                </RowIndicatorColumn>
                                <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
                                </ExpandCollapseColumn>
                                ...... Clolumns
                                <EditFormSettings EditFormType="Template" PopUpSettings-Width="700px">
                                    <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                    </EditColumn>
                                    <FormTemplate>
                                        <table border="1" style="width: 458px">
                                            <tr>
                                                <td class="style2">
                                                    Select SalesRep :
                                                </td>
                                                <td>
                                                    <telerik:RadComboBox ID="SalesRepRadComboBox" runat="server" AutoPostBack="True"
                                                        DropDownWidth="700px" EnableItemCaching="True" EnableLoadOnDemand="True" EnableVirtualScrolling="True"
                                                        Height="190px" HighlightTemplatedItems="True" ItemRequestTimeout="500" OnItemsRequested="SalesRepRadComboBox_ItemsRequested"
                                                        OnLoad="SalesRepRadComboBox_Load" Text='<%# Session["userId"] %>' ShowMoreResultsBox="True"
                                                        Width="330px" OnSelectedIndexChanged="SalesRepRadComboBox_SelectedIndexChanged">
                                                        <CollapseAnimation Duration="200" Type="OutQuint" />
                                                        <HeaderTemplate>
                                                            <ul>
                                                                <li class="col0">ID</li>
                                                                <li class="col1">Name</li>
                                                                <li class="col2">e-Mail</li>
                                                                <li class="col3">Company</li>
                                                            </ul>
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <ul>
                                                                <li class="col0">
                                                                    <%# DataBinder.Eval(Container.DataItem, "UserId") %></li>
                                                                <li class="col1">
                                                                    <%# DataBinder.Eval(Container.DataItem, "FullName") %></li>
                                                                <li class="col2">
                                                                    <%# DataBinder.Eval(Container.DataItem, "email1") %></li>
                                                                <li class="col3">
                                                                    <%# DataBinder.Eval(Container.DataItem, "Account") %></li>
                                                            </ul>
                                                        </ItemTemplate>
                                                    </telerik:RadComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style2">
                                                    Selected As SalesRep :
                                                </td>
                                                <td class="style2">
                                                    <asp:Label ID="SalesRepSelectedLabel" runat="server" OnLoad="SalesRepSelectedLabel_Load"></asp:Label>
                                                    <br />
                                                    <asp:Label ID="SalesRepLabel" runat="server" Text='<%# Bind("userId") %>' OnLoad="SalesRepLabel_Load2"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style2">
                                                    Notes For Changing Sales Rep
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="SalesRepChangingNotesTextBox" runat="server" Text='<%# Bind("Note") %>'
                                                        Height="51px" TextMode="MultiLine" Width="330px"></asp:TextBox>
                                                </td>
                                            </tr>
                                        </table>
                                        <asp:Button ID="Button1" runat="server" Text="Take over item" Width="100%" CommandName="PerformInsert"
                                            OnClick="Button1_Click2" />
                                        <br />
                                    </FormTemplate>
                                    <PopUpSettings Width="700px" />
                                </EditFormSettings>
                            </MasterTableView>
                            <FilterMenu EnableImageSprites="False">
                            </FilterMenu>
                        </telerik:RadGrid>

Milena
Telerik team
 answered on 25 Mar 2013
1 answer
238 views
I'm looking for an example on how to make  RadGrid Load on demand  in  Scroll.....

Thank You....
Galin
Telerik team
 answered on 25 Mar 2013
1 answer
119 views
I'm using version Q1 2013.

Skin the tool created a SkinBuilder with all components.

How best to deploy within my project?

Today I RadSkinManager - ShowChooser = "True" and he blames for all grids, panels etc. automatically.

I have to put this on the list of skins skin?

Saw a shape to generate an assembly, which is seen more laborious, since all modified components.

Thank you.
Galin
Telerik team
 answered on 25 Mar 2013
9 answers
354 views
I have a grid that uses a couple of calculated columns to show percentage calculations.

Expression

="(({0} - {1}) / {0}) * 100"


Some of the column values that i use in my calculation can under certain circumstances have zero values. This obviously raises a divide by zero exception. I want in these instances to display a percentage of zero.

I dont seem able to intercept or handle the exception and set the cell value to 0 ( i.e perhaps at item databound event or similar).

Any suggestions as to how i can perform this - if not, i presume I will have to make the calculations in the database and bind as normal boundcolumns.

Kostadin
Telerik team
 answered on 25 Mar 2013
11 answers
1.2K+ views

Hi,

I have a grid with a bound column "Sales" and need to add a calculated column "Percentage" which will be the result of  Sales/Sum(Sales)*100. How can I accomplish this?

I've tried different ways but I can't get it to work. Below is an example of what i am trying to do...  

<telerik:GridBoundColumn DataField="Sales" DataType="System.Decimal" HeaderText="Sales"
 SortExpression="Sales" UniqueName="Sales" Aggregate="Sum">                 
</telerik:GridBoundColumn>
<telerik:GridCalculatedColumn HeaderText="Sales %" UniqueName="Percentage"
DataFields ="Sales, sum(Sales)" Expression="{0}/{1}" DataType="System.Double" Aggregate="Sum" >
</telerik:GridCalculatedColumn>

Thanks in advance,

Regards,
Sigi Perez
Kostadin
Telerik team
 answered on 25 Mar 2013
1 answer
78 views
I upgraded to new Telerik version 2013.1.220.35 from 2010.3.1109.35. and compatibility issues started...

 

<telerik:RadGrid runat="server" ID="FileListView" AutoGenerateColumns="false" Skin="Windows7" 

Width="100%" OnDeleteCommand="FileListView_DeleteCommand">

<MasterTableView>

<Columns>

<telerik:GridButtonColumn UniqueName="DeleteColumn" ButtonType="ImageButton" CommandName="Delete"

ConfirmTitle="Confirm" ConfirmText="Continue deleting file?" /> <telerik:GridBoundColumn UniqueName="file" DataField="file" Visible="false" ReadOnly="true" />

 <telerik:GridBoundColumn UniqueName="Attachedfiles" DataField="Attached files" HeaderText="File" />

 <telerik:GridBoundColumn UniqueName="Attachedby" DataField="Editor" HeaderText="Attached by" />

 <telerik:GridBoundColumn UniqueName="Attachedat" DataField="Modified" HeaderText="Attached at" />

 </Columns>

 </MasterTableView>

 </telerik:RadGrid>

 

protected void FileListView_DeleteCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)

 {
GridEditableItem editedItem = e.Item as GridEditableItem;

 string filename = editedItem["file"].Text;
logic continues...

but in the above code filename has &nbsp as the value. means filename contains empty space as it value instead of actual file name

Please suggest. 

Andrey
Telerik team
 answered on 25 Mar 2013
1 answer
86 views
For some reason RadGrid keeps renaming my columns and putting spaces where they don't belong.
i.e. If my column name is "RadGrid" it adds a space and makes it "Rad Grid"

What can I do about this? It's driving me nuts and the users are not happy because they have very specific naming conventions on the fields they are using.

TIA!!

CG
Antonio Stoilkov
Telerik team
 answered on 25 Mar 2013
3 answers
67 views
Hello,
I upgraded to new Telerik version 2013.1.220.35
from 2010.3.1109.35.

In previous version the below line of code works fine, but with the new telerik version it is storing empty spaces intead of actual Items data.
GridDataItemCollection

 

 

FilteredRadGridItemCollection = this.grid.MasterTableView.Items;

Please suggest!

Thanks
Ghouse Shaik

 

Andrey
Telerik team
 answered on 25 Mar 2013
1 answer
74 views
Hi, I have a RadToolbar in an ASPX site working properly on all modern browsers but IE9 since I can disable a button on client side with this sentence:
parent.header.RadToolbar1.DisableButton("Button");

But whenever I try to enable the button nothing happens (only in IE9, compatibility mode is ok).
Thanks in advance.
Kate
Telerik team
 answered on 25 Mar 2013
1 answer
65 views
Hi

I've got a ribbon bar on a page that i hit from an IPad and have set the EnableMinimizing property equal to true.  However, when you click the minimize button nothing happens.

Anyone experience this and/or know how to fix it?

Thanks
Kate
Telerik team
 answered on 25 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?