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

In the PreRender event of our Radgrid we have a loop to make some rows, one column, editable:
protected void RadGridFailureReportSearch_PreRender(object sender, EventArgs e)
 {
     string strPreviousFailureReportNbr = string.Empty;
 
     foreach (GridItem item in RadGridFailureReportSearch.MasterTableView.Items)
     {
         GridEditableItem editedItem1 = (GridEditableItem)item;
         if (editedItem1.GetDataKeyValue("ID").ToString() != strPreviousFailureReportNbr)
         {
             strPreviousFailureReportNbr = editedItem1.GetDataKeyValue("ID").ToString();
             if (item is GridEditableItem)
             {
                 GridEditableItem editableItem = item as GridDataItem;
                 editableItem.Edit = true;
             }
         }
         else
         {
             if (item is GridEditableItem)
             {
                 GridEditableItem editableItem = item as GridDataItem;
                 editableItem.Edit = false;
             }
         }
     }
     RadGridFailureReportSearch.Rebind();
 }

Having added an Export to Excel button to the grid I notice that the items that were set to Edit = true does not get exported.

I tried the following 
protected void RadGridFailureReportSearch_ItemCommand(object sender, GridCommandEventArgs e)
 {
     if (e.CommandName == RadGrid.ExportToExcelCommandName)
     {
         RadGridFailureReportSearch.ExportSettings.IgnorePaging = true;
         foreach (GridItem item in RadGridFailureReportSearch.MasterTableView.Items)
         {
             if (item is GridEditableItem)
             {
                 GridEditableItem editableItem = item as GridDataItem;
                 editableItem.Edit = false;
             }
         }
// Tried with and without below line
         RadGridFailureReportSearch.Rebind();
     }
 }

But that did not help. It seems that once an item have been editable it can not be exported using the built in export functionality.

Is this really so or is it just ignorance on my part? Any ideas?

Regards,
Hans
Hans
Top achievements
Rank 1
 answered on 15 May 2013
1 answer
111 views
Hey guys,
Could you please help me with this example 
http://www.telerik.com/help/aspnet-ajax/listview-manual-editing.html

how can I update the database using the data table in the example, please reply...
Thanks, 
Rasha
Princy
Top achievements
Rank 2
 answered on 15 May 2013
2 answers
90 views
Is the ribbon bar supported in IE QuirksMode.

On load I get a "not responding due to a long-running script" and my site is non-responsive.

If it isn't supported it would be nice to auto degrade back to the original toolbar as a form of progressive enhancements.



Thanks
Steven
Top achievements
Rank 1
 answered on 15 May 2013
7 answers
494 views
Hello Friends,


I following field in sql database for  IMage_master 

1) Imageid (numeric(18,0))
2) Image_code (nvarchar(100))
3) fullimage (image) -- I store image with 100 kb

I am doing windows application with C# and Sql2008 as backend

I have gridviewcomboboxcolumn with name cmbimage with display member fullimage and value member as image code. Its not sowing image its just showing byte[]. i want to display image in   gridviewcomboboxcolumn  .


Please help me out , if possible with code

With Regards

Ameya Chavan
Muhammad
Top achievements
Rank 2
 answered on 14 May 2013
5 answers
590 views

I have raddatepicker control in radwindow.The size of radwindow is fixed. when i open the raddatepicker popup it shows scroll bar in radwindow due to less space.

I don't want to show the scroll bar. so my question is Can we open the datepicker popup upon the radwindow.

I have attached the screen shot.
Venelin
Telerik team
 answered on 14 May 2013
5 answers
209 views
Hi! 

I have an existing website with a typical javascript hover menu navigation at the upper portion of the screen in the form of a 
<div> with  some nested lists <ul>...

The css for this begins with 

#menu {
    float: left;
    margin-left:20px;
    z-index:8000;
   
}
#menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 11em; 
    float: left;
   z-index:8000;
   
}

However, then i placed the RAD Scheduler, it's always persisting on top of the hover navigation even though i enclosed it with

<div   style="z-index:0; ">
         <telerik:RadScheduler
            ID="RAD_Scheduler1"
            runat="server" ....

So far the attempted css z-index:8000 is not working to bring the hover menu to the top. 

May i request some code assistance for this? Appreciate any help :-) I'm just a newbie to the telerik components for asp.net :)

Attached is a screenshot.

Regards,
Angelo


Chema
Top achievements
Rank 1
 answered on 14 May 2013
1 answer
88 views
I have a combo on a web form. It correctly uses the server side _ItemsRequested event to populate the drop down and filter the list as the user types.

