Telerik Forums
UI for ASP.NET AJAX Forum
10 answers
184 views
Hi All!

Instead of using the session to save/load the DockState for a page, I would like to use the Profiles.  I've not been able to figure out how though.  Has anyone got a working example - including the web.config profile definitions?

I'm more than a little desparate.  hehe

Cheers
Mark.
Joff
Top achievements
Rank 1
 answered on 05 Sep 2012
1 answer
961 views
Hi,
In our application we are trying to assign shortcut keys for options on the screen,
which requires us to trap keys on client side and accordingly call .click() event of targetted control.
We have some validations set for all these controls in OnClientClicking event.
According to validation conditions we have to stop postback by setting arguments.setCancel(true). Also, on some places we 
need to open rad window pop up after setting postback false.

Issue that we are facing is when we fire click event of these controls using mouse OnClientClicking is being called, but
when we are trying to achieve same by firing .click() from javascript for short cut keys functionality, OnClientClicking is not getting
called.

Please let me know if you have any solution for this. Or some other way to achieve our functionality.
Slav
Telerik team
 answered on 04 Sep 2012
4 answers
243 views
Win 7 64 bit, VS 2010 Pro.

I have installed the Q2 release.  I still see the Q1 items on the VS toolbox (Q1 2011 NET 40).  When I open the Toolbox Configurator, it allows me to choose the new release in the drop down v.2011.2..712.40.  It restarts VS, but nothing has changed, the Q1 items are there, the Q2 items are not.
Govinda
Top achievements
Rank 1
 answered on 04 Sep 2012
3 answers
79 views
We are facing some issues with validators when using the RadGrid (2011.3.1115.40) as follows:

1) The grid has two detail (child) tables
2) Since all rows in the grid are editable, each column uses ItemTemplates with input controls and various validators (server side validation only)
3) All tables are set with HierarchyLoadMode="Client"

When we press the Save button, we call Page.IsValid on the server. This works for the most part, however, we noticed that sometimes validators in detail tables are not firing. We can consistently reproduce the following behavior:

1) Load the page and grid normally
2) Expand any row. Don't enter any data
3) Press save
4) We see the validators have fired
5) Collapse that same row
6) Press save again
7) Now when we expand that same row again, we see that the validators have NOT fired

Please advise.
Ultravelocity
Top achievements
Rank 1
 answered on 04 Sep 2012
0 answers
62 views
Please delete I was having a bootstrap issue.
maurice
Top achievements
Rank 1
 asked on 04 Sep 2012
4 answers
92 views

I have reviewed several resources while trying to programmatically control whether a user should be allowed to rename an item in RadFileExplorer. Here are a couple of the resources that I have reviewed:

 

 

The FileExplorer on my web page has a root folder. Under the root folder, I populate the explorer with “home folders”; this is done during the Page_Load event. You can think of the home folders like Windows Profiles. When a user logs into Windows, they have access to the folders that are associated with their profile. I am doing a similar thing with file explorer. When a user logs into my website, they have access to their home folder, its files, and its subdirectories. They do not have access to home folders that belong to other users and file explorer is configured so that it will not let a user see the home folders of other users.

 

As you know, FileExplorer allows you to right-click on a file or folder, and click Rename. That is cool and it saves a lot of development time. In my web page, I allow users to rename anything they want. But I do not want them to be able to rename their home folder.

 

My RadFileExplorer contains the following setting (among others): OnClientMove="fncMoveOrRename". My intent is to use this function that you see referenced here as a way to check whether the currently selected item in FileExplorer is a home folder vs. any other file or folder. If it’s a home folder, then cancel is set to true. But even when cancel is set to true, the rename still occurs. Is the documentation that I referenced above correct? I should be able to prevent a rename by canceling the OnClientMove, right?

 

To determine if the problem had anything to do with my logic, I stripped everything out of fncMoveOrRename, and I am left with the following:

 

function fncMoveOrRename(objExplorer, eventArgs) {

    alert("Click OK to cancel.");

    eventArgs.set_cancel(true);

}

When I rename a folder, the alert message appears, and I click OK. But cancel is never triggered. I still have the undesirable effect of having the folder renamed even though cancel is set to true. What am I missing here?

 

Thank you,

Steven

