Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
174 views
Hey guy's,


I need to export extra cell`s in my excelsheet, which are not found in gridview. The position of this cells have to be on the top of the page. I've attached an example, i hope you could follow.

Thanks for efforts.

kind regards

Url Andreas
Daniel
Telerik team
 answered on 01 Nov 2010
7 answers
166 views
I keep getting the error : "Microsoft JScript runtime error: 'originalWidth' is null or not an object" in the Telerik.Web.UI.WebResrouce.axd  after displaying then closing radwindows. The error occurs when using my own radwindows as well as radalert and radconfirm.
Has anyone seen this behaviour before ? I'm really stuck with this one and can't move to production until I can get past this...
Any help will be much appreciated.
Stuart Hemming
Top achievements
Rank 2
 answered on 01 Nov 2010
2 answers
164 views
Hey guys,

I'm using a RadGrid as my input form and everything is working to open a blank record in the editform and fill it out.

I'm using a button outside the grid to kick off the insert command. This is the code that I have to kick off the update command in another grid...

GridItem[] items1 = RadGrid1.MasterTableView.GetItems(GridItemType.EditFormItem);
for (int i = 0; i < items1.Length; i++)
{
    int itemIndex = items1[i].ItemIndex;
    if (RadGrid1.EditItems[0].ItemIndex == itemIndex)
    {
        (items1[i] as GridEditableItem).FireCommandEvent("Update", String.Empty);
    }
}

but it doesn't work by changing the command to Insert. The error I'm getting is in regards to the itemIndex which makes sense because it shouldn't have an index yet.

Can you show my how to get reference to the InsertItem using an outside button so I can kick off the Insert command?

Thanks =)
Philip Senechal
Top achievements
Rank 1
 answered on 01 Nov 2010
3 answers
156 views
Hello,

I am using the latest version of ASP.Net Ajax controls. I created a Visual Studio web project (using the Telerik template)  that includes a default.aspx page with a RadChart, Everything works correctly but now I need to deploy it to a Sharepoint 2007 site.

What is the way to add this project (the aspx page, associated resources, settings, etc) to Sharepoint?
Is it possible to integrate this new page into my Sharepoint site using a very simple method like a page viewer web part (standard web part that comes with Sharepoint)?

Thank you,
M. R.


Tsvetoslav
Telerik team
 answered on 01 Nov 2010
5 answers
150 views
Hi Team

I added radtreeview in sharepoint master page for left navigation.
the code below is i used
<HEAD>
     <script language="javascript">
     //<![CDATA[
function ClientNodeClicked(sender, eventArgs)
{
alert();
window.setTimeout(function()
    {
        alert(sender.getWindowBounds().x);
    }, 0);
    var node = eventArgs.get_node();
   node.toggle();    
}
//]]>
</script>
    </HEAD>
<BODY scroll="yes" onload="javascript:if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();">
  <form runat="server" onsubmit="return _spFormOnSubmitWrapper();">
   <telerik:RadScriptManager runat="server" ID="RadScriptManager1"/>
<asp:ContentPlaceHolder id="PlaceHolderLeftNavBar" runat="server">
                <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script language="javascript" type="text/javascript">
      //<![CDATA[
        function pageLoad() {
        alert('In');
            var tree = $find("<%= RadTreeView1.ClientID %>");
            if (tree) {
                var location = window.location.pathname;
                location = location.substring(location.lastIndexOf('/') + 1);
                var nodeText = location.split('.');
                var node = tree.findNodeByText(nodeText[0]);
                alert(nodeText[0]);
                if (node.get_level() != 0) {
                    var parentNode = node.get_parent();
                    node.get_parent().expand();
                    node.select();
                }
                else {
                    node.expand(true);
                    node.select();
                }
            }
        }
//]]>
   </script> </telerik:RadCodeBlock>
 
                <telerik:RadTreeView ID="RadTreeView1" EnableEmbeddedSkins="false" DataSourceID="XmlDataSource1"
         runat="server" Skin="IV" OnClientNodeClicked="ClientNodeClicked" DataNavigateUrlField="ImageUrl">
         <DataBindings>
                <telerik:RadTreeNodeBinding SelectedImageUrl="/IV/Img/selected_arrow.png" ExpandMode="ClientSide" DataMember="Node" TextField="Text" ExpandedField="Expanded" />
            </DataBindings>
        </telerik:RadTreeView>
        <asp:XmlDataSource runat="server" ID="XmlDataSource1" DataFile="TreeView.xml" XPath="/Tree/Node" />
         </asp:ContentPlaceHolder>
</form>
  </BODY>

but the pageLoad and ClientNodeClicked events are not firing in browser...

help me to solve this issue...
Kalina
Telerik team
 answered on 01 Nov 2010
2 answers
173 views
Hi,
I feed data to my radGrid with a datatable that is generated dynamically. I'm trying to figure out how to merge all the columns (I have 4 if it helps any) if the object received (from the loop) has a specific value in one of it's properties.

I know I'm not too clear here, so here's a little analogy. The object that I use to build the datatable is a list of category of  ingredients (vegetable, meats, etc.). Each row has different stats and whatnot. When I got to, let's say "Dairy", I need to merge all the cells in the row so that I can add a user control in it.

If anyone can help, that would be great.

Thanks
Sam
Sammy78
Top achievements
Rank 2
 answered on 01 Nov 2010
3 answers
124 views
I have a RadEditor with very basic functionality.  Nothing in the modules section, using external Toolbar file, and external CSS file.

However, this is generating a tremendous amount of code to the page for things like Image Manager, Document manager, etc, which I am not using.  Also it's adding a lot of extra code for localization: $create(Telerik.Web.UI.RadEditor, {"_localization":{"addcustomcolor":"Add Custom Color...","addcustomhexcolor":"Add Hex Color...","

Except that I'm not using Add custom color, hex color, or anything other than bold, italic, underline.

How can I trim this way down?
Rumen
Telerik team
 answered on 01 Nov 2010
2 answers
598 views
Hi,

I am using telerik rad grid for displaying data.
For editing, i am using GridEditCommandColumn for displaying the edit option.
Now based on some logic, i have to hide/show this "Edit" option based on some value coming from the database.
Currently i am trying to do this in ItemDataBound event -
((Telerik.Web.UI.GridEditCommandColumn)(e.Item.OwnerTableView.Columns[0])).Visible = false;
It is hiding the complete column. What i thought was, it will hide the Edit option for the particular row but it hides the column itself.
I also tried to set the EditText property to set it to blank based on condition, but the results were coming awkward, like it was showing or hiding Edit option randomly.
(((Telerik.Web.UI.GridEditCommandColumn)(e.Item.OwnerTableView.Columns[0])).EditText = "Edit";)

Is there any way i can hide the GridEditCommandColumn Edit option for a particular row.
SKY
Top achievements
Rank 1
 answered on 01 Nov 2010
4 answers
177 views
I am trying to impliment the "RadComboBox and ASP.NET AJAX 4.0 Preview – using client-side templates and webservice load on demand" solution in the blogs. The issue is that the MicrosoftAjaxTemplates.js is no longer in the MS ajax code and now resides in the Ajax control toolkit code. I have a master page with a RadScriptManager and am using a ScriptManager proxy in the content area of the page. I have followed the blog post and added a script reference to the proxy. Also I have added the EnableScriptCombine="false" to the master page RadScriptManager, no luck.

Is it possible to update the blog post with current deployments of the AJAX Rad Controls and the MS Ajax code?

Thanks
Scott
Scott
Top achievements
Rank 2
 answered on 01 Nov 2010
2 answers
984 views
I'm doing a proof of concept with the RadTextbox and a client-side event that will display characters while I am typing.

The end result would be automatic filtering of a RadGrid based on the input of this textbox (filtering while typing, similar to Google results).  I saw your demo using the RadComboBox, but I would like to improve upon that without having using a combobox for my results, as my result set could be in the thousands.

The proof of concept is simple, type in the textbox (input) and the label (output) is automatically updated.  It works great when typing letters, but hitting backspace, delete, or holding down a key does not work.  To be honest, after much research, I'm not sure if this is possible with javascript or jquery.  Looking at the available client-side events from here, I don't see any events that would fit my scenario. 

I did figure out I have to append the character that was being pressed to the text already inside the textbox.

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
 
<telerik:RadScriptBlock runat="server" ID="RadScriptBlock1">
    <script type="text/javascript">
        function filterGrid(sender, eventArgs) {
            var inputControl = $find("<%=txtInput.ClientID%>");
            var outputControl = $get("<%=lblOutput.ClientID %>");
             
            var inputText = inputControl.get_value();
            var keyPressed = eventArgs.get_keyCharacter();
 
            outputControl.innerHTML = inputText + keyPressed;
        }
    </script>
</telerik:RadScriptBlock>
 
Input:
<telerik:RadTextBox runat="server" ID="txtInput" ClientEvents-OnKeyPress="filterGrid" />
 
<br />
Output:
<asp:Label runat="server" ID="lblOutput" />

Any help is greatly appreciated!  Thanks so much.
Mike
Top achievements
Rank 2
 answered on 01 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?