Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
112 views
Hi All,

how can I hide the DetailTables for some rows(not for all rows) in the MasterTableView depend on condition at runtime??????

Please  help me ASAP

thnks in advance
ghadeer
Daniel
Telerik team
 answered on 24 Nov 2008
1 answer
71 views
Hi ,
     Can Somebody help me...I am hyperlink when I click on the link it will open a POP upwindow and the problem is while opening the Rad popup window the Slider of RadGrid which is presented in the Parent form overlapping with the pop up window...
I have no problem while viewing in IExplorer.The problem occurs only in Firefox..

Thanks and Regards
N.Nallamani
Tsvetie
Telerik team
 answered on 24 Nov 2008
1 answer
100 views
I am having an issue with an extension for a class.  It is almost like it is being ignored.  Anyways I have the code:

<class name="Filing">
            <extension key="db-table-name" value="'FILINGS'" />
</class>

and it is still using Filing in all of my statements and I am not sure why.  I noticed I am having issues with other extension entries for my classes getting ignored as well.  I was wondering if anyone else has had this problem and if so how to resolve it.  I just started getting this issue when I recently upgraded to the new telerik.openaccess update.  If you need any additional information from in order to resolve this, please just let me know.  Thanks.
Jan Blessenohl
Telerik team
 answered on 24 Nov 2008
3 answers
182 views
HI

I am using radgrid 5.1.2. I can't upgrade to the latest version as you have stopped supporting the skins we use. The radgrid skin is not showing, presumably because the radgrid is contained in an update panel and is not initially visible - it is only displayed after the first postback. Please can you advice how i fix the skin problem

thanks
Dimo
Telerik team
 answered on 24 Nov 2008
