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

I am new to working with Telerik stuff, can someone tell me how this RadGrid is getting populated:

 

<telerik:RadGrid ID="ActivityTypeSkillGrid" runat="server" AllowAutomaticDeletes="True" AllowAutomaticInserts="True"
    AllowAutomaticUpdates="True" AllowPaging="True" AutoGenerateColumns="False" GridLines="None"
    Skin="WebBlue" Width="822px" PageSize="20" Visible="false" OnItemCommand="Grid_ItemCommand"
    OnItemInserted="Grid_ItemInserted" OnItemDeleted="Grid_ItemDeleted" OnItemUpdated="Grid_ItemUpdated"
    AllowFilteringByColumn="true" OnItemDataBound="Grid_ItemDataBound" AllowSorting="true">
Viktor Tachev
Telerik team
 answered on 08 Apr 2016
1 answer
132 views
I have instances where we do not want to allow a user to upload a file. I have set the control enabled=false, but this still allows the file selection dialog box to popup when the user clicks on the disabled control. How do I totally disable this server-side. I'm using vs2008 - vb.net
Magdalena
Telerik team
 answered on 08 Apr 2016
1 answer
164 views

Radgrid update command is not getting triggered. During Update ItemCommand Event is also not getting triggered.

Below is the code,

 

<telerik:RadGrid ID="rgdUsers" runat="server" AllowPaging="True" ShowFooter="false"
                AllowSorting="True" AutoGenerateColumns="False" ShowStatusBar="false"
                OnNeedDataSource="rgdUsers_NeedDataSource" AllowFilteringByColumn="true" EnableLinqExpressions="false" Width="100%"
                OnItemCommand="rgdUsers_ItemCommand" OnUpdateCommand="rgdUsers_UpdateCommand">
                <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                <GroupingSettings CaseSensitive="false" />
                <MasterTableView CommandItemDisplay="Top" DataKeyNames="UserId">
                    <Columns>

<Columns>

 <EditFormSettings EditFormType="Template">
                        <FormTemplate>
                            <table width="200px" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>Name
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right" colspan="2">
                                        <asp:Button ID="btnUpdate" Text='<%# (Container is GridEditFormInsertItem) ? "Insert" : "Update" %>'
                                            runat="server" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' CausesValidation="false"></asp:Button>&nbsp;
                                    <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"
                                        CommandName="Cancel"></asp:Button>
                                    </td>
                                </tr>
                            </table>

                        </FormTemplate>

                    </EditFormSettings>

                </MasterTableView>
                <%--<ClientSettings>
                <ClientEvents OnRowDblClick="RowDblClick" OnPopUpShowing="onPopUpShowing" />
            </ClientSettings>--%>
            </telerik:RadGrid>

 

protected void rgdUsers_UpdateCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {

        }

        protected void rgdUsers_ItemCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {

        }

 

Can someone help me to know where did I go wrong

Viktor Tachev
Telerik team
 answered on 08 Apr 2016
5 answers
255 views

I'm attempting to implement a client-side expand-only-one-group function for a relatively simple RadGrid using the 2016Q1 release. I had thought it'd be as simple as:

<script type="text/javascript">
  function rgInspection_GroupExpanding(sender, eventArgs) {
    sender.get_masterTableView().collapseAllGroups()
  }
</script>
<telerik:RadGrid DataSourceID="sdsInspection" ID="rgInspection" runat="server" ShowHeader="False">
  <ClientSettings AllowGroupExpandCollapse="True">
    <ClientEvents OnGroupExpanding="rgInspection_GroupExpanding" />
  </ClientSettings>
  <MasterTableView DataSourceID="sdsInspection" GroupLoadMode="Client" GroupsDefaultExpanded="False">
    â€¦
    <GroupByExpressions>
      <telerik:GridGroupByExpression>
        <SelectFields>
          <telerik:GridGroupByField FieldName="Title" />
        </SelectFields>
        <GroupByFields>
          <telerik:GridGroupByField FieldName="DisplayOrder" SortOrder="Ascending" />
        </GroupByFields>
      </telerik:GridGroupByExpression>
    </GroupByExpressions>
  </MasterTableView>
</telerik:RadGrid>

but that doesn't work.

