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

In my login page, I would like to hide the RadMenu which resides in the Master page in a RadPageLayout column.

Currently, the LayoutColumn holding the RadMenu has a Span of "2".  The RadMenu is in a LayoutColumn with a Span of "10".  Both exist within the same LayoutRow. 

When I set the RadMenu.Visible property to "false", the parent LayoutColumn is still rendered and while the RadMenu is not visible, the space it occupies is.  This forces the login form to appear off-center.

I have implemented a crude padding-right value which makes the visible login form to appear to be centered.  This is not a desired approach.

Is it possible to hide this LayoutColumn, server-side, on the login page so that the form isn't off center, or maybe a better solution to achieve the desired functionality?

Thank you, in advance.

Jeff
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 20 May 2021
1 answer
304 views

We have one site where we are seeing an odd behavior in RadComboBox, that I've never seen in any of our other sites. 

We have a lot of radcomboboxes throughout this site, some of which have pre-defined items, or items added on page load in the code behind. These comboboxes all work perfectly fine, exactly as expected. 

A lot of the comboboxes however use load-on-demand to query items at runtime for the user's input. ALL of these comboboxes have the same problem. They seem to perform their AJAX postback fine, and get the correct data, and the items all get added to the combobox, showing the correct data. 

The problem though is that the load-on-demand items cannot be selected. You can't click on them, you can't even use the arrow-keys to up/down to them and select one. 

The Web Developer tools in the browser don't show any javascript failing to load on page load,
they don't show any errors in the Console tab on the initial page load, or the load-on-demand postback
they don't show any errors in the Network tab on the initial page load, or the load-on-demand postback

 

This project was originally written in ASP.NET 2.0, and we are upgrading it to 4.7.2.
Updated the latest Telerik DLLs, updated the latest jQuery libraries, updated the compilation nodes in the web.config.

Vessy
Telerik team
 answered on 20 May 2021
2 answers
609 views

Hi,

I am trying to set the data source for grid from client side, Below is example of the code.

 

<telerik:RadGrid ID="Grid_geoData" runat="server" AutoGenerateColumns="false" Height="200px" > <MasterTableView DataKeyNames="Text" ClientDataKeyNames="Text" ShowHeadersWhenNoRecords="true" Visible="true"> <Columns> <telerik:GridBoundColumn DataField="Text" HeaderText="Comp. name" UniqueName="comName" /> </Columns> </MasterTableView> </telerik:RadGrid>

 


function pageLoad() {
            var data =
                [
                    { "ID": 1, "Text": "Text1" },
                    { "ID": 2, "Text": "Text2" }
                ];
            var mtv =  $find("<%= Grid_geoData.ClientID %>").get_masterTableView();
            mtv.set_dataSource(data);
            mtv.dataBind();
        }

I get error at line 

mtv.set_dataSource(data);

Do anyone have idea what I am doing wrong?

Regards,

Omar

 

Omar
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 20 May 2021
1 answer
159 views

Hi ,

We have upgarded from Q32015.3.1111.35 to R3 2020.3.915.45.

I have seen many posts regarding discontinuity of Rad dll references and all dll are present in a single assembly.

so i have tried to migrate classic RadGrid to RadGrid of ajax Suite with the help of below article, to support Modern Browser.

https://www.telerik.com/support/kb/aspnet-ajax/grid/details/migration-from-radgrid-for-asp.net-(classic)-to-radgrid-for-asp.net-ajax

I am getting an Issue 

<telerik:RadGrid ID="CombineRadGrid" AutoGenerateColumns="false" EnableAJAX="true" GridLines="None" 
        Skin="SAM" UseEmbeddedScripts="false" Width="100%" runat="server">
    <ClientSettings AllowExpandCollapse="true" AllowGroupExpandCollapse="true" 
        ClientEvents-OnRequestEnd="CombineRadGridRequestEnd" ClientEvents-OnRequestStart="CombineRadGridRequestStart" />

</telerik:RadGrid>

Is there any property change with Telerik.WebControls.GridClientSettings and Telerik.Web.UI.GridClientSettings?

Can anyone please help on this to resolve and share me?

 

 

 

Rumen
Telerik team
 answered on 19 May 2021
1 answer
161 views

Hi,

I have a RadGrid that uses a DropDownList to give the user choices. I'm using the batch editing features. I don't know until run time what the contents of the dropdownlist will be. I am doing a preliminary population of the dropdownlist in the PreRender event. Essentially, this gives the user a list with too many choices. During runtime, the user will click the list to select an option.

At this point, the dropdownlist's population will be affected by the item in another row's cell. For example, if the cell in column A has a value of xxx, I need the drop down list to show X, Y, Z. If the cell in column A has a value of yyy, the drop down should show X,Y.

I've been looking at the ClientSide BatchEditing article and I believe I want to use the javascript OnBatchEditOpened function to adjust the dropdownlist. The API talks about using getCellValue(cell), and I think I can use that to get the value of the neighboring cell (the column A cell mentioned above). Something like this:

function OnBatchEditOpened(sender, args) {
        var AccessLevel = getCellValue(______)
    }

I'm not sure what the function argument should be to get the Column A data.

Also, is there documentation for the getCellValue function? I just haven't had any luck finding it.

 

Thanks,

Mike

Attila Antal
Telerik team
 answered on 19 May 2021
1 answer
271 views

I have a radcombobox with checkboxes enabled and i would like to be able to see the total number of items checked in the header even when i click the "check all" checkbox.  Currently if you check one or two items you see a comma separated list of the items checked, if i were to check 4 items  it says "4 items checked", but if i click the "Check All" checkbox in the header then the caption just reads "All items checked". it is desirable for us to customize that message to say how many items actually are checked,  either using the same syntax "X items checked" or using a hybrid syntax like "All X items checked"...  

Is there a way to accomplish this behavior?  

 

Thanks!

-Mark

Mark
Top achievements
Rank 1
Iron
Iron
 answered on 18 May 2021
1 answer
415 views

When inserting links, if you add a space after the element it will add a &nbsp instead of just white space.

For example, using the demo, if you type in "this is atest" and you insert a link by highlighting "a", and then add a space before test it will look like the following:

this <a href="http://www.google.com">is a</a>&nbsp;test

Is this expected behavior?

Rumen
Telerik team
 answered on 18 May 2021
1 answer
299 views

I am unable to call the OnClick event when selecting a CardAction.  Any help would be appreciated.

<telerik:CardActionsContainerComponent runat="server" CardActionsAlignment="Stretched" Orientation="Horizontal">
     <telerik:CardActionComponent runat="server" AutoPostBack="true">
          <telerik:RadButton ID="btnAgree" runat="server" AutoPostBack="true" RenderMode="Lightweight" 
                                        CssClass="k-button k-flat k-primary" Font-Size="14px" Text="I Agree" OnClick="btnAgree_Click" />
     </telerik:CardActionComponent>
</telerik:CardActionsContainerComponent>
Vessy
Telerik team
 answered on 17 May 2021
0 answers
137 views

How do I show a text e.g. "No appointments to display" if there is no appointment selected time period?

Uses Agenda view... 

Kjell
Top achievements
Rank 1
Iron
Iron
 updated question on 17 May 2021
1 answer
180 views

I have an Asp.net website , and telerik controls on it.  On page load I get ConvertFontToSpanfilter error as an alert. On clicking few times 'OK' on alert i am able to proceed normally.

I am not able to figure it out why it's happening . As i know we can disable the filter but is there any specific reason it's happening?

becasue it's random - right now i don't see on my pages

 

 

Devender
Top achievements
Rank 1
 updated question on 14 May 2021
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?