Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
241 views

Hi All,

I am trying to provide read-only access to certain users. This user should not be able to remove the uploaded file. 

How do I hide/disable the remove button from server side? 

 

 

Neil
Top achievements
Rank 2
 updated question on 20 Apr 2023
0 answers
117 views

So we have BatchEdit working and used in multiple pages. On one though one of the fields that gets edited is via a RadComboBox. No issues with changing, submitting with a CommandButton to save. All good. The only issue is that when you change the item in the Combo a little red glyph shows up in the cell upper left corner to indicate the data is changed. This happens with other cells as well and is expected and good.

When we click the save button the BatchEditCommand event fires and the data is saved.  If the Combo box was changed the data is changed correctly, but the Red Glyph doesnt go away. Even if we rebind the grid the glyph doesnt go away. If we change only cells that are just textboxes the Red Glyph goes away after the save.

What are we missing?

Keith
Top achievements
Rank 1
Iron
Iron
 asked on 19 Apr 2023
0 answers
172 views
In my application, there is Telerik combobox.
which gets the user email as input and lists the available user emails

When manually typing the value it gave the exact match 

But when there is some change like using small letters instead of first letter caps
radcombobox not returning the exact match.

your suggestions are appreciated

Thanks
Vaithilingam
Top achievements
Rank 1
 asked on 19 Apr 2023
0 answers
130 views

I've download the demo code for the Predefined table styles code, and I noticed that the CSS dropdown isn't limited to the classes in that document. Basically, any class on the page hosting the editor becomes available in there.

So if I add style .aardvark to the head of the page hosting the RadEditor, it becomes the first option in the CSS Dropdown despite it not appearing in TableLayoutCss.css. We have a lot of classes across our application that are applied to every page we render, so we don't want them all appearing in here.

In my case, the HTML users define here is rendered to PDF in the back office by a different tool, so I don't want any classes available for selection in the front end that aren't specifically in TableLayoutCss.css.

Has anyone hit this problem and managed to overcome it or is this expected behaviour of the TableLayoutCssFile option? As things stand, I'm having to tell the users to avoid using the CSS dropdown and go for the 'More Table Styling' button instead, but this clearly isn't as portable a solution as it should be!

Paul
Top achievements
Rank 1
 asked on 18 Apr 2023
0 answers
506 views

I inherited an intranet that was developed by one of our in-house developers years ago, he has since left.  When he left his duties passed on to someone else and after various forms of attrition, have fallen to me. Any documentation he may have provided never made its way down to me so I'm completely flying blind. Anyway, I had managed to fix an issue with one of the other Telerik pages because I found the section in the aspx that referred to the <asp:SqlDataSource and then was followed by a bunch of SQL code so I was able to update the parts of that that needed to be updated and that one works fine now. But a new problem has creeped up with another page that looks like it pulls data from our ERP regarding timesheet data. I would assume it must be getting that from some sort of SQL statement as that is the only way into that system but there is no SQLDataSource tag on this page.

Where should I be looking in the apsx file to identify where the data is coming from for that page? Since there is no SQL call on the page itself I assume that its calling something else and that has the SQL query in it, but I can't find it for my life.

Thanks.

Brian
Top achievements
Rank 1
 asked on 14 Apr 2023
