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

Hi,

I'm sure that answer already exists, but I searched through the forum and couldn't find a solution. 

I have a batch mode grid that invokes a web service, during the OnBatchEditCommand event, when saving data.  The service performs the update and returns a DataTable which identifies the results of the insert/update/delete actions.  The results include a status, error message and datetime value for every row that was processed. 

To help the user, we have a GridTemplateColumn (seen below), containing an image used to depict the results.  If the status is "Ok", we want to display a green check mark.  If the status is "Error", we want to display a red 'X'.  As you can imagine, in order for the user to correct the error, we don't want to overwrite any data that they may have entered.  As such, we don't want to reset the grids DataSource.  (Note that we do validate the data prior to calling the web service, but need to be cautious.)

<telerik:GridTemplateColumn ItemStyle-Wrap="false" DataField="STATUS" FilterControlAltText="Filter STATUS column" HeaderText="Row Status" SortExpression="STATUS" UniqueName="STATUS">
<ItemTemplate>
<asp:Image runat="server" ID="RowStatus" ImageUrl='<%#"/_layouts/15/images/projname/MUE_" + Eval("STATUS") + ".png"%>' />
</ItemTemplate>
</telerik:GridTemplateColumn>

So, after obtaining the returned DataTable, we would like to loop through the grid's rows, setting the value of the GridTemplateColumn to the value provided in the DataTable (either "Ok" or "Error").  Doing so, will allow us to display the MUE_Ok.png or MUE_Error.png image.  Obviously, we're open to other solutions that meet our user's requirements.  Note that the initial call to retrieve data, performed during the NeedDataSource event, returns a DataTable that currently includes an "Ok" value (along with all of the other data values) for each row.  As such, each row initially shows the green check mark. 

 Thanks.

Konstantin Dikov
Telerik team
 answered on 29 Apr 2015
2 answers
182 views

Hello,

I'm working on a project that contains a RadTreeView.

When the user clicks on a node, it fires the JS event “OnClientClicking”.

 

Sometimes we need to set args.set_cancel(true), in order to prevent going to server side.

Therefore, the node that was clicked is not selected, nor is it highlighted.

How can I prevent the event from accessing the server side – yet select the node and highlight it?

Thanks,
Daniel.

Daniel
Top achievements
Rank 1
 answered on 29 Apr 2015
2 answers
192 views

Hello,

I'm working on a project that should contain a RadNumericTextBox.

The project requirements are that when the user clicks a button, a RadNumericTextBox will be created dynamically on the client side.

The RadNumericTextBox will contain a SpinButton and also validation of MinValue, MaxValue.

 

How to do this in Client-Side using JS?

Thanks,
Daniel

Daniel
Top achievements
Rank 1
 answered on 29 Apr 2015
1 answer
71 views

Good Morning,

I am new to the forum and I apologize for my English. I'm Italian.

I have developed a grid with 6 levels. I have this problem.

I want that the next detailTable, is expanded only if he are the row. if it is empty should not be possible to expand.
I do not want  this only on the first detailtable, but to the all.
How is possilble?

I've check the function "HideExpandColumnRecursive" but not work for me!

Any idea?

Thanks for your support.

 

Kostadin
Telerik team
 answered on 29 Apr 2015
5 answers
475 views
I'm looking to perform an additional calculation on the auto-calculated grand total columns.  The first column is a 'Total Revenue' column and the second is a 'Total Duration' column.  I'd like to divide 'Total Revenue' by 'Total Duration' and write this value to a new column.

How would I achieve this?
Konstantin Dikov
Telerik team
 answered on 29 Apr 2015
1 answer
140 views

Hello,

 Does Telerik have any tools that allow you to display a powerpoint on a web page?

Using asp.net

Marin Bratanov
Telerik team
 answered on 29 Apr 2015
7 answers
156 views
Hi,

I have a Radcombobox which is dinamically loaded as below:

private void LoadFilters()
        {
            ControladorInternacao controladorInternacao = new ControladorInternacao();
            List<InternacaoSetorDTO> listaSetores = controladorInternacao.ListarTodosSetores(AmbienteConexao.Usuario().Cnes);
            List<RadComboBoxItem> listaTodosSetores = new List<RadComboBoxItem>();
            foreach (InternacaoSetorDTO item in listaSetores)
            {
                listaTodosSetores.Add(new RadComboBoxItem(item.NomeSetor, item.CodInternacaoSetor.ToString()));
            }
 
            rcbFiltroSetor.DataSource = listaTodosSetores;
            rcbFiltroSetor.DataValueField = "Value";
            rcbFiltroSetor.DataTextField = "Text";
            rcbFiltroSetor.DataBind();
        }



