Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
219 views
 used telerik:RadGrid batch editing; to fill this grid I used below syntax:

function GridBind(GridID, GridData) {
var TableView = GridID.get_masterTableView();
TableView.set_dataSource(GridData); TableView.dataBind();
}

To Invoke batcheditcommand I used below syntax. It’s written under non-postback button Javascript event:

function SaveAllChanges(sender,args) {
var batchManager = $find('<%=RadGrid1.ClientID%>').get_batchEditingManager();
var tableViews = [];
tableViews.push($find('<%=RadGrid1.ClientID%>').get_masterTableView());
batchManager.saveTableChanges(tableViews);
}

But unfortunately SaveAllChanges perform a postback and invoke  RadGrid1_BatchEditCommand,my requirement is with out post back ,i want grid batch all change on server side.Any type of suggestion will be acceptable.
Angel Petrov
Telerik team
 answered on 09 Mar 2015
3 answers
271 views
Hi All,
I'm using radgrid, but when using PagerStyle-Mode="NextPrevNumericAndAdvanced" it does not work,Here is the code :
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="AdvancedRadGridResults">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="AdvancedRadGridResults" />
                    <telerik:AjaxUpdatedControl ControlID="iframeBarcode"/>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
 <telerikHelper:AdvancedRadGrid ID="AdvancedRadGridResults" runat="server" SkinID="AdvancedRadGridArDefault" CellSpacing="0" GridLines="None" AutoGenerateColumns="False" ShowGroupPanel="True"
                    OnNeedDataSource="AdvancedRadGridResults_NeedDataSource" OnItemCommand="AdvancedRadGridResults_ItemCommand" OnInsertCommand="AdvancedRadGridResults_InsertCommand"
                    OnItemDataBound="AdvancedRadGridResults_ItemDataBound" OnUpdateCommand="AdvancedRadGridResults_UpdateCommand" OnDeleteCommand="AdvancedRadGridResults_DeleteCommand"
                    OnItemCreated="AdvancedRadGridResults_ItemCreated"  >

                    <ClientSettings>
                        <Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="400px" />
                    </ClientSettings>

                    <MasterTableView DataKeyNames="File_ID" AllowPaging="True" PagerStyle-AlwaysVisible="true"  PagerStyle-     Mode="NextPrevNumericAndAdvanced" >
                        
                        <CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

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

                        <ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
     
                    </MasterTableView>
                </telerikHelper:AdvancedRadGrid>

            <iframe id="iframeBarcode" runat="server" src =""  style="display:none;"></iframe>
</asp:Content>
How to fix this problem,
Thanks .






Awad
Top achievements
Rank 1
 answered on 09 Mar 2015
3 answers
42 views
Folks, thanks for taking the time to read this.
I have just started with Telerik controls and have found myself in a quandary.

I have an ajax manager on my page, an AysnUpload and a datarepeater, populated on the server side. I upload a file to the server after more info has been requested from the user, via ajaxManager.ajaxRequest(), THEN, when the file is uploaded...this works by the way...I want to refresh the datarepeater.

I have the following in my aspx file:
                            
<telerik:RadAjaxManager ID="ajaxManager" runat="server" EnablePageHeadUpdate="False">
   <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="documentUploader">
               <UpdatedControls>
                   <telerik:AjaxUpdatedControl ControlID="grdDocuments" />
                  </UpdatedControls>
          </telerik:AjaxSetting>
       </AjaxSettings>
 </telerik:RadAjaxManager>

Now my confusion...what "ajax event" will be fired on "grdDocuments"? Meaning, what event do I hook up on the grid server side to refresh the data repeater via the AjaxUpdatedControl setting? Or am I misunderstanding the setting itself?

I am at a loss to understanding the AjaxUpdatedControl setting. In my server-side handling of the file uploaded via ajax I do rebind the grid and it fires, it just does not refresh on the page...unless I reload of course.

Please don't hesitate to ask for any further info.
Thanks in advance

Simon
Top achievements
Rank 1
 answered on 09 Mar 2015
1 answer
192 views


I used telerik UI 2015, I try input hierarcy in rad grid with datepicker in edit from. up select date, but if I action radgrid (click add new record) that raddatepicker running proper.

Problem when first open that page as always postback when I clicked date picker
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                     <telerik:AjaxUpdatedControl ControlID="gvList" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="containerDiv">
                <UpdatedControls>
                   <%--<telerik:AjaxUpdatedControl ControlID="rdpRaiseDateHeader" />
                   <telerik:AjaxUpdatedControl ControlID="rdpEndDateHeader" />--%>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="gvList">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="gvList"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <%--<telerik:AjaxSetting AjaxControlID="containerDiv">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rdpRaiseDate"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>--%>
            <%--<telerik:AjaxSetting AjaxControlID="rdpRaiseDate">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rdpRaiseDate" />
                </UpdatedControls>
            </telerik:AjaxSetting>--%>
           <telerik:AjaxSetting AjaxControlID="rdpRaiseDate">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rdpRaiseDate"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rdpEndDate">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rdpEndDate"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
.

Please informed about fix that issue, I try fixed issue but not resolved.

Capture issue is attached.





Maria Ilieva
Telerik team
 answered on 09 Mar 2015
1 answer
459 views
Hey everyone,

I have a RadListBox with a few RadListBoxItems inside it. They have varying text where some are pretty small while others can be large. I would rather set the width of the RadListBox to the width of the largest length text while also setting a defined static height.

I have set the width with CSS like so:
.RadListBox_Default
    {
        width:auto !important;
    }

That part works great on its own. But if I add a static height to either the CSS to make it look like:
.RadListBox_Default
    {
        width:auto !important;
        height:300px;
    }
