Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
84 views
Hi,

how would I reduce the spacing for the columns in Grid, as it takes equal space for items with description and a single character.

How to squeeze the space accordign to the values that would be rendered into the grid.

Thanks
Princy
Top achievements
Rank 2
 answered on 10 Dec 2009
4 answers
179 views
I have a grid which uses a declaritive form template (MasterTableView->EditFormSettings=Template->FormTemplate.

The insert/update command invokes either an insert or update.

The ItemCommand function runs properly. Inserts and updates are executed.

For an update, the template disappears when processing complete.

For an insert, I can't make the template disappear.

Can you help?
Princy
Top achievements
Rank 2
 answered on 10 Dec 2009
1 answer
119 views
Hi,

We are using Q2 2009 and a simple test page that utilizes RadWindowManager. The code is shown below - Showradwindow is the function which runs on pageLoad. There is no code behind. This generates a javascript error 'c is undefined.' which I can find no mention of on your site. Any ideas?

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="wintest.aspx.vb" Inherits="wintest" %>

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Uwindow</title>
    <script language="javascript">
        function Showradwindow(url) {
            var oWnd = radopen(url, null);
        }
    </script>
</head>
<body onload="Showradwindow('http://www.cnn.com');">
    <form id="form1" runat="server">
    <div>
    
        <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
        </telerik:RadScriptManager>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        </telerik:RadWindowManager>
    
    </div>
    </form>
</body>
</html>
Shinu
Top achievements
Rank 2
 answered on 10 Dec 2009
2 answers
106 views
Hello Telerik people...

I'm working in a project and it has multilanguage option by resources.

And because of control behaviour we needed implement the link buttons like this :

<asp:LinkButton CssClass=button ID="lbtn_showUserForm" runat="server" onclick="lbtnEdit_Click" CausesValidation="False" Enabled="False"
<span class=edit><asp:Literal runat=server Text="<%$ Resource:btn_showuserform%>"/></span> 
</asp:LinkButton> 


But I have a prolem with ajaxified controls. After ajax invocation (like select a person form grid) this button enables, but meanwhile its text also disappears.

Is this cause of nested control issue or is my implementation?

Does anyone have any thoughts?

Thanks..

Y.
Yusuf AKDAG
Top achievements
Rank 2
 answered on 10 Dec 2009
2 answers
157 views
I have a RadGrid with the Header Context Menu enabled to allow users to select the columns they want to see. I'm currently using the OnColumnHidden and OnColumnShown client events to make an ajax request and save the user's preferences. Rather than saving the preferences after each column is shown/hidden, I would like to save them after the context menu is closed, if any changes were made.

I see that the grid has a client event for OnHeaderMenuShowing. However, I don't see an event for the menu hiding. Is there any way to tell when the header context menu is closed?
Peter
Top achievements
Rank 1
 answered on 09 Dec 2009
1 answer
184 views

Hi telerik team,

I’m using Rad Scheduler in my site, when I browse the page that contains the Rad scheduler control in IE 8 the Scheduler appears as in the following Figure

http://www.4shared.com/file/165903118/7471bf11/IE8.html

As it should look  like the following Figure

http://www.4shared.com/file/165902908/dbc5b88d/IE7.html

you can also see these files attached with the post

How can I solve the View of the Scheduler in IE8?

Notes:

I’m using the following Tools and technologies.

§  Operating System: Microsoft windows 7 .

§  Browser: IE 8.

§  .net Framework  v 3.5.

§  Asp.net 3.5

§  Rad Controls for Asp.net Ajax ( 2008 Q3).

 

 

T. Tsonev
Telerik team
 answered on 09 Dec 2009
2 answers
272 views
In the month and timeline views in RadScheduler, is there a way to change the background color of cells/columns for weekends and for other dates that I specify (such as holidays)?

Thanks...

Don
don
Top achievements
Rank 1
 answered on 09 Dec 2009
2 answers
226 views
Im trying to use the comboxbox from this demo (just the first one) whithin a radgrid edit form template like this demo.  This is all wrapped up in an RadAjaxPanel and the grid is set to the following.
<telerik:RadGrid ID="RadGrid1" runat="server"  
            AllowPaging="True" AllowSorting="True" GridLines="None"  
            ShowGroupPanel="True" Width="795px" Style="margin-left:15px;" 
        DataSourceID="XmlDataSource2" AutoGenerateDeleteColumn="True" ShowStatusBar="true" 
            AutoGenerateEditColumn="True" > 
 
                <MasterTableView autogeneratecolumns="False" EditMode="PopUp" CommandItemDisplay="Top"  
                datasourceid="XmlDataSource2"
 
                <EditFormSettings EditFormType="Template" InsertCaption="New Journal Entry" PopUpSettings-Modal="true"


However, the javascript from the first demo in Default.cs.aspx, specifically the following, throws the following error.  Since the javascript has no clue how to find the id of something that is yet to exist what do you recommend that I do here?  The dropdown code worked just fine until I put it in the editform template.  ;-)
var combo = $find("<%= RadComboBox1.ClientID %>"); 



Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 21: Line 22:             function onCheckBoxClick(chk) {Line 23:                 var combo = $find("<%= RadComboBox1.ClientID %>");
Marc
Top achievements
Rank 1
 answered on 09 Dec 2009
1 answer
118 views
Hello,

having a look on the RadGrid demo 'Clientside Insert/Update/delete' I see that updates or insert are made using a webservice call.
This is nice but I can't use this webservice way, so my question is : I need to insert values clientside just as in this sample, could I get theses values in codebehing after a callback or ajaxrequest to my original page ?


Thank you (again) for help.

CS
Schlurk
Top achievements
Rank 2
 answered on 09 Dec 2009
1 answer
92 views
hi

I have this problem where the code behind was not executed because of the redirection: I want my code behind to be executed before redirection. But it seems that it gets redirected before it can execute the codebehind code. How do i solve this? Thanks

ASPX:
  <script type="text/javascript">
      function close()
      {
          self.close();
      }   
 
        function GetRadWindow()
        {
            var oWindow = null;
            if (window.radWindow) oWindow = window.radWindow;
            else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
            return oWindow;
        }
       
        function closeWin()
            {
            var oWnd = GetRadWindow();
            //top.location.href = 'http://localhost/demo/default.aspx';
            oWnd.close();
           
            }
          </script>
    <td align="center">
                    <asp:Button ID="btnDone" runat="server" onclientclick="closeWin()" CssClass="RadMenu_Black"
                        Font-Bold="True" ForeColor="#333333" Text="Done" />

Code Behind:
  Protected Sub btnDone_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnDone.Click
        MethodA(session("x"))
       MethodB(Session("x"))
    End Sub
Schlurk
Top achievements
Rank 2
 answered on 09 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?