And it's not showing the EmptyMessage. Instead it's showing directly the items from the datasource.

How can i  show a ".: Choose one :." item or make it show the EmptyMessage?

Nencho
Telerik team
 answered on 29 Apr 2015
3 answers
347 views

Hi

I have a RadGrid with skin ="windows 7" and works find and the alternating row color works like a charm.

Problem arisies when i have one of the column as sorted uisng GridSortExpression

Column which is used in GridSortExpression is not applied altrenatinmg row color - any advise would be appreciated and attached is the screen shot

and below is the code 

<telerik:RadGrid ID="rgRoleMappingL1" runat="server" AllowFilteringByColumn="True" AllowPaging="True" AllowSorting ="True" AutoGenerateColumns="False"
                                        CellSpacing="0" GridLines="None"
                                        OnNeedDataSource="rgRoleMappingL1_NeedDataSource" 
                                        OnPageSizeChanged="rgRoleMappingL1_PageSizeChanged" OnSortCommand="rgRoleMappingL1_SortCommand" PageSize="20" Width="100%" Skin="Windows7">
                                        <MasterTableView>
                                             
                                            <Columns>
                                                <telerik:GridBoundColumn DataField="RoleMapL1ID" AutoPostBackOnFilter="true" FilterControlAltText="Filter RoleMapL1ID column"
                                                    HeaderText="ID" UniqueName="RoleMapL1ID" Visible="false">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="BusinessRole" AutoPostBackOnFilter="true" FilterControlAltText="Filter BusinessRole column"
                                                    HeaderText="Business Role" UniqueName="BusinessRole" CurrentFilterFunction="Contains">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="AppRoleL1" FilterControlAltText="Filter AppRoleL1 column"
                                                    HeaderText="Application Role (Level1)" UniqueName="AppRoleL1" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Usertype" FilterControlAltText="Filter Usertype column"
                                                    HeaderText="Sponsor/Site User?" UniqueName="Usertype" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="DBL" FilterControlAltText="Filter DBL column"
                                                    HeaderText="DBL?" UniqueName="DBL" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Scope" FilterControlAltText="Filter Scope column"
                                                    HeaderText="Scope" UniqueName="Scope" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains" HeaderTooltip="Protocol,Country,Site">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Hierarchy" FilterControlAltText="Filter Hierarchy column"
                                                    HeaderText="Hierarchy" UniqueName="Hierarchy" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
                                                </telerik:GridBoundColumn>
                                                 <telerik:GridBoundColumn DataField="Expired" FilterControlAltText="Filter Expired column"
                                                    HeaderText="Disabled?" UniqueName="Expired" AutoPostBackOnFilter="true" CurrentFilterFunction="Contains">
                                                </telerik:GridBoundColumn>
                                                <telerik:GridBoundColumn DataField="Edit" FilterControlAltText="Filter Edit column"
                                                    HeaderText="" UniqueName="Edit" AllowFiltering="false">
                                                </telerik:GridBoundColumn>
                                            </Columns>
                                                <NoRecordsTemplate>
                                                    <div style="margin:10px">
                                                        There are no roles mapped at this time.
                                                    </div>
                                                </NoRecordsTemplate>
                                            <SortExpressions>
                                                <telerik:GridSortExpression FieldName="BusinessRole" SortOrder="Ascending" />
                                            </SortExpressions>
                                        </MasterTableView>
                                    </telerik:RadGrid>

Eyup
Telerik team
 answered on 29 Apr 2015
1 answer
114 views

hii all,

i want  to implement table  using below format in telerik.. plz help me

 ___________________________                                                                                             

      Name         |                             |

  -------------------|  address              |

     ID                |                             |

 ____________|______________|

 

Thanks in advance;

anju

Eyup
Telerik team
 answered on 29 Apr 2015
10 answers
578 views
I would like to hide the textbox on the RadDatePicker so that only the popup (calendar) Icon is displayed.  I tried settings RadDatePicker.DateInput.Visible =false....which hides the textbox, but it also seems to disable the popup button because when i click it the calendar is not displayed.  Am i missing something?  Thanks in advance.
Venelin
Telerik team
 answered on 29 Apr 2015
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?