Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
70 views
Hello!

I mistakenly put the wrong title: "RadGrid + AJAX Manager" is the right one so if the moderator could change that.

As no one replied me on the AJAX subforum I'm also posting it here...

I have two gridviews from which one generates the data source to another one. Both gridviews have ability to edit the item (row), but editing only works in first gridview (the one that generates data for the other one), when I click on edit in the second gridview nothing happens. I've been searching the web for a while and (I believe) found out that what I need is AJAX Manager.

I've checked couple of examples/Demos from Telerik's site, but I'm still not sure how to make editing in the second gridview work.

Both gridviews have edit forms inside and both gridview's edit form types are "WebUserControl".

Could someone help me out with some suggestions. Any help would be appreciated.
Iana Tsolova
Telerik team
 answered on 30 Aug 2011
1 answer
77 views
The track changes seems to work great except in one situation: 

If initially have something set to a class and then change that class it does not pick it up in the track changes. We use a bunch of custom classes and when someone changes/removes the class on something we would like it to show up in the track changes. Is this possible?
Rumen
Telerik team
 answered on 30 Aug 2011
8 answers
225 views
Hi,

I am using the scheduler Control, I would like not to provide the Hourly option in Recurrence pattern. Is there anyway can we do that.

Regards,
Rama
Plamen
Telerik team
 answered on 30 Aug 2011
2 answers
228 views
Hello

I create a RadGrid using AutogeneratedColumns, is that possible to set the width of the columns??

How can i do this?
Ricardo
Top achievements
Rank 1
 answered on 30 Aug 2011
21 answers
292 views
Hello people,

I have a problem on my RadGrid1. two of the grid columns are navigation properties...The problem is when i enter on the page, all columns fields has data.But when i click to sort those two columns came without values..

I have already verify that the list i'm using as DataSource, has allways those two columns with values...The problem is that when i sort the Grid comes without values on "Priority" and "Process" fields.....

That's my code (ASPX.CS)
protected void Page_Load(object sender, EventArgs e)
        {
            ObjectResult<SapDocuments> objectSapDocs;
  
            if (!this.IsPostBack)
            {
  
                this._presenter.OnViewInitialized();
  
                string user = Page.User.Identity.Name.Substring(Page.User.Identity.Name.IndexOf("\\") + 1);
                EscalonamentoFacturasEntities objectContx = new EscalonamentoFacturasEntities();
  
  
                objectSapDocs = objectContx.ShowUnprocessedInvoices(user);
                List<SapDocuments> listSapDocuments = new List<SapDocuments>();
  
                foreach (var item in objectSapDocs)
                {
  
                    listSapDocuments.Add(item);
                }
  
                ViewState["Data"] = listSapDocuments;
            }
            this._presenter.OnViewLoaded();
  
  
  
            if (ViewState["Data"] != null)
            {
  
  
                RadGrid1.DataSource = (List<SapDocuments>)ViewState["Data"];
  
            }
            else
            {
                RadGrid1.DataSource = null;
            }
  
  
            //RadGrid1.DataBind();
  
        }
  
        [CreateNew]
        public InvoicesScalePresenter Presenter
        {
            set
            {
                this._presenter = value;
                this._presenter.View = this;
            }
        }
  
protected void ShowProcessed_Click(object sender, EventArgs e)
        {
            ObjectResult<SapDocuments> objectSapDocs;
            string user = Page.User.Identity.Name.Substring(Page.User.Identity.Name.IndexOf("\\") + 1);
  
            EscalonamentoFacturasEntities objectContx = new EscalonamentoFacturasEntities();
  
            objectSapDocs = objectContx.ShowProcessedInvoices(user);
            List<SapDocuments> listSapDocuments = new List<SapDocuments>();
  
            foreach (var item in objectSapDocs)
            {
  
                listSapDocuments.Add(item);
            }
  
            ViewState["Data"] = listSapDocuments;
  
  
            if (ViewState["Data"] != null)
            {
  
  
                RadGrid1.DataSource = (List<SapDocuments>)ViewState["Data"];
  
            }
            else
            {
                RadGrid1.DataSource = null;
            }
        }
....