So I tried expanding all of the groups by clicking them, then running $find("ctl00_cphMain_rgInspection").get_masterTableView().collapseAllGroups(); from the console. It returned 'true' but didn't actually collapse anything. I tried again specifying the optional argument: 0 returns true, everything else returns false, none of the groups actually collapse. I'm at my wits end here and can't for the life of me figure out if it's something I'm doing wrong or a legitimate bug.

I can't have the page postback until the final submission, so using a server-side expand-only-one solution isn't going to work for me. Any help would be greatly appreciated.

Kostadin
Telerik team
 answered on 08 Apr 2016
4 answers
411 views

Good Day All,

 

I have a raddatePicker in a Raddataform, i need to style it to suite our dataform look and feel, however i cant seem to get the right property for it to over ride the default style that have been applied.

 

If you look in the screen shot, i want to change the color of the date when i select it, and as well the color of the date\time in the textbox when i select it.

I have circled the Items that i want to change using my custom style sheet, please let me know if i can change the selected styles...

 

 

Maria Ilieva
Telerik team
 answered on 08 Apr 2016
11 answers
425 views
HI 
i have a grid which generates automatic columns. the reson is that my source (stored procedure ) returns me the name of an Fund and N additional date columns

i like the set the FilterCheckListEnableLoadOnDemand  = true on column Fund_Code that the user will be able to select multiple Fund_Codes for his filter.

Actual im doing it in grdMultiNAV_ColumnCreated event, but it doesn't work. 
************************
                GridBoundColumn column = e.Column as GridBoundColumn;
                column.FilterCheckListEnableLoadOnDemand = true;
                column.AutoPostBackOnFilter = true;
************************
and i do have set OnFilterCheckListItemsRequested="grdMultiNAV_FilterCheckListItemsRequested" on the grid with proper code behind 

do i set FilterCheckListEnableLoadOnDemand = true; in the wrong event ? 

thanks for your help 

cheers
Dennis
Maria Ilieva
Telerik team
 answered on 08 Apr 2016
4 answers
796 views

Hi all, 

I have a problem exporting PDFs... Basically when my grid contains content in Arabic it exports as ###. 

another question, can i add header and footer template to my exported file "logo, address ..."

Attached screen for the exported pdf view

Thanks for any help,
 

kholoud

Daniel
Telerik team
 answered on 08 Apr 2016
1 answer
98 views

We have been using the Telerik.Web.UI and Telerik.Web.UI.Skins dlls for years. We just upgraded to 2016 Q1. The upgrade added references to a BUNCH of additional dlls - Telerik.Web.Spreadsheet, Telerik.Windows.Documents.Core, Telerik.Windows.Documents.Flow, Telerik.Windows.Documents.Spreadsheet, Telerik.Windows.Zip. None of which we use. Do we now have to ship those dlls? Or is there a way to remove those references and ship a lighter package?

 

 

Pavlina
Telerik team
 answered on 08 Apr 2016
7 answers
153 views

 

In our grid (EditMode="Batch", InsertItemDisplay="Bottom", EditType="Cell", OpenEditingEvent="Click") we want to add a new row to the grid if the user clicks on any cell in the last row.

I made a function to call for OnBatchEditOpened. If it finds you are in the bottom row, it creates a new row below it by running batchManager.addNewRecord(masterTable)

That works, which triggers my OnRowCreated function, which I want. In there, it runs batchManager.changeCellValue for multiple columns in the new row to initialize their values.

However, each of those initializing statements (done via changeCellValue) triggers my original function for OnBatchEditOpened, creating a loop. I try to avoid it by creating temp variables outside the functions that skip that function if OnRowCreated is running. It kind of works. But even so, afterwards, the original cell is no longer in edit mode, which we want.

So now in the original call to OnBatchEditOpened, I'm storing a temp variable of the original cell, which I then try to re-open via batchManager.openCellForEdit(cellTemp), but it doesn't always work. And even when it does, the function now calls itself because a cell is being opened!

Ugh!

All that said, I must be going about this the wrong way. So back to the original issue...

Without going through dodgy javascript acrobatics, how can I click on a cell to edit it, but if it's in the bottom row, create a new row below it, yet keep (or resume?) the original cell in edit mode. There must be an easier way than what I'm doing to avoid loops, temp vars, and with robust code, but I've no clue what it is. Please help.

 

