Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
377 views

Hi,

I have a RadGrid inside a AjaxPanel. On View Click, am hiding the grid and showing another div. I have back button inside that div and on click of that, am showing the grid back. But when showing the grid, the add new record is not showing up. Tried setting the ShowAddNewRecordButton to true while changing the visibility of the grid. Still it is not showing up. Any pointers why is the add record button is not showing ?

<div id="div1">
<asp:Button ID="BackButton" Text="Back"runat="server" OnClick="BackButton_Click" />
</div>

<div id="div2">
<telerik:RadGrid ID="Grid"
        runat="server"
        AllowSorting="True"
        AllowPaging="True"
        ShowFooter="True"
        ShowStatusBar="True"
        AutoGenerateColumns="False"
        AllowAutomaticDeletes="True"
        AllowAutomaticInserts="True"
        AllowAutomaticUpdates="True"
        OnInsertCommand="Grid_CreateCommand"
        OnUpdateCommand="Grid_UpdateCommand"
        OnNeedDataSource="Grid_NeedDataSource"
        OnItemDataBound="Grid_ItemDataBound"
        OnItemCreated="Grid_ItemCreated"
        OnItemCommand="Grid_ItemCommand" >
        <MasterTableView EditMode="EditForms" DataKeyNames="RecordID" CommandItemDisplay="Top">
           <Columns>
               <telerik:GridButtonColumn ButtonType="LinkButton" Text="View" CommandName="View" UniqueName="View" />
               <telerik:GridEditCommandColumn ButtonType="ImageButton" UniqueName="Edit" />
               <telerik:GridBoundColumn UniqueName="Date" HeaderText="Date" DataField="Date" DataFormatString="{0:MM/dd/yyyy}"/>
               <telerik:GridBoundColumn UniqueName="Type" HeaderText="Code" DataField="Type"/>
            </Columns>
            <CommandItemSettings AddNewRecordText="Add New Record" />
            <EditFormSettings
                InsertCaption="Add New Record"
                CaptionFormatString="Edit Record"
                PopUpSettings-Modal="true"
                EditFormType="WebUserControl"
                UserControlName="~/EditDetailUserControl.ascx">
            </EditFormSettings>
        </MasterTableView>
        <ClientSettings>
            <ClientEvents OnCommand="RaiseCommand" />
        </ClientSettings>
    </telerik:RadGrid>
<div>

Thanks
Viktor Tachev
Telerik team
 answered on 03 Aug 2016
1 answer
81 views

Hi,

I would like to have Items display one on top, one on bottom, and so forth... for better readability, is possible?

Boris

Ianko
Telerik team
 answered on 03 Aug 2016
5 answers
259 views
Hi, how is the current support for mono platform of the asp.net àjax web controls? Are currently supported? Which version should i use? What version should i use? The one for 2.0 framework?

Thanks    
Rumen
Telerik team
 answered on 03 Aug 2016
0 answers
91 views

Hi,

 

I am using Radeditor and markdown.js for saving the rad editor value in markdown mode. When I try to convert markdown values in HTML mode then some of the scenario are breaking while conversion.

1. When bullets/Numbers are entered in the text

2. When underlined the text

Below is the method which I am using

 

markdown.toHTML(content, 'Maruku');

 

Thanks in advance.

Avinash
Top achievements
Rank 1
 asked on 03 Aug 2016
1 answer
150 views

I am using adRotator (Q2 2016 controls) to randomly display header images on a website with fade transition. So far so good, but now I would like to have a text title on a layer above the rotator so that the title remains fixed while the images change behind it. 

Can you suggest a browser-independent way approach to achieve this? 

Thanks for any suggestions!

Clive

Clive Hoggar
Top achievements
Rank 1
 answered on 02 Aug 2016
1 answer
89 views

Hello,

My grid is saving the old value for New Topic Number. Please assist.

