Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views
OK, here's the situation.  I have a RadGrid with paging enabled.  I am using a custom user control for adding new records.  So while the user is adding a new record, he or she wants to page through the existing records.  When this is done they lose any data they have already entered.  My question is: Is there any way to just alert the user that paging or navigating away will cause them to lose any data they have already entered?

Any help is greatly appreciated.

Thank you,
Nick
Schlurk
Top achievements
Rank 2
 answered on 04 Sep 2009
3 answers
160 views
Hi,

I have Scheduler with WebService as data binding method, and I'm trying to lanuch advance form directly without the in-line editor for appointment insertion.   

I modified the Live Demo "Scheduler\WebService\DefaultVB.aspx" to add the StartInsertingInAdvancedForm="true",  but the in-line editor still cannot be disabled after double clicking the idle timeslot

It's ok if other type of data binding except web service.

Please advise.
Wilson
T. Tsonev
Telerik team
 answered on 04 Sep 2009
1 answer
132 views
Hi,

I have been trying to do this for a while and cant seem to get the grid to do what im after (im not sure if it is possable) so thought it was worth asking to see if you guys think its possable

I have a rad grid showing pivot data (1 row per year and a column per month) I have managed to get the whole grid into edit mode but what I really want to do is leave all the dates prior to today as normal grid cells (with the original formatting) then for the periods in the future I want to have a text box (some blank some with values depending on the data table)

Do you think it is possibe? if it is any suggestions how I would achive it?

Many thanks in advance
Schlurk
Top achievements
Rank 2
 answered on 04 Sep 2009
3 answers
297 views

Hi,

I can't seem to reference my textbox from my javascript.

on the aspx:

        <asp:ScriptManager ID="ScriptManager1" runat="server"  EnablePartialRendering="True" EnablePageMethods="True">  
            <Scripts> 
                <asp:ScriptReference Path="scripts.js" /> 
            </Scripts> 
        </asp:ScriptManager> 
          
          
        <table cellpadding="0" cellspacing="0">  
            <tr> 
                <td width="80%">  
<%--                            <asp:textbox runat="server" TextMode="MultiLine" id="txt" style="WIDTH: 690px; HEIGHT: 260px" rows="16" Columns="79" ></asp:textbox>&nbsp;  
--%>                    <telerik:RadTextBox ID="txt" Width="690" Height="260" Rows = "16" Columns = "79" runat="server" TextMode="MultiLine" SelectionOnFocus="CaretToEnd"></telerik:RadTextBox><br /> 
                   <asp:TextBox id="txtMsg" Width="400" Runat="server"></asp:TextBox>&nbsp;&nbsp; <input id="btn" onclick="button_clicked()" type="button" value="SEND" class="btn"/>  
                </td> 

script:

            function button_clicked()  
            {  
                var RadTextBox = $find("<%= txt.ClientID %>");  
                if (RadTextBox == null) {  
                    var b = bla;  
                }  
                PageMethods.SendMessage($get("txtMsg").value,$get("hdnRoomID").value,UpdateMessages, errorCallback);  
                $get("txtMsg").value="";  
                $get("txt").scrollIntoView("true");  
            } 

RadTextBox is null..

Any idea what I did wrong?

Thanks,

Andreas
Pavlina
Telerik team
 answered on 04 Sep 2009
2 answers
108 views
I have the following code and it does not work, please can anyone help?

    <script type="text/javascript">  
        function test() {  
            alert("hello");  
        }  
    </script> 
 
        <telerik:RadEditor ID="RadEditor1" runat="server" OnClientPasteHtml="test">  
            <Content> 
            </Content> 
        </telerik:RadEditor> 

Thanks
Richard
Top achievements
Rank 2
 answered on 04 Sep 2009
1 answer
96 views
Could someone possibly help me.
I have an aspx page that I need to produce Javascript on once a search is performed on data.
I have an ajax manager and have set the controls to update, however, I cannot get this routine on the server side to create the javascript on the page. If I do not use the ajax manager, it works fine.
This is the string that I need to write to the page (return), once a gridview updates.

myStringScript = "<script type=""text/javascript"">" & vbCrLf & _  
                 "<!--" & vbCrLf & _  
                 String.Concat("var CheckBoxIDs =  new Array(", String.Join(",", ArrayValuesAttend.ToArray()), ");") & vbCrLf & _  
                 "// -->" & vbCrLf & _  
                 "</script>" 

I have tried the following methods with no luck:

CheckBoxIDsArrayAttend.Text = myStringScript 
(CheckBoxIDsArrayAttend is a literal control, and is also being updated by the ajax manager.)
-------------------------
TryCast(RadCodeBlock1.Controls(0), LiteralControl).Text = myStringScript
--------------------------
Page.ClientScript.RegisterStartupScript(Page.GetType(), "scr", myStringScript)

 

-------------------------------

None of these work. The Javascript just does not show up on the page after update (I can look for it when I view source on the page)
Any Ideas?
Thanks for your help.

Mira
Telerik team
 answered on 04 Sep 2009
1 answer
126 views
Hi. I think I've tried everything, and I can't get rid of it. I want detail tables, but not the expandcollapsecolumn. This is what I have so far:

In the declaration:
<MasterTableView> 
    ... 
    <ExpandCollapseColumn Visible="false" Display="false" /> 
    ... 
</MasterTableView> 

In code:
protected void Roles_PreRender( object sender, EventArgs e ) 
{ 
    (RoleGrid.MasterTableView.GetColumn( "ExpandColumn" ) as GridExpandColumn).Visible = false; 
    RoleGrid.MasterTableView.Columns[0].Visible = false; 
} 
 
protected void RoleGrid_ItemCreated( object sender, GridItemEventArgs e ) 
{ 
    if( e.Item is GridDataItem ) 
    { 
        (e.Item as GridDataItem)["ExpandColumn"].Visible = false; 
    } 
}  

With all this, I still end up with the ExpandColumn header showing up. The actual column cells are hidden, which causes all my other cells to be shifted left, thus getting their data in a row one left of their header... does it really have to be this hard to get rid of that thing?





Schlurk
Top achievements
Rank 2
 answered on 04 Sep 2009
1 answer
107 views
When we switched from Q1 to Q2 SP1 we lost the second group of a radgrid that had two groups - one that was not collapsed and one that was.  We set the collapse in the code behind.  Now the second group does not show up at all.


Pavlina
Telerik team
 answered on 04 Sep 2009
2 answers
239 views
Hi,
I have product that use old version of Terelik controls , is it possible mixing different versions in the same application?
If it's possibe how would I do that.
Igor.
Igor
Top achievements
Rank 1
 answered on 04 Sep 2009
2 answers
129 views
I need to programmatically change the selected tab without causing the OnClientTabSelected event to fire.  Using both tab.select(); and tab.set_selected(true); is firing my event.
bozojoe
Top achievements
Rank 1
 answered on 04 Sep 2009
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?