Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
117 views
I'm trying to use the FIleExplorer control.  It seems to be fine using Chrome, but when I try opening a file in safari, I have to double click on the file to open it, and then when I click the close icon in the upper right of the window, the window stays on screen.

Any Ideas?


Thanks!

Dave
Rumen
Telerik team
 answered on 03 Nov 2011
4 answers
214 views
Hello,

I have an ASP.NET application that uses a frameset (header frame, left-menu frame, and then content frame).  I've searched for frame related posts and have found a few talking about the fact other frames don't disable, how to render above the frameset, etc, but none for this issue.

The behavior is this:

* Open a RadWindow (in this case, a modal dialog) in the content frame
* Left-click and hold the title bar and start dragging around.  
* While dragging, move your cursor to another frame in the frameset.  You'll note that the window stays in the content frame (good)
* While still in the other frame, release the mouse button.
* Move the cursor back over the content frame.  Once you do, the radwindow will snap to the cursor position, and follow the cursor - even though the mousebutton is not being held.  To "release" you have to left- click on the window again.

This issue is frustrating for a client; what they would like to see is the window is "released" as soon as the mouse is released.  I suspect the combination of a frameset and browser capabilities may make this impossible - perhaps the browser is still firing the ondrag...   But I'd love to know if there's a workaround.
Marin Bratanov
Telerik team
 answered on 03 Nov 2011
2 answers
71 views
Hello,

I have finally managed to get the radgrid to work with all its features (insert, edit, delete, details view). However, the details table is showing me the same table that the original grid is showing. (Screenshot)

I have 2 table:

news:
- N_id
- title
- article
- time
- U_id

users
- U_id
- member

I have already populated the data manually. What I want to do when I click on the expand button to see the details table, is to see the user who wrote that article. And I have to SqlDatasources, I just have to edit one to show the user WHERE news.userid = users.id, but how?

EDIT: I figured out the query and I'm not getting any error when I load the page. But when I click on the expand button, I get something weird (Screenshot). 

I just want to show the Name (member) of the person who wrote that article. Just 1 row.

SELECT users.member, news.U_id
FROM users
INNER JOIN news
ON users.U_id=news.U_id
Shinu
Top achievements
Rank 2
 answered on 03 Nov 2011
1 answer
77 views
Hi
I have successfully been using a custom skin for a PanelBar, and it is working fine as required.
I now want to make another version of the same skin, but I haven't been able to figure out the syntax
for setting the colours of the sub menu item when it is both selected and hovered.

Q32010 version running on asp.net 4.0

This is what I have at the moment

div.RadPanelBar_Scargill2 .rpGroup a.rpLink:hover,
div.RadPanelBar_Scargill2 .rpGroup a.rpFocussed,
div.RadPanelBar_Scargill2 .rpGroup a.rpFocused:hover,
div.RadPanelBar_Scargill2 .rpGroup a.rpSelected,
div.RadPanelBar_Scargill2 .rpGroup a.rpSelected:hover
  
{
background-color: white;
    color: #666;
}

This does what it should for the sub items, until one is selected. Then it seems to revert to the colours of the top level items.

Please help!

Thanks

Clive
Kate
Telerik team
 answered on 03 Nov 2011
3 answers
368 views
Hi,

I Have an imge column in rad grid. I want to apply custom filter to filter the records on the basis of image name as default filter function available are not of my use.

I want to keep the new menu items on filter menu for that column only and rest of column in grid will be using the default filter function by using allowing filter=true.

Please suggest how to achieve this.Help on this would be highly appreciated.


Thanks,
Manjeet
Manjeet
Top achievements
Rank 1
 answered on 03 Nov 2011
2 answers
135 views
Greetings,

I'd like to set a GridButtonColumn invisible in the case the user does not have the rights to delete a row ( for instance )

The GridButtonColumn is declared like this:

<telerik:GridButtonColumn CommandName="Delete" Text="Supprimer" UniqueName="column2">
</telerik:GridButtonColumn>


