Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
157 views
I'm using the selected nodes in a treeview to populate a simple breadcrumb in my tab strip on the client side.  If I haven't clicked on the parent node first then it will return null.  Here is the code that is driving the functionality.  Any help would be greatly appreciated...

        function OnClientNodeClicked(sender, args)
        {
            var treeView = $find("<%= RadTreeView1.ClientID %>");
            var tabStrip = $find("<%= RadTabStrip1.ClientID %>");
            var selectedTab = tabStrip.get_selectedTab();
            var selectedNode = treeView.get_selectedNode();
            var parentNode = selectedNode.get_parent();
            if (selectedNode.get_level() == 0)
            {
                selectedTab.set_text(selectedNode._text);
            } else {
                selectedTab.set_text(parentNode._text + " -> " + selectedNode._text);
            }
        }

Joe Burton
Top achievements
Rank 1
 answered on 22 Oct 2009
1 answer
106 views
Actually we are facing some issue while setting the default FileType while uploading the file by using RadUpload Control in Telerik

The client requirement is that we require File Type as CSV in the browse option for RadUpload
Can somebody help me in this regards?

Thanks in advance.

Rahul Nasa
Sapient
rahulnasa@gmail.com
Genady Sergeev
Telerik team
 answered on 22 Oct 2009
2 answers
85 views
I'm having an issue displaying radchart in a custom webpart deloyed to SP2010 beta 1 site
ChartHandler is correctly registered. Same code works in an asp.net site
am i missing something?
Ves
Telerik team
 answered on 22 Oct 2009
1 answer
100 views
I'm hoping this is a simple question, though we have spent a lot of time without finding the right answer.  We have a site - http://columbusrealtors.com/Classes_Events/default.aspx?ID=calendarview where we need better control over the individual event line height display.  Under IE 8 you'll see that the bottom of the text is cut off (y's and g's).  We are looking for the settings to control the following:
  1. how many pixels of display height will appear for each row
  2. how many pixels of padding between rows are set
  3. how to dynamically display two rows of data for events that need the extra room

Where do we set these and how?
thanks!
Genady Sergeev
Telerik team
 answered on 22 Oct 2009
1 answer
84 views
Hi Telerik Team,

I would like to report an error in the help of RadGrid : http://www.telerik.com/help/aspnet-ajax/grdvalidation.html
In the first VB.Net sample code, the handle clause is missing (Handles RadGrid1.ItemCreated)

 Protected Sub RadGrid1_ItemCreated(ByVal sender As Object, ByVal e As  Telerik.Web.UI.GridItemEventArgs) Handles RadGrid1.ItemCreated 
 If (TypeOf e.Item is GridEditableItem AndAlso e.Item.IsInEditMode) Then 
  Dim item As GridEditableItem = CType(e.Item,GridEditableItem) 
  Dim editor As GridTextBoxColumnEditor = CType(item.EditManager.GetColumnEditor("ContactName"),GridTextBoxColumnEditor) 
  Dim cell As TableCell = CType(editor.TextBoxControl.Parent,TableCell) 
  Dim validator As RequiredFieldValidator = New RequiredFieldValidator 
  editor.TextBoxControl.ID = "ID_for_validation" 
  validator.ControlToValidate = editor.TextBoxControl.ID 
  validator.ErrorMessage = "*" 
  cell.Controls.Add(validator) 
 End If 
End Sub  

Cheers,

S.F.
Daniel
Telerik team
 answered on 22 Oct 2009
2 answers
120 views
Hi,

I've encountered a problem after upgrading from RadControls for ASP.Net AJAX 2008 Q3 1314 to 2009 Q2 826.

I'm using rad windows and when the user closes one they get a warning in a rad confirm box, if they click ok the window should close if they click cancel it stays.

This all worked great in the 2008 Q3 release but in the newer 2009 Q2 release when you click ok on the rad confirm box the window doesn't close.

Here are the scripts I am using to open the windows and to handle the showing on the confirm box:

    function OpenAWindow(url, title) {  
        var win = radopen(url, null);  
        win.set_title(title);         
        win.set_status("");  
        win.add_pageLoad(function() { win.set_status(""); });  
        alert(win.offsetLeft);  
    }  
      
    function OnBeforeClose(sender, arg) {  
        function callbackFunction(arg) {  
            if (arg) {  
                sender.remove_beforeClose(OnBeforeClose);  
                sender.close();  
                if (!AnyWindowsVisible()) {  
                    document.getElementById('<%= btnClose.ClientID %>').click();  
                }  
            }  
        }  
        arg.set_cancel(true);  
        var messageBody = document.getElementById('<%= hdnWarningMessage.ClientID %>').value;  
        var messageTitle = document.getElementById('<%= hdnWarningTitle.ClientID %>').value;  
        radconfirm(messageBody, callbackFunction, 300, 100, null, messageTitle);  
    }  
 
    function AnyWindowsVisible() {  
        var result = false;  
        var manager = GetRadWindowManager();  
        for (var i = 0; i < manager.get_windows().length; i++) {  
            if (manager.get_windows()[i].isVisible()) {  
                result = true;  
                break;  
            }  
        }  
        return result;  
    }  
 
    function OnClientShow(sender) {  
        sender.add_beforeClose(OnBeforeClose);  
    } 