That's my ASPX Code:
<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" AllowPaging="True"
            AllowSorting="True" AutoGenerateColumns="False" Width="97%" enableajax="True"
            AllowFilteringByColumn="True" ShowFooter="True" Skin="Black" OnItemCommand="RadGrid1_ItemCommand"
            OnGridExporting="RadGrid1_GridExporting" AllowMultiRowSelection="True">
            <PagerStyle Mode="NextPrevAndNumeric"></PagerStyle>
            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True" EnablePostBackOnRowClick="true">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <MasterTableView DataKeyNames="SequencialNumber" Width="100%" CommandItemSettings-ShowExportToCsvButton="True"
                CommandItemSettings-ShowAddNewRecordButton="false" CommandItemDisplay="Top">
                <Columns>
                    <telerik:GridBoundColumn DataField="SequencialNumber" HeaderText="SequencialNumber"
                        UniqueName="SequencialNumber" SortExpression="SequencialNumber">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Priorities.Priority" HeaderText="Priority" UniqueName="Priority"
                        FilterControlAltText="Filter Priority column" SortExpression="Priority"
                        DataType="System.Int32">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Staging.Process" HeaderText="Staging" UniqueName="Process"
                        SortExpression="Process" FilterControlAltText="Filter Process column">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="SupplierCode" HeaderText="SupplierCode" UniqueName="SupplierCode"
                        SortExpression="SupplierCode" FilterControlAltText="Filter SupplierCode column">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="MessageStatus" HeaderText="MessageStatus" UniqueName="MessageStatus"
                        SortExpression="MessageStatus" FilterControlAltText="Filter MessageStatus column">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="DocumentType" HeaderText="DocumentType" UniqueName="DocumentType"
                        FilterControlAltText="Filter DocumentType column" SortExpression="DocumentType">
                    </telerik:GridBoundColumn>
                    <telerik:GridDateTimeColumn UniqueName="InvoiceCreationDate" DataField="InvoiceCreationDate"
                        HeaderText="InvoiceCreationDate" FilterControlAltText="Filter InvoiceCreationDate column"
                        SortExpression="InvoiceCreationDate">
                        <FilterTemplate>
                            <telerik:RadDatePicker ID="RadDatePicker1" runat="server">
                            </telerik:RadDatePicker>
                        </FilterTemplate>
                    </telerik:GridDateTimeColumn>
                    <telerik:GridBoundColumn DataField="SupplierVatNumber" FilterControlAltText="Filter SupplierVatNumber column"
                        HeaderText="SupplierVatNumber" SortExpression="SupplierVatNumber" UniqueName="SupplierVatNumber">
                    </telerik:GridBoundColumn>
                </Columns>
                <ExpandCollapseColumn Visible="False">
                    <HeaderStyle Width="19px"></HeaderStyle>
                </ExpandCollapseColumn>
                <RowIndicatorColumn Visible="False">
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
            </MasterTableView>
            <FilterMenu EnableImageSprites="False">
            </FilterMenu>
            <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
            </HeaderContextMenu>
        </telerik:RadGrid>
Jayesh Goyani
Top achievements
Rank 2
 answered on 30 Aug 2011
3 answers
92 views

Hi All,
I am using radajaxpanel around the radgrid. I have a column of linkbuttons inside the radgrid. whenever user clicks on the linkbutton, I do some calculations on the server side and raise an event to another page to pass that calculated value. The raising of the event works if I remove the radAjaxPanel, if I put the panel back then raising of the event does not work. I was wondering if there is any work around for that. I really have to raise the event.

below is my code


<telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel_ID" LoadingPanelID="RadAjaxLoadingPanel1"
<telerik:RadPanelBar ID="RadPanelBar1" runat="server" Width="1500px" BackColor="#E6E6E6" 
    ExpandMode="MultipleExpandedItems"
    <Items
        <telerik:RadPanelItem runat="server" Text="ID Picker" Expanded="true"
            <Items
                <telerik:RadPanelItem Text="" Expanded="true"
                    <ItemTemplate
                         
                            <table
                                   
                                <tr
                                    <td
                                        <telerik:RadGrid ID="RadGrid_IDPicker" AllowSorting="True" PageSize="100" AllowPaging="True" 
                                            runat="server" GridLines="None" OnPageIndexChanged="RadGrid_IDPicker_PageIndexChanged" 
                                            OnPageSizeChanged="RadGrid_IDPicker_PageSizeChanged" Width="1500px" Visible="false"
                                               
                                            <MasterTableView RetrieveAllDataFields="true" AutoGenerateColumns="false" DataKeyNames="ID"
                                                        <Columns
                                                    <telerik:GridTemplateColumn UniqueName="TemplateLinkColumn" AllowFiltering="false" 
                                                        HeaderText="ID"
                                                        <ItemTemplate
                                                            <asp:LinkButton ID="ID_Link" runat="server" OnClick="ID_Link_Click" Text='<%#Bind("ID") %>'  
                                                                ></asp:LinkButton
                                                        </ItemTemplate
                                                    </telerik:GridTemplateColumn
   
                                                  
                                                    <telerik:GridTemplateColumn HeaderText="TAG"
                                                        <ItemTemplate
                                                            <asp:Label ID="lblNumber" runat="server" Text='<%#Bind("Number") %>'></asp:Label
                                                        </ItemTemplate
                                                    </telerik:GridTemplateColumn
                                                       
                                                </Columns
                                            </MasterTableView
                                            <PagerStyle Mode="NextPrevAndNumeric" /> 
                                        </telerik:RadGrid
                                    </td
                                </tr
                            </table
                            
                    </ItemTemplate
                </telerik:RadPanelItem
            </Items
        </telerik:RadPanelItem
    </Items