3 answers
204 views
I was wondering why the enter key is not being included in the get_text().trim().length when I press enter. Only when I type in another key (alphabets) is the enter key being taken into account.
I am trapping the onkeyup and trying to update the text count.

        function GetDraggableTextLength()
        {
            var rtfEditor = $find("<%=popupWin_txtValue.ClientID %>");
            return rtfEditor.get_text().trim().length;
        }

        function HandleKeyUp()
        {
            var latestCharCount = GetDraggableTextLength();

My QA is complaining, they press a lot of enter, they don't see the length and all of a sudden, when they press a all of a sudden they reached the maximum text length.

Thanks
Tervel
Telerik team
 answered on 24 Nov 2008
4 answers
118 views
How can you expand all the nodes in a tree when they are built from a web service
Veselin Vasilev
Telerik team
 answered on 24 Nov 2008
1 answer
171 views
am developing a website that needs to display a disclaimer the first time the user enter the page. if the user agree on the disclaimer it will continue to display the page other wise it will redirect to another page.

no click needed to show the disclamer.

is this possible using radconfirm ?

how?
Princy
Top achievements
Rank 2
 answered on 24 Nov 2008
1 answer
138 views
heya.
Trying to achieve a couple things.
Load up radwindow and display details (check)
'notes' field textbox and button in radwindow (check)
button click events set as so... 

 

<asp:Button ID="btnCancel" OnClick="btnCancel_Click" OnClientClick="CloseWindow(); return false;" runat="server" Text="Cancel" />
problem is that the page is closing before the data update is taking place..
Also... I would prefer if i could get the grid that launched the radwindow via gridItemTemplate to rebind.. otherwise rebind the whole page.
code below
Parent aspx code:

 

 

 

function cancelPost(recordid)  
 
{  
 
var oWnd = radopen("Ctrls/Leaders/cancelposting.aspx?RecordID=" +recordid, "RadWindow2" );  
 
oWnd.center();  
 
oWnd.add_close(OnClientClose);  
 
}  
 
 
function OnClientClose(oWnd)  
 
{  
 
var order = document.getElementById("order");  
 
order.innerHTML = "<strong> Cancellation request went through.</strong>";  
 
}  
 
 
 

 

<a href="#" onclick="cancelPost('<%# DataBinder.Eval(Container.DataItem, "RecordID") %>'); return false;">Cancel</a>

 

 

Radwindow relevant Code

<script type="text/javascript">  
 
function GetRadWindow()  
 
{  
 
var oWindow = null;  
 
if (window.radWindow) oWindow = window.radWindow;  
 
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;  
 
return oWindow;  
 
}  
 
 
function CloseWindow()  
 
{  
 
var Ownd = GetRadWindow();  
 
//var oArg = new Object();  
 
//Ownd.argument = oArg;  
 
Ownd.close();  
 
}  
 
</script>  
 
                     <a href="#" onclick="cancelPost('<%# DataBinder.Eval(Container.DataItem, "RecordID") %>'); return false;">Cancel</a>    
 
Svetlina Anati
Telerik team
 answered on 24 Nov 2008
3 answers
85 views
Hi team telerik

When I'm moving the scroll bar left to right, and then I move the scroll bar  right to left, the scroll bar dont'n  work.

My version of controls is asp.net ajax 2008 q1

Code:
<telerik:RadGrid ID="rgdPresupuesto" runat="server" 
                                GridLines="None" AllowPaging="True"  
                                AllowCustomPaging="True"  Width="99%"  
                                Skin="Office2007" AutoGenerateColumns="False"  
                                onitemdatabound="rgdPresupuesto_ItemDataBound"  
                                onneeddatasource="rgdPresupuesto_NeedDataSource" > 
                                <ClientSettings AllowExpandCollapse="true" > 
                                    <Scrolling UseStaticHeaders="true" FrozenColumnsCount="1" AllowScroll="true"  
                                        ScrollHeight=""  /> 
                                </ClientSettings> 
                                <MasterTableView  > 
                                    <Columns> 
                                        <telerik:GridBoundColumn  DataField="Descripcion" HeaderText="Presupuesto por Mes" > 
</telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Enero" HeaderText="Enero"></telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Febrero" HeaderText="Febrero"> 
</telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Marzo" HeaderText="Marzo"> 
</telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Abril"> 
</telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Mayo" HeaderText="Mayo">                                        </telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Junio" HeaderText="Junio" > 
</telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Julio" HeaderText="Julio" > 
</telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Agosto" HeaderText="Agosto" > 
</telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Septiembre" HeaderText="Septiembre" > 
</telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Octubre"  HeaderText="Octubre" > 
</telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Noviembre"  HeaderText="Noviembre" >  
</telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Diciembre" HeaderText="Diciembre"> 
</telerik:GridBoundColumn> 
<telerik:GridBoundColumn DataField="Total" HeaderText="Total" > 
</telerik:GridBoundColumn> 
                                    </Columns> 
                                </MasterTableView>           
                                <PagerStyle Mode="NextPrevAndNumeric" /> 
                            </telerik:RadGrid> 

thank's team telerik.
Sebastian
Telerik team
 answered on 24 Nov 2008
2 answers
266 views
Hi.

I have a page that uses a RadWindow to insert symbols into a content page.

When a symbol in the RadWindow is clicked, an OnClick function is called. In the OnClick function, the BrowserWindow is called from which the Javascript function InsertC(symbol) is called. The html code of the radwindow looks like this:
 
<!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><link rel="stylesheet" type="text/css" href="Common/Styles.css" /> 
<script language="javascript" type="text/javascript" > 
    function GetRadWindow() { 
        var oWindow = null; 
        if (window.radWindow) 
            oWindow = window.radWindow; 
        else if (window.frameElement.radWindow) 
            oWindow = window.frameElement.radWindow; 
        return oWindow; 
    } 
 
    function Click(symbol) { 
        var curWin = GetRadWindow(); 
        var bw = curWin.BrowserWindow;         
        bw.insertC(symbol); 
    } 
</script> 
    <title> 
 
</title></head> 
<body> 
    <div id="Symbol_div"> 
     
<table id="Symbol_div_table" cellpadding="0" cellspacing="0" class="symbolTable"> 
        <tr> 
 
            <td onclick="Click('α');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a  class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">&alpha;</span></span></a></div></td> 
            <td onclick="Click('β');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a  class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">&beta;</span></span></a></div></td> 
            <td onclick="Click('γ');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a  class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">&gamma;</span></span></a></div></td> 
            <td onclick="Click('Ï€');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a  class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">&pi;</span></span></a></div></td> 
            <td onclick="Click('ω');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a  class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">&omega;</span></span></a></div></td> 
        </tr> 
 
        <tr> 
            <td onclick="Click('δ');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a  class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">&delta;</span></span></a></div></td> 
            <td onclick="Click('φ');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a  class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">&phi;</span></span></a></div></td> 
            <td onclick="Click('θ');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a  class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">&theta;</span></span></a></div></td> 
            <td onclick="Click('κ');" align="center"><div style="width:25px; height:25px;" onmouseout="this.style.backgroundColor = '#fff';" onmouseover="this.style.backgroundColor = '#22f';"> <a  class="rtbWrap" href="#"><span style="width:100%; height:100%" ><span class="rtbIcon">&kappa;</span></span></a></div></td> 
        </tr> 
    </table> 
 
 
</div> 
</body> 
</html> 
 


The function InsertC, located in a separate javascript file, looks like this:
function insertC(c) { 
    if (document.selection) { // IE 
        var rng = document.selection.createRange(); 
        rng.text = c; 
        rng.select(); 
    } 
    else { //Firefox 
        var sel = document.getSelection(); 
        var range = window.getSelection().getRangeAt(0); 
        range.deleteContents(); 
        range.insertNode(document.createTextNode(c)); 
    } 
} 


In firefox is works as expected. In internet explorer, the problem is this:
  • after opening the radwindow, the focus is set to the radwindow.
  • Clicking on a symbol, it is inserted inside the RadWindow, and not in the content page.
  • Clicking on the content page restores focus. Clicking on symbols in the radwindow now works as expected, they are inserted on the content page. But: clicking inside the radwindow, somewhere other than on a symbol, sets focus to the radwindow again.
I would like for the radwindow to never get focus, or for the insertC function to only insert text in the content page. I already tried replacing   document.selection.createRange(); with form1.selection.createRange(); , and some other things, but the result was the same.

Thankful for any help.
Fredrik


Mallverkstan
Top achievements
Rank 2
 answered on 24 Nov 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?