Brian
Top achievements
Rank 1
 answered on 04 Sep 2012
2 answers
58 views
Hi All - I have an <asp:Menu> with 6 or so items.  below the <asp:Menu> there is a <telerik:RadTabStrip>.  when I drop the menu down, a part of it is occluded by the tabstrip.  I tried this with a RadMenu and there does not seem to be an issue however I cant seem to style radmenu the way i want.  any way to tell TabStrip not to be such a be-firster? pic attached. 

Thanks.
Helen
Telerik team
 answered on 04 Sep 2012
3 answers
132 views
I see the default color of all provided skin is gray. Whether telerik consider to add more color for choice such as attached image?
Bozhidar
Telerik team
 answered on 04 Sep 2012
3 answers
282 views
Hey Peeps,

I have a question about the RadComboBox. I'm busy working on a page where we have multiple RadComboBoxes with Checkboxes as its template (we're using Telerik ASP.NET Q1 2009 controls). The combobox is databound using the asp:SqlDataSource component. The reason for this is that I am unable to programmatically load the data as it depends on the selection of the user. Once the user has made his/her selection, I programmatically build up the SQL query and set the SqlDataSource's SelectCommand equal to the new generated query. We also need to have a 'Select All' option at the top of the combobox. I'm adding the item in the code-behind like so:

cboCategories.Items.Clear();
cboCategories.Items.Add(new RadComboBoxItem("Select All", "-2"));
cboCategories.DataBind();

When I open the drop down list, the first entry is there but is not showing the text value (see screenshot).

The aspx code looks like:

<telerik:RadComboBox ID="cboCategories" runat="server" Skin="Hay" EmptyMessage="Select" AutoPostBack="true" AppendDataBoundItems="true" AllowCustomText="true" Enabled="false" DataSourceID="sqlCategories" DataValueField="sigma$ID" DataTextField="category$Name" HighlightTemplatedItems="true" OnClientDropDownClosing="OnClientDropDownClosingHandler" OnClientDropDownClosed="onDropDownClosing" Width="324px">
                        <ItemTemplate>
                            <div onclick="StopPropagation(event)">
                                <asp:CheckBox ID="chkCategories" runat="server" onclick="onCheckBoxClick('ctl00_ContentPlaceHolderMain_cboCategories',this,'chkCategories')" />
                                <asp:Label ID="Label1" runat="server" AssociatedControlID="chkCategories">
                                    <%# Container.DataItem != null ? DataBinder.Eval(Container.DataItem, "category$Name") : DataBinder.Eval(Container, "Text") %>
                                </asp:Label>
                            </div>
                        </ItemTemplate>
                    </telerik:RadComboBox>
                    <asp:SqlDataSource ID="sqlCategories" runat="server" ConnectionString="<%$ ConnectionStrings:SparSQLConnectionString %>" SelectCommand=""></asp:SqlDataSource>

I have also tried adding the item in the aspx file using:
<Items>
    <telerik:RadComboBoxItem Text="Select All" Value="-2" />
</Items>

But using the aspx method, the item is not even shown. It only shows when it's added in the code behind BUT the text property displays blank. Any ideas?
Nencho
Telerik team
 answered on 04 Sep 2012
5 answers
126 views
I have a project when one of the pages has several separate RadGrids.  Each grid is bound to a generis list of custom objects, has AutoGeneratedColumns set to false, and uses GridBoundColumns to show the data.

This worked great... until we upgraded from Telerik ASP.NET 2011.1 to 2012.1.

Now this page is showing the Expand column on all grids on the page (the Expand arrows don't do anything), and for the life of me I cannot get these columns to go away.  I've seen some hacks, attaching to events to remove the column or using CSS to hide the column... but the question is, why is RadGrid creating this column at all?

We've looked for properties on the RadGrid to force this off and there doesn't appear to be any.  (AutoGenerateHierarchy=false doesn't do anything to help either!)

Note that there are other pages on the same site that have similar setup... multiple separate RadGrids, same settings, and so forth, and they don't exhibit the problem.  I've tried to see what the difference is, and am having no luck.

Can anybody please shed some light on this question: What triggers the RadGrid to show the Expand column?

Any help is appreciated.
Daniel
Telerik team
 answered on 04 Sep 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?