I now have a need to programmatically type into that combo using JavaScript. 

I'd like the combo to react as if the user had typed into the combo.

I've tried using the "set_text('blah')" method on the combo, but this does not cause the combo to popup the filtered list in the same way as if a user had typed.

Is this even possible?
Felbrigg
Top achievements
Rank 1
 answered on 14 May 2013
2 answers
111 views
I'm having difficulty with my combo. When the user types, it populates the drop down with a call to the server. Unfortunately the user cant see the drop down, it just doesn't appear on screen. However, if the user clicks underneath the combo after they've typed something, the list appears at the top of the page briefly, and then closes.   Here's my HTML...

<body>
 <form id="form1" runat="server">
 <div>
 <br />
 <br />
 <br />
 <br />
 <br />
 <br />
<asp:ScriptManager ID="scrpMan1" runat="server"></asp:ScriptManager>
 <telerik:RadAjaxPanel runat="server" ID="RadAjaxPanel3">
 <telerik:RadComboBox ID="rcbCandidateName" runat="server"
 style="left:10px;top:10px;"
 EmptyMessage="Candidate name"
 EnableTextSelection="true"
 EnableLoadOnDemand="true"
 DropDownWidth="223px"
 Filter="Contains"
 ShowToggleImage="True"
 ExpandAnimation-Type="InCubic"
 CollapseAnimation-Type="InBack"
 OnItemsRequested="rcbCandidateName_ItemsRequested" >
 </telerik:RadComboBox>
 </telerik:RadAjaxPanel>
 </div>
 </form>
</body>

Felbrigg
Top achievements
Rank 1
 answered on 14 May 2013
1 answer
115 views
I have radtreeview inside radcombobox.

 <telerik:RadComboBox ID="cbTreeViewSelect" runat="server"  ShowToggleImage="True" Skin="Metro" 
                    Style="vertical-align: middle;" OnClientDropDownOpened="OnClientDropDownOpenedHandler"
                    EmptyMessage="Choose a kit" ExpandAnimation-Type="None" CollapseAnimation-Type="None"
                    Font-Bold="true" AutoPostBack="true" Height="350px" CssClass="NormalText12Combo" OnTextChanged="cbTreeViewSelect_TextChanged">
                    <ItemTemplate>
                    
                        <telerik:RadTreeView runat="server" ID="tvTree" OnClientNodeClicking="nodeClicking"
                            CssClass="NormalText12Combo" Width="100%" Height="340px" OnNodeClick="tv_NodeClick"
                            OnDataBound="tvTree_DataBound" />
                           
                    </ItemTemplate>
                    <Items>
                        <telerik:RadComboBoxItem Text="" />
                    </Items>
                </telerik:RadComboBox> 



and scripts as described below.

function nodeClicking(sender, args) {
        var comboBox = $find("<%=cbTreeViewSelect.ClientID %>");
        
        var node = args.get_node()

        var g = node.get_value();
       
        if (g == "0") {
            args.set_cancel(true);
            node.toggle();
            comboBox.attachDropDown();
            comboBox.expand();
        }
        else {
            comboBox.set_text(node.get_text());

            comboBox.trackChanges();
            comboBox.get_items().getItem(0).set_text(node.get_text());
            comboBox.commitChanges();

            $("#<%=hidValue.ClientID %>").val(node.get_value());

            comboBox.hideDropDown();
        }
        // Call comboBox.attachDropDown if:
        // 1) The RadComboBox is inside an AJAX panel.
        // 2) The RadTreeView has a server-side event handler for the NodeClick event, i.e. it initiates a postback when clicking on a Node.
        // Otherwise the AJAX postback becomes a normal postback regardless of the outer AJAX panel.

        //comboBox.attachDropDown();
    }

    function StopPropagation(e) {
        if (!e) {
            e = window.event;
        }

        e.cancelBubble = true;
    }

    function OnClientDropDownOpenedHandler(sender, eventArgs) {
        var tree = sender.get_items().getItem(0).findControl("tvTree");
        var selectedNode = tree.get_selectedNode();
        if (selectedNode) {
            selectedNode.scrollIntoView();
        }
    }


In IE its working fine but in firefox when i click on hyperlink of top node of treeview it expands the tree but it hides(collapse) dropdown..

i want to keep that treeview and dropdown expanded.

Please help.

Thanks in advance.
Genady Sergeev
Telerik team
 answered on 14 May 2013
1 answer
142 views
please delete this question no one is answering
Uttam Dhakal
Top achievements
Rank 1
 answered on 14 May 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?