2 answers
343 views
I have a RadPanelBar with an RadPanelItem collection declared in the markup (it's not built dynamically).  On the page load in the codebehind, I disable all but the first panel item.  I disable panel items like this:

RadPanelBar1.FindItemByValue("Quantity").Enabled = false;

Then, when a RadGrid row is double-clicked in first, enabled RadPanelItem, I use the RadGrid's client-side API to enable the next panel item via Javascript.  The Javascript performs as expected and enables the panel item, but all of the controls within the newly enabled panel are disabled.

I just discovered this after making a modification to a page.  Previously, we set these panels to disabled via Javascript using the following code:

panel.findItemByValue("PriceStructure").disable();

This disabled only the panel item itself and not the controls within the panel item.  However, now we need to disable these in the codebehind, but all the controls within the item become disabled.

How do I keep this from happening when disabling panel items in the codebehind?
Attila Antal
Telerik team
 answered on 13 Apr 2023
0 answers
144 views

I have a diagram with fixed width and height, and on this diagram I have tons of generated shapes in a tree layout.

The shapes cannot be fully displayed in the diagram, only a part of them can be seen. I need to zoom out to shrink all the shapes in order to see the complete picture. However, because there are a lot of shapes, after zooming out, each shape becomes very small and cannot be seen clearly. I hope the diagram can have a horizontal and vertical scrolling feature, so that I can scroll to view the entire picture. I did not find the scrolling feature for the diagram in the documentation.  (Pan and drag are not what I'm looking for.)

How can I implement this?

Thanks.

yuki
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 13 Apr 2023
0 answers
98 views

I don't know why the title text of sliding pane is upside down. This sliding pane is a 'left-to-right' pane, so the titel text should be facing left.

Can someone help me?


<div>
        <telerik:RadSplitter runat="server" ID="splitter" Width="1500px" Height="1000px" Orientation="Vertical" RenderMode="Lightweight">
            <telerik:RadPane runat="server" ID="Pane1" Scrolling="None" Width="22px">
                <telerik:RadSlidingZone runat="server" ID="SlidingZone1" Width="22px" SlideDirection="Right">
                    <telerik:RadSlidingPane runat="server" ID="SlidingPane1" Width="600px" EnableDock="false" EnableResize="false" Title="Input Control">
                        <div style="padding:5px;">
                            <table>
                                <tr>
                                    <td style="width:150px; text-align:left; vertical-align:text-bottom">
                                        <telerik:RadLabel runat="server" ID="InputNodeLabel" AssociatedControlID="InputNodeDropDownList" Text="Input Node:"></telerik:RadLabel>
                                    </td>
                                    <td>
                                        <telerik:RadDropdownList runat="server" ID="InputNodeDropDownList" DefaultMessage="Select..." DropDownHeight="300px" DropDownWidth="200px" EnableVirtualScrolling="true">
                                        </telerik:RadDropdownList>
                                    </td>
                                    <td>
                                        <telerik:RadLabel runat="server" ID="ShowNode"></telerik:RadLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width:150px; text-align:left; vertical-align:text-bottom">
                                        <telerik:RadLabel runat="server" ID="InputLevelLabel" AssociatedControlID="InputLevlTextBox" Text="Input Level:"></telerik:RadLabel>
                                    </td>
                                    <td>
                                        <telerik:RadTextBox runat="server" ID="InputLevelTextBox" Width="200px" EmptyMessage="Please type here..."></telerik:RadTextBox>
                                    </td>
                                    <td>
                                        <telerik:RadLabel runat="server" ID="ShowLevel"></telerik:RadLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <telerik:RadLabel runat="server" ID="InputDirectionLabel" AssociatedControlID="InputDirectionComboBox" Text="Choose Direction:"></telerik:RadLabel>
                                    </td>
                                    <td>
                                        <telerik:RadComboBox runat="server" ID="InputDirectionComboBox" >
                                            <Items>
                                                <telerik:RadComboBoxItem Selected="true" Value="DefaultSelect" Text="(Select...)" />
                                                <telerik:RadComboBoxItem Value="Forward" Text="Forward" />
                                                <telerik:RadComboBoxItem Value="Backward" Text="Backward"/>
                                            </Items>
                                        </telerik:RadComboBox>
                                    </td>
                                    <td>
                                        <telerik:RadLabel runat="server" ID="ShowDirection"></telerik:RadLabel>
                                    </td>
                                </tr>
                                <tr>
                                    <td><br /></td>
                                </tr>
                                <tr>
                                    <td>
                                        <telerik:RadButton runat="server" ID="Apply1" Text="Apply" Width="100px" AutoPostBack="true" OnClick="Apply1_Click"></telerik:RadButton>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </telerik:RadSlidingPane>
                    <telerik:RadSlidingPane ID="SlidingPane2" runat="server" Width="600px" Title="test">
                        Test pane content
                    </telerik:RadSlidingPane>
                </telerik:RadSlidingZone>
            </telerik:RadPane>
            <telerik:RadPane runat="server" ID="Pane2" Scrolling="None" >
                <telerik:RadDiagram runat="server" ID="test_diagram" Width ="100%" Height="1000"  ZoomRate="1" ZoomMax="1">
                    <LayoutSettings Enabled="true" Type="Tree" Subtype="Right" />
                </telerik:RadDiagram>
            </telerik:RadPane>
        </telerik:RadSplitter>
    </div>

yuki
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 12 Apr 2023
1 answer
119 views

Hi. New here, still getting my hands on Telerik.

I want to draw a diagram in tree layout, and I followed the documentation, added LayoutSettings.

The shapes and connections for the diagram are generated in C# code.

But what I got was nothing near what is shown in the documentation and demo. The shapes are overlapping each other. The connections between shapes look weird. You can see that in file problem_diagram.png. In fact, I have 8 shapes in this diagram, but the shapes are overlapping at the top left corner, so you can only see 5 shapes. I dragged the shapes so that all shapes can be seen in file dragged_diagram.png.

update: I solved the problem.


yuki
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 12 Apr 2023
3 answers
198 views

Hi All,

Can any one let me know how to save and retrieve the layout settings from SQL server .

 

Fernando
Top achievements
Rank 2
Iron
 updated answer on 11 Apr 2023
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?