and the html:

<asp:UpdatePanel ID="pnlScript" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional">  
    <ContentTemplate> 
        <asp:Literal ID="litScriptAnchor" runat="server" /> 
        <asp:HiddenField ID="hdnWarningMessage" runat="server" /> 
        <asp:HiddenField ID="hdnWarningTitle" runat="server" /> 
    </ContentTemplate> 
</asp:UpdatePanel> 
<div class="TelerikWindowRestrictedZone_Container">  
    <div class="TelerikWindowRestrictedZone_Header">  
    </div> 
    <div id="WindowContainer" class="TelerikWindowRestrictedZone_Body">  
    </div> 
</div> 
<asp:UpdatePanel ID="pnlWindowCommands" runat="server">  
    <ContentTemplate> 
        <asp:Button ID="btnClose" runat="server" Text="close" OnClick="btnClose_Click" Style="display: none;" /> 
    </ContentTemplate> 
</asp:UpdatePanel> 
<asp:UpdatePanel ID="pnlWindows" runat="server" ChildrenAsTriggers="true" UpdateMode="Conditional">  
    <ContentTemplate> 
        <telerik:RadWindowManager ID="ucRadWindowManager" RestrictionZoneID="WindowContainer" OnClientDragEnd="FixFocus" OnClientResize="FixFocus" OnClientCommand="FixFocus" OnClientShow="OnClientShow" PreserveClientState="true" runat="server" Skin="Telerik">  
        </telerik:RadWindowManager> 
    </ContentTemplate> 
</asp:UpdatePanel> 

any ideas?

Thanks,

Ian
ian webster
Top achievements
Rank 1
 answered on 22 Oct 2009
1 answer
92 views
Hello,

I am searching for the faster method to do an order input.
As this is a very common request, I suppose that Telerik has already some idea on the best optimized solution.

I need to enter a variable number of order items, each line being
- a radCombobox to select a product, selecting the product should fill next fields with default alue
- a Price non editable display box
-  an editable quantity input box with a default value of 1
-  a non editable bow with total=price*quantity

A button sould allow adding a new order line, anoter suppressing a line (just as in RadUpload)

Products/Prices come from a very large table which necessitate calling a web service to find the product with its name.

Users should see the grand total of order refreshed after any change in quantity or product, they could change product and quantity without having to click a button: simply entering the new value.

I am puzzled should I use RadInput controls with lot of javascript or RadGrid.

With radinput I get very fast process, but difficulty is addig a new row (how to add a radCombobox clientside ?) and reading the order lines server side when order is finshed.
With RadGrid, I need to click lot of button to go insert/edit mode and the various call back are slow because the full asp.net page lifecycle is slow.

Thanks for help.

CS
Nikolay Rusev
Telerik team
 answered on 22 Oct 2009
2 answers
110 views
Hi,

Is there a way to disable node expanding when drag is over the node? I have read somewhere that this is by default, and it seems you wanted to implement this to have windows like feature. But, I need to be able to disable this. Is there some workaround for this on client side?

Another issue related to dragging. When list of nodes is long and I need to drop node at the bottome of the treeview which is not displayed on the screen, auto-scroll does not work. It does not work on IE or Firefox. This can be achieved by using mouse scrolling wheel, but this is something our clients wont like.

Thanks,
Radovan
Radovan Radic
Top achievements
Rank 1
 answered on 22 Oct 2009
1 answer
72 views
I can't seem to find the settings to make the splitter appear white, no border and show just a button to collapse or expand. I have it full screen and one at top, left, right, and bottom. I would like to it appear with a just a button, the background of the pages are white. Any help would be awesome. Thanks
Svetlina Anati
Telerik team
 answered on 22 Oct 2009
1 answer
239 views
Hi,

this is my  datepicker   <telerik:RadDatePicker ID="RadReceiveAFCA"     
                                                     DbSelectedDate='<%# Bind("ReceiveAFCA")  %>'
                                                     DateInput-DateFormat="dd/mmm/yyyy"   SharedCalendarID="sharedCalendar"  
                                                     Width="100px"    runat="server">
                                                 <DateInput ID="DateInput1" runat="server" DateFormat ="dd/MM/yyyy"  DisplayDateFormat="dd/MM/yyyy" />
                                                </telerik:RadDatePicker>

When i save null date table has mindate. (1/1/1900 ). How can i stop saving min date and save null?