<telerik:RadGrid ID="gridApprovedTopics" runat="server" GridLines="None" DataSourceID="dsApprovedTopics"
                AllowFilteringByColumn="True" AllowSorting="True" AutoGenerateColumns="False" Skin="WebBlue" AllowAutomaticUpdates="True" OnItemCommand="gridApprovedTopics_ItemCommand">
                <HeaderContextMenu>
                    <CollapseAnimation Type="OutQuint" Duration="200" />
                </HeaderContextMenu>
                <MasterTableView CommandItemDisplay="Top" DataKeyNames="Old_Topic_Number" EditMode="EditForms">
                    <EditFormSettings>
                        <EditColumn UniqueName="EditCommandColumn" ButtonType="ImageButton" EditImageUrl="../App_Themes/WebBlue2/Grid/Edit.gif"
                            UpdateImageUrl="../App_Themes/WebBlue2/Grid/Update.gif" CancelImageUrl="../App_Themes/WebBlue2/Grid/Cancel.gif">
                        </EditColumn>
                    </EditFormSettings>
                    <CommandItemTemplate>
                        <div style="padding: 5px 5px; float: right;">
                            <span style="margin-right: 15px">
                                <asp:LinkButton ID="btnClearFilters" runat="server" CommandName="ClearFilters" Text="Clear Filters" />
                            </span>
                            <asp:Button runat="server" ID="buttonRefresh" CommandName="Rebind" CssClass="rgRefresh" Text=" " />
                            <asp:LinkButton ID="btnRefresh" runat="server" CommandName="RebindGrid" Text="Refresh" />
                        </div>
                    </CommandItemTemplate>
                    <Columns>
                        <telerik:GridEditCommandColumn UniqueName="EditCommandColumn" HeaderText="Edit" ButtonType="ImageButton" EditImageUrl="../App_Themes/WebBlue2/Grid/Edit.gif" />
                        <telerik:GridBoundColumn DataField="Technology_Group_Abbreviation" HeaderText="Technology Office"
                            SortExpression="Technology_Group_Abbreviation" UniqueName="Technology_Group_Abbreviation" ReadOnly="true" />
                        <telerik:GridBoundColumn DataField="PM_User_Name" HeaderText="PM" SortExpression="PM_User_Name" UniqueName="PM_User_Name" ReadOnly="true" />
                        <telerik:GridHyperLinkColumn DataNavigateUrlFields="Topic_Id" DataNavigateUrlFormatString="~/Topics/CreateViewTopic.aspx?id={0}&p=0"
                            HeaderText="Topic Number" DataTextField="Old_Topic_Number" UniqueName="Old_Topic_Number" AllowFiltering="False" ShowFilterIcon="False" ShowSortIcon="False" Target="_blank" />
                        <telerik:GridBoundColumn DataField="Status_Name" HeaderText="Status" SortExpression="Status_Name" UniqueName="Status_Name" ReadOnly="true" />
                        <telerik:GridBoundColumn DataField="Title" HeaderText="Title" SortExpression="Title" UniqueName="Title" ReadOnly="true" />
                        <telerik:GridBoundColumn DataField="TPOC" HeaderText="TPOC" SortExpression="TPOC" UniqueName="TPOC" ReadOnly="true" />
                        <telerik:GridBoundColumn DataField="New_Topic_Number" UniqueName="New_Topic_Number" HeaderText="New Topic Number" Display="false" />
                    </Columns>
                </MasterTableView>
                <ClientSettings EnablePostBackOnRowClick="false" AllowColumnsReorder="True">
                    <Selecting AllowRowSelect="True" />
                </ClientSettings>
                <FilterMenu>
                    <CollapseAnimation Type="OutQuint" Duration="200" />
                </FilterMenu>
            </telerik:RadGrid>

 

Thanks!

Patrick
Top achievements
Rank 1
 answered on 02 Aug 2016
7 answers
423 views
Hello,

