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

We already have the ASP .Net MVC controls and would like to integrate them with the MOSS 2007.
Would like to get a detailed list of steps that needs to taken for installing at the web application bin level.
I have seen the white paper at http://www.telerik.com/documents/MOSS_whitepaper.pdf for the RadMenu, can I follow the same steps for ASP.Net MVC controls also.

Thanks in Advance.
Atanas Korchev
Telerik team
 answered on 17 May 2010
1 answer
132 views
I am trying to fire a nested child insert command from a command item on the parent grid.
I have a GridButtonColumn that I am setting the CommandName to "InsertNest" in the code I can get a hold of the child item, but can not get it to fire the "InitInsert" command.

here is my code behind.

protected void rgvHealthInspList_ItemCommand(object sender, GridCommandEventArgs e) 
        { 
            if (e.CommandName == "InsertNest"
            { 
                GridTableView tblView = e.Item.OwnerTableView as GridTableView;                 
                GridItem[] nTablesViews = tblView.GetItems(GridItemType.NestedView); 
                GridNestedViewItem nTableView = nTablesViews[0] as GridNestedViewItem;                 
                GridTableView nTable = nTableView.NestedTableViews[0];                 
 
                //Attempt 1 
                //nTableView.FireCommandEvent("InitInsert", string.Empty); 
 
                //Attempt 2 
                //nTable.IsItemInserted = true; 
                //nTable.Rebind(); 
                 
                //Attempt 3 
                //nTable.InsertItem(); 
                 
                //Attempt a whole bunch of other trys...... :-( 
                //GridEditableItem nItem = nTable.GetInsertItem(); 
                //nItem.FireCommandEvent("InitInsert", nItem.DataItem); 
                 
                //nTableView.FireCommandEvent("InitInsert", nTable); 
                //nTable.FireCommandEvent("InitInsert", nTable);                 
            } 
        } 

So Obviously I have tried a couple of different ways of doing it, none of them seem to work. I have my grid EditMode setup in PopUp mode if that helps.

Any ideas on how to do this would be great!

Thanks,

Dustin
Dustin Dodson
Top achievements
Rank 1
 answered on 17 May 2010
1 answer
73 views
1. Start with an empty editor
2. Press enter to create a blank line at the top
3. Enter some text
4. Highlight the text entered in step 3, and also the blank line entered in step 2. The Bold, Italic & Underline boxes are highlighted. This only seems to happen with the empty line is the topmost thing that is highlighted.
Rumen
Telerik team
 answered on 17 May 2010
1 answer
89 views
Hi, I'm having trouble getting the values to update my table from the radgrid. It does not error, just empty for all three newValues.
  
<telerik:RadGrid ID="rgAntigenLocations" runat="server" GridLines="None" AutoGenerateColumns="False" AllowMultiRowEdit="true" OnItemCommand="ItemCommand" OnItemDataBound="ItemDataBound" OnUpdateCommand="UpdateCommand" OnItemCreated="ItemCreated">
                  <MasterTableView Width="100%" CommandItemDisplay="TopAndBottom" DataKeyNames="ANTIGEN_VIAL_ID"
                HorizontalAlign="NotSet" AutoGenerateColumns="False" CommandItemSettings-AddNewRecordText="">
                <Columns>
                  <telerik:GridBoundColumn DataField="ANTIGEN_ID" HeaderText="Antigen Batch #"
                        UniqueName="ANTIGEN_ID" ColumnEditorID="ANTIGEN_ID">
                    </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="ANTIGEN_CODE" HeaderText="Antigen Code"
                        UniqueName="ANTIGEN_CODE" ColumnEditorID="ANTIGEN_CODE">
                    </telerik:GridBoundColumn>
                      <telerik:GridBoundColumn DataField="ANTIGEN_VIAL_ID" HeaderText="Antigen Vial #"
                        UniqueName="ANTIGEN_VIAL_ID" ColumnEditorID="ANTIGEN_VIAL_ID">
                    </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="ANTIGEN_DEWAR" HeaderText="Dewar"
                        UniqueName="ANTIGEN_DEWAR" ColumnEditorID="ANTIGEN_DEWAR">
                    </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="ANTIGEN_CANISTER" HeaderText="Canister"
                        UniqueName="ANTIGEN_CANISTER" ColumnEditorID="ANTIGEN_CANISTER">
                    </telerik:GridBoundColumn>
                     <telerik:GridBoundColumn DataField="ANTIGEN_CANE" HeaderText="Cane"
                        UniqueName="ANTIGEN_CANE" ColumnEditorID="ANTIGEN_CANE">
                    </telerik:GridBoundColumn>
                </Columns>
                 <CommandItemTemplate>
            <asp:Button runat="server" ID="UpdateAll" Text="Update Storage" CommandName="UpdateAll" />
       </CommandItemTemplate>
                </MasterTableView>
                </telerik:RadGrid>



protected void ItemCommand(object source, GridCommandEventArgs e)
        {
            string strSQL = "";
            SqlCommand SqlCmd = new SqlCommand();
            SqlCmd.Connection = DBConn.serologyDBConn();

            // Performing bulk update here.
            if (e.CommandName == "UpdateAll")
            {
                SqlCmd.Connection.Open();
                foreach (GridDataItem item in rgAntigenLocations.EditItems)
                {
                    Hashtable newValues = new Hashtable();
                    e.Item.OwnerTableView.ExtractValuesFromItem(newValues, item);
                    StringBuilder sb = new StringBuilder();
                    sb.Append("UPDATE TBL_ANTIGEN_VIAL SET ANTIGEN_DEWAR = '");              
                    sb.Append(newValues["ANTIGEN_DEWAR"]);
                    sb.Append("', ANTIGEN_CANISTER = '");
                    sb.Append(newValues["ANTIGEN_CANISTER"]);
                    sb.Append("', ANTIGEN_CANE = '");
                    sb.Append(newValues["ANTIGEN_CANE"]);
                    sb.Append("' WHERE ANTIGEN_VIAL_ID = '");
                    sb.Append(item["ANTIGEN_VIAL_ID"].Text);
                    sb.Append("'");
                    strSQL = sb.ToString();
                    SqlCmd.CommandText = strSQL;
                    SqlCmd.ExecuteNonQuery();
                }
                SqlCmd.Connection.Close();
            }
            rgAntigenLocations.Rebind();
        }
Tsvetoslav
Telerik team
 answered on 17 May 2010
3 answers
144 views
Hello,

We are working with the MOSSRadEditor in Sharepoint 2007, and we have the following bug.
In the radeditor we have the following code:
    <div class="ao-boxWithTabsContainer ao-ApplicationsBox">  
        <div class="ao-boxWhiteFixHeightTitle">  
            <div> 
                applications</div> 
        </div> 
        <div class="linkAppCountry" id="div1">  
            <href="http://www.google.fr" class="ao-boxWithTabsCountryLink" id="A1" target="_self">  
                Title not set</a> <href="http://www.google.fr" class="ao-boxWithTabsGroupLink" 
                    id="A2" target="_self">Group</a> 
        </div> 
        <div class="ao-boxContent ao-box85" id="div2">  
            <ul> 
                <li><a href="#">Premiere bullet</a> </li> 
                <li><a href="#">Seconde bullet</a> </li> 
                <li><a href="#">Troisieme bullet</a> </li> 
                <li><a href="#">Quatrieme bullet</a> </li> 
                <li><a href="#">Cinquieme bullet</a> </li> 
            </ul> 
        </div> 
        <div class="ao-boxContent ao-box85" id="div3" style="display: none;">  
        </div> 
    </div> 

We select the hyperlink with the text "Title not set", the click right and select "Hyperlink propertis" in the contextual menu.
In the Hyperlink Tab we change the Link text to "New" and click on Ok button.
As result, only the text of the hyperlink is present and all tags related to the hyperlink are removed:

    <div class="ao-boxWithTabsContainer ao-ApplicationsBox">  
        <div class="ao-boxWhiteFixHeightTitle">  
            <div> 
                applications</div> 
        </div> 
        <div class="linkAppCountry" id="div1">  
            Title not set <href="http://www.google.fr" class="ao-boxWithTabsGroupLink" id="A2" 
                target="_self">Group</a> 
        </div> 
        <div class="ao-boxContent ao-box85" id="div2">  
            <ul> 
                <li><a href="#">Premiere bullet</a> </li> 
                <li><a href="#">Seconde bullet</a> </li> 
                <li><a href="#">Troisieme bullet</a> </li> 
                <li><a href="#">Quatrieme bullet</a> </li> 
                <li><a href="#">Cinquieme bullet</a> </li> 
            </ul> 
        </div> 
        <div class="ao-boxContent ao-box85" id="div3" style="display: none;">  
        </div> 
    </div> 
 

Does some body already encountered the problem?
All help will be welcome.

Thanks by advance.
Regards.

Didier.
Rumen
Telerik team
 answered on 17 May 2010
3 answers
237 views
I have a page with a RadScriptManager & RadStyleSheetManager and a few RadGrids (no ajax manager) when I set

<pages clientIDMode="Static"

In the web.config when I run my page I encounter this error

Value cannot be null or empty.
Parameter name: elementID

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Value cannot be null or empty.
Parameter name: elementID

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: Value cannot be null or empty.
Parameter name: elementID]
System.Web.UI.ScriptControlDescriptor..ctor(String type, String elementID) +744161
Telerik.Web.UI.RadAjaxManager.GetScriptDescriptors() +127
System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl scriptControl) +176
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +315
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +48
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +246
System.Web.UI.Page.Render(HtmlTextWriter writer) +40
Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +667
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +131
System.Web.UI.Page.Render(HtmlTextWriter writer) +40
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5274


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1


