Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
121 views
Hi there,

I wanted to load context menus based on dynamic conditions.
For example
1) In scheduler If there are some appointments in some specific slot, there should be option like "Cancel All Appointments". And If there is no appointment for that slot, then there should be option like "Add New Appointment" as Context Menus.
2) Suppose I set some disabled slot for some slots in scheduler by cssClass and now I wanted to show context menu option "Make Available" only to those slots?

Is there any way I achieve this functionality? any reply in short time will be appreciated.

Thanks in advance,

Mangesh
Pankaj
Top achievements
Rank 1
 answered on 08 Jun 2018
11 answers
354 views

When I generate pdf from  , it generates SECURED pdf by default. So when I check the security of the pdf, it says Security Method = Password .

Below are my export settings:

 <telerik:RadEditor ID="dummyradEditorExport" ContentFilters="DefaultFilters,PdfExportFilter"  ExportSettings-Pdf-UserPassword=""
                                        Height="500" Skin="Default" Width="685" runat="server" ImageManager-EnableImageEditor="true" NewLineMode="Div">
                                        <ExportSettings FileName="ExporttoPDF" OpenInNewWindow="true" Pdf-PageBottomMargin="1.0 cm"
                                            Pdf-PageLeftMargin="1.5 cm" Pdf-PageRightMargin="1.5 cm" Pdf-PageTopMargin="1.0 cm" 
                                             Pdf-AllowCopy="true" Pdf-AllowPrinting="true" Pdf-AllowModify="true" >
                                        </ExportSettings>

Please suggest why its doing this because my users are not able to open this pdf on iOS and Edge. 

Aung
Top achievements
Rank 1
 answered on 08 Jun 2018
0 answers
69 views

Hello, i have RadCombobox with ItemTemplate (Icon  + Text):

<telerik:RadComboBox ID="rcCombo" runat="server" Width="500" >
    <ItemTemplate>
        <table>
            <tr>
                <td>
                    <span class='<%# DataBinder.Eval(Container.DataItem, "ICON") %>'>
                    </span>
                </td>
                <td>
                    <%# DataBinder.Eval(Container.DataItem, "TEXT") %>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</telerik:RadComboBox>

 

and i made reorderig at first posision in Client via javascript

var combo = $find("<%= rcCombo.ClientID %>");
var items = combo.get_items();
combo.trackChanges();
var comboItem = combo.findItemByValue('value');
items.insert(0, comboItem);
comboItem.highlight();
combo.updateClientState();
combo.commitChanges();

 

and after repositioning of comboitem ItemTemplate is not showing - no ICON only simple Text.

Do i need to create ClientItemTemplate for repositioned items or any recomendation?

thanks

Yano
Top achievements
Rank 1
 asked on 08 Jun 2018
3 answers
206 views
I am getting duplicate paging (page next, page previous etc) when the Grid is setup with Bootstrap them and Lightweight render. (see attached screen capture) Any ideas?
insomnia
Top achievements
Rank 2
Iron
 answered on 08 Jun 2018
2 answers
145 views

Hello,

I have a radgrid which is bound with records from one tables. I want to bind radGantt chart in expanded grid row. Is it possible to display Gantt chart inside grid?

I have two tables, e.g. A & B

I am bindding A to grid, and I want to show it's relevant tasks with statuses in ganttchart when expand grid row. I don't want any updates on ganttchart. It is just a view purpose. Also I am not caring for predessor and successors.

Please let me know if such requirement is possible or not. If not then suggest how can I implement this functionality using any other controls.

Raghu
Top achievements
Rank 1
 answered on 08 Jun 2018
0 answers
47 views

Hello,

 

The bug can best be described as the following:

When setting a radgrid datasource with an IEnumerable, filterexpressions behave not as expected.

 

Reproduce:

Create a radgrid with EnableLinqexpressions set to true, and set its datasource to an IEnumerable. Set a filter on a column. Check the filterexpression that is being generated. Notice the filterexpressions is NOT a valid linqexpression, but has the following format: "([CustomerID] LIKE '%ALFKI%')";

Now set the datasource to a list instead of an IEnumerable. Notice that suddenly the filterexpressions that is generated is different.

 

See also your Filterexpression documentation

 

Issue:

I have a requirement where i have to set an initial filter in a grid when opening the page. But we also have export buttons on that page that use the grids filterexpression to filter a dataset for the export. This no longer worked because the filterexpression was no longer a valid linq expression. In my opinion this behavior is not very intuitive, and i could not find any documentation about it.

 

Regards,

Johan

 

Johan
Top achievements
Rank 1
 asked on 08 Jun 2018
2 answers
7.2K+ views
Hi,
I have a radgrid with several rows generated from a sql query. I want to update those rows with different statuses (update status column in a database) dependent on the result meaning that rows should be updated with different statuses. Rows in radgrid are selectable (via checkbox) and three buttons triggers three different types of updates (status update). I will try to explain scenario with pseudo code below.

Select rows you will update to status 1
Button1 clicked
{
    Update status = 1 for selected rows in radgrid
    Remove updated/selected rows from radgrid
    Reload grid with remaining rows/items
}
Select rows you will update to status 2
Button2 clicked
{
    Update status = 2 for selected rows in radgrid
    Remove updated/selected rows from radgrid
    Reload grid with remaining rows/items
}
Select rows you will update to status 3
Button3 clicked
{
    Update status = 3 for selected rows in radgrid
    Remove updated/selected rows from radgrid
    Reload grid with remaining rows/items
}

I'm using C# and asp.net so kindly translate above pseudo code to C# code.

