Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
86 views

Hi All

I could do with getting some other thoughts on something that I am working on.

I am reworking my application to be as dry as possible.  I want to have a data service that can return some data that can be consumed by the drop downs.  I do not want to use entity framework or similar for this.  I just want to have away to have one data source file that depending on the request will provide the relevant set of data.  

I will secure it by way of checking the session variables that are in the main application so that only logged in users will have access to the data.

Keeping it simple lets say that I have 3 drop downs Client, Portfolio and Development and they are related to each other in the order shown.

When displaying the Client I will get data from datasource.svc/?src=client

Portfolio will be datasource.svc?src=portfolio&client=1

and unsuprisingly development will be datasource.svc?src=development&portfolio=5

What would be the most advisible technology to use for this type of approach?  I have already decided that I want to separate the datasource from the aspx file so that I could potentially switch to Kendo or even use these datasources for a mobile app.

Thanks for any pointers,

Jon

 

Jon
Top achievements
Rank 1
 answered on 03 Aug 2016
1 answer
362 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
72 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
241 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
78 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
121 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
79 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
406 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
670 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
265 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?