I don't even have a radajaxmanager on the page. This error is very confusing.

If I change the clientID mode back to either AutoID for the 3.5 and earlier standard or predictable this error goes away. I'd like to use static naming though.
Rumen
Telerik team
 answered on 17 May 2010
2 answers
72 views
Hi,

Well ehmmm...I' encountering a little problem with groupFooters, I have a Grid that's grouping by expressions in 2 levels, and the thing is that I want to put a label (to say something), on the groupfooter of the 2nd level but not in the fisrt...for example:

GROUP 1
GROUP 2
item1
item2
item3
......
Group2Footer "Label", Sum
Group1Footer Sum

hope you can help me!!! =)
Dany V
Top achievements
Rank 1
 answered on 17 May 2010
1 answer
91 views
1. question
i want to create a custom skin for a input control (RedTextBox).
i can change the width for a Label in the box. then i click the save button und jump to Textbox. when i jump back to the Lable the value is the old one an not the new i entered before.
Why can't i change this property?

2. question
i want to use the RedTextBox controls with a custom skin and with labels to generate a form for user-input.
the lable shout be left and the input field right. the label fields and the input fields should look like a table with 2 columns.
do you have any examples. (same width for label and input box)

 

<telerik:RadTextBox ID="RadDateInput1" runat="server" EnableEmbeddedSkins="False" Skin="input_calculator" Label="inputbox wiht large lable:" EnableEmbeddedBaseStylesheet="false">

 

 