Any kind of help/advice is highly appreciated!

Rgds,
Jesper
Sriram
Top achievements
Rank 1
 answered on 07 Jun 2018
1 answer
163 views

I am dynamically creating an ajaxified RadGrid in an asp:UpdatePanel in a user control.

The RadGrid is created in Page_Init,and the MasterTableView.CommandItemSettings.ShowExportToExcelButton set true;

The RadGrid is added to the RadAjaxManagerProxy AjaxSettings in Page_Load, in if (!Page.IsPostBack).

My problem is that after postback, the export button is not set to trigger a postback (it's not excluded from Ajax). I gather it is excluded automatically on the original page load when the RadGrid is added to the AjaxSettings, but it doesn't happen after a ajax update to the RadGrid (sorting, or filtering, for example).

I read this article, but I can't resolve my problem: Export from Ajaxified Grid

If I inspect the button in the browser before and after an ajax update this is what I see:

BEFORE:
<input name="ctl00$MainContent$ucSystems$rgSystems$ctl00$ctl02$ctl00$ExportToExcelButton" title="Export to Excel" class="rgExpXLS" id="ctl00_MainContent_ucSystems_rgSystems_ctl00_ctl02_ctl00_ExportToExcelButton" onclick="javascript:__doPostBack('ctl00$MainContent$ucSystems$rgSystems$ctl00$ctl02$ctl00$ExportToExcelButton','')" type="button" value=" ">

AFTER:

<input
name="ctl00$MainContent$ucSystems$rgSystems$ctl00$ctl02$ctl00$ExportToExcelButton"
title="Export to Excel" class="rgExpXLS" id="ctl00_MainContent_ucSystems_rgSystems_ctl00_ctl02_ctl00_ExportToExcelButton"
type="submit" value=" ">

How can I get the postback on the ExportToExcelButton after an ajax update to the RadGrid?

Marin Bratanov
Telerik team
 answered on 07 Jun 2018
1 answer
395 views

Hi,
Wonder if someone could give me a hand with a problem.  I have a radgrid with two columns.  One column is a raddropdownlist with three static items.  The user changes the dropdownlist values as required and then clicks the SAVE button which invokes a code behind function.

At this point I iterate through the rows, getting the values of the two columns to then save manually in my database.

Whilst I can get the first databound column (menuname), what ever I do the raddropdownlist returns nothing.

I've tried various options including findcontrol, mastertable getdatakeyvalues, tablecells but everything returns nothing.

                   <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateColumns="False">
                        <GroupingSettings CollapseAllTooltip="Collapse all groups"></GroupingSettings>
                        <ClientSettings>
                            <Scrolling AllowScroll="True" UseStaticHeaders="True" />
                        </ClientSettings>
                        <MasterTableView EditMode="Batch">
                            <Columns>
                                <telerik:GridBoundColumn DataField="menuname" UniqueName="menuname" HeaderText="Plugin" ReadOnly="True">
                                    <HeaderStyle Width="200px" Font-Bold="True"/>
                                </telerik:GridBoundColumn>
                                <telerik:GridTemplateColumn HeaderText="Permission" DefaultInsertValue="None" UniqueName="Pluginperm" DataField="Pluginperm">
                                    <HeaderStyle Width="150px" Font-Bold="True"/>
                                    <ItemTemplate>
                                        <%# Eval("pluginperm") %>
                                    </ItemTemplate>
                                    <EditItemTemplate>
                                        <telerik:RadDropDownList ID="pluginpermRadDropDownList" runat="server" SelectedText="None" SelectedValue="None">
                                            <Items>
                                                <telerik:DropDownListItem runat="server" Text="None" ToolTip="No access" Value="N" />
                                                <telerik:DropDownListItem runat="server" Text="View" ToolTip="View only access" Value="V" />
                                                <telerik:DropDownListItem runat="server" Text="Admin" ToolTip="Full access to all options" Value="A" />
                                            </Items>
                                        </telerik:RadDropDownList>
                                    </EditItemTemplate>
                                    <HeaderStyle Width="150px"></HeaderStyle>
                                </telerik:GridTemplateColumn>
                                <telerik:GridBoundColumn FilterControlAltText="Filter column column" UniqueName="Pluginhidden" Visible="False">
                                </telerik:GridBoundColumn>
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>

I know "b = item("pluginperm").ToString" won't work - I've just put it in for completeness.

... in the code behind function 

          For Each item As GridDataItem In RadGrid1.Items
              Dim a As String
              Dim b As String
              a = item("menuname").Text
              b = item("pluginperm").ToString

          Next

I know "b = item("pluginperm").ToString" won't work - I've just put it in for completeness.

Any help would be really appreciated.

Craig


Marin Bratanov
Telerik team
 answered on 07 Jun 2018
0 answers
322 views

I have a grid that I want to make a specific cell only to be in edit mode and never go in view mode

 

RadGridControl.MasterTableView.BatchEditingSettings.EditType = GridBatchEditingType.Cell; (using the batcheediting with cell editing)

 

https://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

Like in this demo, I have a checkbox that I don't want to be shown in view mode, just in edit mode. Made a thing that the checkbox will work without clicking it twice(once to select the column and one to select the checkbox), it works with already saved items, but when i insert a new row the view mode doesn't display the checkbox, but the editing mode displays it.... I can't manage to show it in the view mode, so the only think is when I insert a new row to place it automatically in edit mode, can I even do this(without generating a lot of errors)?

Radu
Top achievements
Rank 1
 asked on 07 Jun 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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
Bronze
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?