</telerik:RadPanelBar
   </telerik:RadAjaxPanel>

The code in the server side is



 

public delegate void ID_Selection(String strValue);
public event ID_Selection IDEventHandler; 
   
   protected void ID_Link_Click(object sender, EventArgs e) 
    
                      if (IDEventHandler != null) 
            
                  
                IDEventHandler("Testvalue"); 
                      
   
            
Iana Tsolova
Telerik team
 answered on 30 Aug 2011
3 answers
93 views
hi

i just have some question bout this control since i havent use it yet

here is my question

is there a possibilities to populate my datagrid w/ the files that fileexplorer found on my server folders?

thanks
regards
webster
Dobromir
Telerik team
 answered on 30 Aug 2011
1 answer
191 views

Hello,
 
   In my web application , I have a RadMenu, and in the Item click of the RadMenu, I am opening a RadWindow. This RadWindow is supposed to come on top of the RadMenu. But it is going below the RadMenu even though i set the Z-Index

Code I Have

<script type="text/javascript">
function NewRadWindow(sender,eventArgs) {
var item = eventArgs.get_item();
 if (item.get_text() == "BreakTime") {
      radopen(null,"BreakWindow");
    return false;
 }
</script>

  <telerik:RadMenu ID="RadMenu1" runat="server" orientation="Horizontal" Skin="Windows7" OnClientItemClicking ="NewRadWindow"  style="z-index:2900" EnableRoundedCorners="True" EnableShadows="True" Height="39px" Width="100%" CausesValidation="False">

 <telerik:RadWindowManager ID="RadWindowManager1" runat="server" RestrictionZoneID="zoneID1" Style="z-index: 7001">
                                            <Windows>
                                                <telerik:RadWindow ID="BreakWindow" runat="server"               NavigateUrl="frm_BreakTime.aspx"  AutoSize="true"   />
                                                                                               
                                            </Windows>
                                        </telerik:RadWindowManager>

I added the RadWindow in the RadWindowManager and I am opening the RadWindow from the Javascript as shown above.
Even though i Set the Z-Index of RadWindow as 7001 and RadMenu as 2900, I still the RadMenu on the top of the RadWindow.

Am i missing something?

Thanks
Marin Bratanov
Telerik team
 answered on 30 Aug 2011
1 answer
149 views
Hello All,

I m using RadFormDecorator on my page. Also there is a RadGrid with GridClientSelectColumn on the page using the "Persisting the Selected Rows Client-side on Sorting/Paging/Filtering/Grouping" (http://www.telerik.com/help/aspnet-ajax/grid-persist-selected-rows-client-sorting-paging-grouping-filtering.html) feature.

I have noticed the that the when you select the checkbox at the top of the header, it acts weird in IE9. In IE9 the rows don't get selected but Firefox works well.

After doing some experimentation it seemed that the RadFormDecorator was creating problem. So I had to use DecoratedControls="All" ControlsToSkip="CheckBoxes" in the RadFormDecorator and it worked perfectly fine in IE9 as well. But the checkbox now doesn't show the decorated checkbox.

This is just to keep you informed so that if anyone else faces the same problem it might be of help.




Jayesh Goyani
Top achievements
Rank 2
 answered on 30 Aug 2011
1 answer
104 views
I would think that the MaxFileInputsCount would be the count of actual files allowed, but not always.  As with the example below, adding a description field, the count is apparently twice the number of actual file inputs added.

So to allow 5 file inputs for example, you would need to set MaxFileInputsCount to 10 in this particular case.

I'm assuming this is from the addition of the description field, I haven't tested it with other scenarios using additional fields.


function OnClientAddedHandler(sender, eventArgs)
{
    var inputRow = eventArgs.get_row();
    var uList = inputRow.parentNode;
    var count = 0;
    // add a new row for the description field
    newRow = document.createElement("li");
    count++;
    uList.insertBefore(newRow, inputRow);
    var label = document.createElement("span");
    label.innerHTML = "Description: ";
    label.style.fontSize = 12;
    label.id = label.name = sender.getID("DescLabel");
    input = document.createElement("input");
    input.type = "text";
    input.id = input.name = sender.getID("DescValue");
    newRow.appendChild(label);
    newRow.appendChild(input);
}
Peter Filipov
Telerik team
 answered on 30 Aug 2011
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?