This is my save code

 string sqlStr = "update  tbl_DATA_Docs set     DocuStartP     =    '" + dtpDocStart.SelectedDate  + "'    ,    " +
                            "    DocuStartF     =    '" + RadDocuStartF.SelectedDate + "'    ,    " +
                            "    DocuEndP     =    '" + RadDocuEndP.SelectedDate + "'    ,    " +
                            "    DocuStartA     =    '" + RadDocuStartA.SelectedDate + "'    ,    " +
                            "    DocuEndF     =    '" + RadDocuEndF.SelectedDate + "'    ,    " +
                            "    DocuEndA     =    '" + RadDocuEndA.SelectedDate + "'    ,    " +
                            "    SubmitForIDCP     =    '" + RadSubmitForIDCP.SelectedDate + "'    ,    " +
                            "    SubmitForIDCF     =    '" + RadSubmitForIDCF.SelectedDate + "'    ,    " +
                            "    SubmitForIDCA     =    '" + RadSubmitForIDCA.SelectedDate + "'    ,    " +
                            "    ReturnFromIDCP     =    '" + RadReturnFromIDCP.SelectedDate + "'    ,    " +
                            "    ReturnFromIDCF     =    '" + RadReturnFromIDCF.SelectedDate + "'    ,    " +
                            "    ReturnFromIDCA     =    '" + RadReturnFromIDCA.SelectedDate + "'    ,    " +
                            "    IssueForCommentsP     =    '" + RadIssueForCommentsP.SelectedDate + "'    ,    " +
                            "    IssueForCommentsF     =    '" + RadIssueForCommentsF.SelectedDate + "'    ,    " +
                            "    IssueForCommentsA     =    '" + RadIssueForCommentsA.SelectedDate + "'    ,    " +
                            "    ClientReturnedCommentsP     =    '" + RadClientReturnedCommentsP.SelectedDate + "'    ,    " +
                            "    ClientReturnedCommentsF     =    '" + RadClientReturnedCommentsF.SelectedDate + "'    ,    " +
                            "    ClientReturnedCommentsA     =    '" + RadClientReturnedCommentsA.SelectedDate + "'    ,    " +
                            "    ReceiveForCommentsP     =    '" + RadReceiveForCommentsP.SelectedDate + "'    ,    " +
                            "    ReceiveForCommentsF     =    '" + RadReceiveForCommentsF.SelectedDate + "'    ,    " +
                            "    ReceiveForCommentsA     =    '" + RadReceiveForCommentsA.SelectedDate + "'    ,    " +
                            "    IncorporateCommentsP     =    '" + RadIncorporateCommentsP.SelectedDate + "'    ,    " +
                            "    IncorporateCommentsF     =    '" + RadIncorporateCommentsF.SelectedDate + "'    ,    " +
                            "    IncorporateCommentsA     =    '" + RadIncorporateCommentsA.SelectedDate + "'    ,    " +
                            "    IssueForApprovalP     =    '" + RadIssueForApprovalP.SelectedDate + "'    ,    " +
                            "    IssueForApprovalF     =    '" + RadIssueForApprovalF.SelectedDate + "'    ,    " +
                            "    IssueForApprovalA     =    '" + RadIssueForApprovalA.SelectedDate + "'    ,    " +
                            "    ClientReturnFromIFAP     =    '" + RadClientReturnFromIFAP.SelectedDate + "'    ,    " +
                            "    ClientReturnFromIFAF     =    '" + RadClientReturnFromIFAF.SelectedDate + "'    ,    " +
                            "    ClientReturnFromIFAA     =    '" + RadClientReturnFromIFAA.SelectedDate + "'    ,    " +
                            "    ReceiveForComments2P     =    '" + RadReceiveForComments2P.SelectedDate + "'    ,    " +
                            "    ReceiveForComments2F     =    '" + RadReceiveForComments2F.SelectedDate + "'    ,    " +
                            "    ReceiveForComments2A     =    '" + RadReceiveForComments2A.SelectedDate + "'    ,    " +
                            "    IncorporateComments2P     =    '" + RadIncorporateComments2P.SelectedDate + "'    ,    " +
                            "    IncorporateComments2F     =    '" + RadIncorporateComments2F.SelectedDate + "'    ,    " +
                            "    IncorporateComments2A     =    '" + RadIncorporateComments2A.SelectedDate + "'    ,    " +
                            "    IssueForAFCP     =    '" + RadIssueForAFCP.SelectedDate + "'    ,    " +
                            "    IssueForAFCF     =    '" + RadIssueForAFCF.SelectedDate + "'    ,    " +
                            "    IssueForAFCA     =    '" + RadIssueForAFCA.SelectedDate + "'    ,    " +
                            "    ReceiveAFCP     =    '" + RadReceiveAFCP.SelectedDate + "'    ,    " +
                            "    ReceiveAFCF     =    '" + RadReceiveAFCF.SelectedDate + "'    ,    " +
                            "    ReceiveAFCA     =    '" + RadReceiveAFCA.SelectedDate + "'    ,    " +
                            "    OURACTION     =    '" + RadOURACTION.SelectedDate + "'    ,    " +
                            "    Progress     =    '" + txtProgress.Text + "'    ,    " +
                            "    CLIENTACTION     =    '" + RadCLIENTACTION.SelectedDate + "'    where DocNo= '" + DocNo + "'";

            SqlCommand cmd = new SqlCommand(sqlStr, Conn);
            cmd.ExecuteNonQuery();
            ltrPlan.Text = "<SPAN style='color=blue'><br>Succesfully Updated<br></SPAN>";
            cmd.Dispose();


Johny
Top achievements
Rank 1
 answered on 22 Oct 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?