The condition is this one :
string req = " SELECT rights from utilisateur WHERE login = '" + login + "'";
int test = DA.DAConnexion.executeQueryScalar(req);
Session["rights"] = test;
if Session["rights"] gets the value 0, the GridButtonColumn must not be visible


Thanks in advance for your help
Adigard
Top achievements
Rank 1
 answered on 03 Nov 2011
1 answer
112 views
I am creating the following bar chart programmatically. It seems when the number of records gets high enough, the chart label overlaps with the chart image. (See attached picture). Is there any way to resolve this?

Peshito
Telerik team
 answered on 03 Nov 2011
1 answer
129 views
I put the RadWindow.SetUrl("about:blank") on close button to close my RadWindow.
 It is working fine for Monzilla firefox but not with IE.
Don't know why, Please Help.

My Code is as :
function Close1() {
           var oWindow = GetRadWindow();
           oWindow.SetUrl("about:blank");
           //Passing the argument to the close method
           oWindow.close("undefined");
       }
Marin Bratanov
Telerik team
 answered on 03 Nov 2011
5 answers
1.2K+ views
When I try to retrieve the ClientID of radButton control, I got the Id of the control rather than the .NET format

ctl00_....._btnSave and the getElementById returns a null value. When I do the same thing in a non RadWindow, everything works fine. Please help me solve this issue.


The rad popup window:

 

 

   function ShowInsertForm(url, width, height, idName, idValue) {
    var extUrl = [url, "?" + idName + "=", idValue];
    var oWnd = window.radopen(extUrl.join(""));
    oWnd.setSize(width, height);
    oWnd.set_modal(true);
    oWnd.set_visibleStatusbar(false);
    oWnd.set_behaviors(Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close);

    return false;
   }


This popup window has a Save and a Cancel buttons. When the user makes changes to the form and clicks the Cancel button, I need to display a javascript message to allow the user to confirm whether s/he wants to save the changes. if the answer is "YES", I want to execute the click event of the Save button. Here how I proceed:

In the code behind:

Protected Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCancel.Click
      If _presenter.IsDataChanged(Me.GetUserData()) Then

        InjectScript.Text = "<script type='text/javascript'>askquestion('" & btnSave.ClientID & "')</script>"
      Else
        InjectScript.Text = "<script type='text/javascript'>CancelEdit()</script>"
      End If
End Sub

In the Aspx code:
function askquestion() {
      if (confirm("Data has changed. Do you want to save the changes?")) {
          document.getElementById('<%=btnSave.ClientID %>').click();
      }
      else {
          CancelEdit();
      }

      return false;
  }


Thank you in advance.

Masterdom5
  
Marin Bratanov
Telerik team
 answered on 03 Nov 2011
4 answers
143 views
Hi,

My requirement is :

I am generating a div on button click and i want a dynamically generated rad combo box in that div. I am able to create a div and rad combo box but not able to put it in the div. Please check my code and provide some solution. Please i need solution as soon as possible.

.ASPX Page
My button :
 <asp:Button runat="server" ID="btnAddDiv" ToolTip="+ Add Clause(s)" Text="+"
            CssClass="btnAdd" onclick="btnAddDiv_Click"/>
Div :
<div id="testing" runat="server"></div>

.ASPX.CS Page

int Counter =0;
  protected void btnAddDiv_Click(object sender, EventArgs e)
        {

            RadComboBox Box = new RadComboBox();
            Box.ID = "RCB" + Counter;
            Box.DataSource = ObjGetData.GetClause();
            Box.DataValueField = "ClauseHeadingID";
            Box.DataTextField = "ClauseHeadingType";
            Box.DataBind();
            testing.InnerHtml = testing.InnerHtml + "<div id='text" + Counter + "'> " + I WANT TO SHOW MY COMBO BOX HERE +"</div>";
            
            Counter += 1;

        }
 
I am doing this because i want to generate this div with combo box according to user dynamically and user can generate it infinite time.

Note: ignore my cap words. I just want to highlight my requirement.

Thanks
Manish
Ivana
Telerik team
 answered on 03 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?