I have a RadGrid  with columns defined at design time (GridBoundColumn, GridNumericColumn), the grid is configured as EditMode="Batch", when the user clicks on a cell, the cell change to be editable,

I am using the built in feature to display aggreate functions on the grid (Aggregate="Sum"), the problem is that the user modify the value on a cell, but the value on the footer for that column do not be updated,

My expectation is, that each modification on the column, should be reflected on the total,

Could you pelase support me with that?

Thanks in advance,
roy
Top achievements
Rank 1
 answered on 02 Aug 2016
12 answers
690 views
Hi

There seems to be an Internet Explorer related bug in combination with some of the RadGrid Skins. If there is a border around the selected row (ie Gray, Telerik), any cell which is empty won't get any border. The Css is fine, everything is ok, only IE doesn't render it...
I encountered this in combination with a edit / delete column where the delete button / text gets invisible in editmode. 
It's working in every other browser i tested. My workaround at the moment is to set the delete column to visible = false if the row is in edit mode but maybe there is some better solution to this. I tried to set the GridDeleteColumn.Text to &nbsp; but whitout success. 

Thanks!
Creationator
Top achievements
Rank 1
 answered on 02 Aug 2016
4 answers
277 views

I am wanting to programmatically select a page (item?) from the DataForm during page_load from a querystring.

 

I am using a RadListView for selecting an item and displaying/passing the RadListView's selection to the DataForm by making use of the ListView's DataItemIndex.

 It seems to work as both controls are bound to the same datasource. (I was worried that perhaps the ordering and indexes would not match up between the two controls, but so far it seems to be fine).

It looks something like this:

protected void RequestsListView_ItemCommand(object sender, RadListViewCommandEventArgs e)
        {
            if (e.CommandName == "ItemSelect")
            {
                SelectedRequestDataForm.CurrentPageIndex = ((RadListViewDataItem)e.ListViewItem).DataItemIndex; 
            }
        }

 

So my question is how do I basically do the same thing but instead of using DataItemIndex / CurrentPageIndex... how can I just use actual field values to match and select on? Can I set the selected page of the DataForm by matching a value of a particular page's DataKey (or any field)? 

 

I have looked through the API reference to see if there was anything besides CurrentPageIndex that I could use, but I haven't found one. One idea I've had is to just loop through all pages and on each page attempt to match a DataItem's value... then use CurrentPageIndex to get the value. But, there doesn't seem to be a collection that corresponds to all the pages associated to the DataForm. Oddly enough, there is a PageCount property though!

 

What might I do? Does DataPager already accomplish all this and I just don't realize it?

 

Mike
Top achievements
Rank 1
 answered on 02 Aug 2016
1 answer
183 views

Hello.

This is my first post and I am posting because I have a serious problem, the same that the specified in this link http://www.telerik.com/forums/ontextchanged-calling-other-radnumerictextbox, I will explain a bit what is the situation:

I have a Total label and a RadGrid that contains records from a database and one of the columns let you change an amount, when you change the amount textchange event fires recalculates the value to show in Total label, the problem like the guy of the link above is when you change to anotherradnumerictextbox (using mouse or tab key), if i have "123,23" in that radnumerictextbox (where ","  is my decimal separator) it converts the value to "12323,00", I understand what is happening but not how to solve it and this is a problem because it change the Total label taking into account the "12323,00" giving me a greater value than i would expect), i am using telerik version 2013.3.1015.40
answering the question on the libk above

What browser do you use? Chrome last version (52.0.2743.82 m)
What is the culture on your machine and in your server? Español (Mexico) (both), but i am changing application culture depending on user preferences (in this case Español (Costa Rica)
Is it happening in more than one browser? It happen in all browsers
Do you get some JS errors? there are no JS errors
What .Net version are you using? .Net Framework 4.5

 

Thank you in advance for your help.

Kostadin
Telerik team
 answered on 02 Aug 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?