or straight to the ascx, the RadListBox messes up. The width becomes 2 pixels and the RadListBox becomes unusable.

I was wondering if there was a way to get the width to be dynamic while having the height be static. Any help/thoughts are appreciated, thanks!


.RadListBox_Default
    {
        width:auto !important;
    }

.RadListBox_Default
    {
        width:auto !important;
    }

.RadListBox_Default
    {
        width:auto !important;
    }

Magdalena
Telerik team
 answered on 09 Mar 2015
5 answers
205 views
Hi,

I'm using the recursive selection feature which works fine so far, but for rows in my TreeList which aren't selectable it has some drawbacks.

private void TreeListItemDataBound(object sender, TreeListItemDataBoundEventArgs e)
{
   var item = e.Item as TreeListDataItem;
   if (item != null)
   {
      if(myCondition)
      {
         item["Select"].Controls[0].Visible = false;
      }
   }
}

If I use the recursive selection feature, these rows are highlighted too. It would be totally sufficient if these rows weren't highlighted (being in the SelectedRows list is ok - I can filter them out). How can I alter the Row so it isn't highlighted?

Thanks!
Radoslav
Telerik team
 answered on 09 Mar 2015
1 answer
159 views
Hi,

I have a question about the grid row. if we have more record returned in the grid, then every row has a same height. However, if we have less records returned in the grid, for example just one or two rows displayed in the grid, then the row height changed much taller than normal. Is that any way to not enlarge the row height no matter how many records display in the grid?

There is another question is about dropdown list, i need to set the value of the dropdown list from the code (from value passed by controller), how should i do that?

Thanks
Tiffany
Kostadin
Telerik team
 answered on 09 Mar 2015
2 answers
141 views
Hi,

I have quite a few questions re the Gantt control.  Apologies for grouping into one post but I don't want to create a ton of individual messages.

1) The Add Task button.  I have hidden the bottom command bar with the style below, is this the best current way to hide it and in the future could the command bars be toggled via a tag.
    
.rgtToolbar.rgtFooter { display:none !important; }

2) Export to PDF.  When exporting the Gantt chart the buttons are included as if it was a screen shot.  Is there a way to stop that?  Maybe disable the button before PDF generation and re-enable afterwards.

3) Ajax.  I use a custom icon for teh Ajax control.  Works fine on normal controls but the Gantt control seems to revert back to the skin based CSS.  I've looked at the source and nothing stands out as being the reason for the issue.  Any suggestions?

div.RadAjax_Black .raDiv { background-image: url(/Images/loading.gif); }

4) Task colours.  With the current release what is the best way to assign custom colours to individual tasks?

5) Custom fields.  I have seen an article that discusses addition of fields using a custom provider.  Does that approach end up adding the custom field to the admin popup form?  The article that I am referring to is here: http://www.telerik.com/help/aspnet-ajax/gantt-custom-tasks-field.html

Again apologies for grouping the queries.

Thanks in advance for any assistance.

Regards

Jon
Jon
Top achievements
Rank 1
 answered on 09 Mar 2015
3 answers
115 views
If I add the following aggregate to my Grid...

Aggregate="Sum" DataFormatString="{0:C}" FooterAggregateFormatString="<b>{0:C}</b>"

... and then filter, I get the following error

Sys.WebForms.PageRequestManagerServerErrorException: Cannot find column [it.DivisionID].

This is using an Entity Data Source. 

How do I fix?

Full column specification (Division column was the example Filter column):

<telerik:GridDropDownColumn UniqueName="Division" HeaderText="Division" DataField="DivisionID" DataSourceID="edsDivision" ListValueField="DivisionID" ListTextField="Division1" SortExpression="Division.Division1" AutoPostBackOnFilter="true" CurrentFilterFunction="EqualTo" ShowFilterIcon="true" ReadOnly="true" FilterControlWidth="90px">
                    <HeaderStyle Width="100px" />
                    <ItemStyle Width="100px" />
                    <FilterTemplate>
                        <telerik:RadComboBox ID="ddlDivision" DataSourceID="edsDivision" DataValueField="DivisionID" DataTextField="Division1"
                            Height="200px" AppendDataBoundItems="true" SelectedValue='<%# ((GridItem)Container).OwnerTableView.GetColumn("Division").CurrentFilterValue %>'
                            runat="server" OnClientSelectedIndexChanged="DivisionChanged" Width="80px">
                            <Items>
                                <telerik:RadComboBoxItem Text="All" />
                            </Items>
                        </telerik:RadComboBox>
                        <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
                            <script type="text/javascript">
                                function DivisionChanged(sender, args) {
                                    var tableView = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                                    tableView.filter("Division", args.get_item().get_value(), "EqualTo");
                                }
                            </script>
                        </telerik:RadScriptBlock>
                    </FilterTemplate>
                </telerik:GridDropDownColumn>

<telerik:GridNumericColumn UniqueName="DebtAgeCurrent" DataField="DebtAgeCurrent" SortExpression="DebtAgeCurrent" HeaderText="Current Debt" ShowFilterIcon="true" ReadOnly="true" CurrentFilterFunction="GreaterThanOrEqualTo" AutoPostBackOnFilter="true" NumericType="Currency" FilterControlWidth="55px"
                    Aggregate="Sum" DataFormatString="{0:C}" FooterAggregateFormatString="<b>{0:C}</b>">
                    <HeaderStyle Width="100px" />
                    <ItemStyle Width="100px" />
                </telerik:GridNumericColumn>


Peter
Top achievements
Rank 1
 answered on 09 Mar 2015
7 answers
175 views
Is there a way to use the RadNavigation to select a page in RadPageView to be displayed? 
Plamen
Telerik team
 answered on 09 Mar 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?