Eyup
Telerik team
 answered on 08 Apr 2016
4 answers
271 views

I have a RadPivotGrid that works perfectly in IE and Firefox but on Chrome and Safari it puts a large white column instead of the vertical scroll bar, if the number of lines does not require vertical displacement( verticalScrollBar should be set to no display).

The attached images show the difference. I've  tried using a page lenght that requires vertical scroll but the last page allways has the same problem.

I'm using Telerik version 2015.2.826.40.

I've tried modify the CSS with no result.

Am i the only one with this problema? Any ideas?

Thanks for any help.

The definition of the RadPivotGrid:

<telerik:RadPivotGrid ID="Gconsulta" runat="server" AllowPaging="True" Width="100%" AllowFiltering="true" enableConfigurationPanel="true"<br>            OnCellDataBound="Gconsulta_CellDataBound" AllowSorting="True" Skin="Default" ShowFilterHeaderZone="false" ShowColumnHeaderZone="true"<br>            OnPivotGridCellExporting="Gconsulta_PivotGridCellExporting" ShowRowHeaderZone="false" ShowDataHeaderZone="false"<br>            OnPivotGridBiffExporting="Gconsulta_PivotGridBiffExporting"<br>            OnNeedDataSource="Gconsulta_NeedDataSource" PageSize="20"><br>            <TotalsSettings GrandTotalsVisibility="RowsOnly" /><br>            <PagerStyle Mode="NumericPages" Font-Size="Small" Font-Italic="true"<br>                AlwaysVisible="true" Height="30px" BackColor="Transparent" /><br>            <Fields><br>                <telerik:PivotGridRowField DataField="TipoCli" Caption="TipoCliente" ZoneIndex="0" meta:resourcekey="TipoCli"><br>                    <CellStyle Width="9%" ForeColor="Red" Font-Size="X-Small" Font-Bold="true"></CellStyle><br>                </telerik:PivotGridRowField><br>                <telerik:PivotGridRowField DataField="Cliente" Caption="Cliente" ZoneIndex="1"<br>                    meta:resourcekey="Cliente"><br>                    <CellStyle Width="16%" ForeColor="Blue" Font-Size="X-Small"></CellStyle><br>                </telerik:PivotGridRowField><br>                <telerik:PivotGridColumnField DataField="Ano" SortOrder="Descending" meta:resourcekey="Ano"><br>                </telerik:PivotGridColumnField><br>                <telerik:PivotGridColumnField DataField="NomeMes" Caption="Mes" meta:resourcekey="Mes"><br>                </telerik:PivotGridColumnField><br>                <telerik:PivotGridAggregateField DataField="Vendas" Caption="Vendas" Aggregate="Sum"<br>                    DataFormatString="{0:# ##0.00 €}" GrandTotalAggregateFormatString="{0:# ##0.00 €}"<br>                    TotalFormatString="{0:# ##0.00 €}" meta:resourcekey="Vendas"><br>                    <CellStyle Width="100px" /><br>                </telerik:PivotGridAggregateField><br>                <telerik:PivotGridAggregateField DataField="Quantidade" Aggregate="Sum" GrandTotalAggregateFormatString="{0:N0}"<br>                    TotalFormatString="{0:N0}" meta:resourcekey="Quantidade" Caption="Quantidade"><br>                    <CellStyle Width="80px" /><br>                </telerik:PivotGridAggregateField><br>                <telerik:PivotGridAggregateField DataField="Bonus" Aggregate="Sum" GrandTotalAggregateFormatString="{0:N0}"<br>                    TotalFormatString="{0:N0}" meta:resourcekey="Bonus" Caption="Bonus"><br>                    <CellStyle Width="70px" /><br>                </telerik:PivotGridAggregateField><br>            </Fields><br>            <ClientSettings EnableFieldsDragDrop="true"><br>                <Resizing AllowColumnResize="true" EnableRealTimeResize="true" /><br>                <Scrolling AllowVerticalScroll="true" SaveScrollPosition="true" ScrollHeight="535px" /><br>            </ClientSettings><br>        </telerik:RadPivotGrid>

Joao
Top achievements
Rank 1
 answered on 08 Apr 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?