</telerik:RadTextBox>

 

<

 

br />

 

 

 

<telerik:RadTextBox ID="RadDateInput2" runat="server" EnableEmbeddedSkins="False" Skin="input_calculator" Label="Name:" EnableEmbeddedBaseStylesheet="false">

 

 

 

 

 

</telerik:RadTextBox>

 

 

 

thanks for help
thomas

Dimo
Telerik team
 answered on 17 May 2010
2 answers
165 views
I have RadComboBox on the ReadPanelBar, and when I pull down the combo box, part of it gets hidden behind the RadPanelItem below. This happens when the RadPanelItems below the combobox are extended. How do I fix this?
RadComboBox doesn't have any property to set so it can overlay any other controls.
I am using RadControls for AJAX version Q3 2009, that pretty recent. Do you have fixes related to this in the latest version?
Leela Yarlagadda
Top achievements
Rank 1
 answered on 17 May 2010
2 answers
73 views
I have two RadTreeView controls on a page and on RadTreeView1_NodeExpand I want to bind RadTreeView2 with some other data based on RadTreeView1 current node data. Even though the function to load RadTreeView2 is called, RadTreeView2 is not displayed. if I call the same function on RadTreeView1_NodeClick event then it is visible. How to make it visible on NodeExpand event? You help is much appreciated.
Srinivas Nilagiri
Top achievements
Rank 1
 answered on 17 May 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
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
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?