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

What is the property to disable expanding capability for a specific row?
For instance, I want to display managers (mastertable) and their staff (details table) but if a manager doesn't have staff, I would like to disable that row's expanding capability.

Tom
+ Mark
   - Jennie
   - Jim
+ Greg
   - John
   - Steve
Frank

etc.

Many thanks

Toby
Shinu
Top achievements
Rank 2
 answered on 18 May 2010
0 answers
144 views
How would a person go about printing the output from JUST the scheduler control. We also have a timeline view that potentially can scroll WAYYY to the right, so is there a way to print that scrolled content as well???

Thanks!!
Paul Grothe
Top achievements
Rank 1
 asked on 17 May 2010
2 answers
239 views
I can succesfully bind a datareader object as the datasource for a Radgrid.
Unfortunaltelly, when allowing paging, the pages after page 1 are always empty.

I also tried to store the datareader data in a datatable, same problem:

A standard SQLDataSource works fine, also in DataReader mode.

My code:

 

 



 

'=== Radgrid "Suchresultate" ==============================================================
Dim connString As String
Dim cmdString As String
connString = ConfigurationManager.ConnectionStrings("BwaConnectionString").ConnectionString
cmdString = "SELECT [ArtikelID], [Artikelnummer], [Bezeichnung], [Preis], [Text], [Bild], [Warengruppe], [Einheit] FROM [Artikel] WHERE (([Artikelnummer] LIKE '%' + @Artikelnummer + '%') OR ([Bezeichnung] LIKE '%' + @Bezeichnung + '%') OR ([Text] LIKE '%' + @Text + '%'))"

Dim conn As SqlConnection
Dim cmd As New SqlCommand
conn = New SqlConnection(connString)
cmd = New SqlCommand(cmdString, conn)
conn.Open()

Dim da As New SqlDataAdapter

'--- Querystring "Suche" in String speichern ----------------------------------------------
Dim str_Suche As String
str_Suche = Request.QueryString("Suche")

'--- SqlParameter definieren --------------------------------------------------------------
'--- WICHTIG: Das Command und Connection Objekt muß schon initialisiert und geöffnet sein -
'--- Sonst Fehler bei den SqlParametern!!! ------------------------------------------------
With cmd.Parameters
.Add(New SqlParameter("@Artikelnummer", str_Suche))
.Add(New SqlParameter("@Bezeichnung", str_Suche))
.Add(New SqlParameter("@Text", str_Suche))
End With
'--- SqlParameter definieren E N D E -----------------------------------------------------

'--- DataReader anlegen und zuweisen als Datasource
Dim dr_Suchresultate As SqlDataReader
dr_Suchresultate = cmd.ExecuteReader(CommandBehavior.CloseConnection)

Dim dt_Suchresultate As New DataTable
dt_Suchresultate.Load(dr_Suchresultate)

RadGrid_Suchresultate.DataSource = dt_Suchresultate
RadGrid_Suchresultate.DataBind()
'------------------------------------------------------------------------------------------
'=== Radgrid "Suchresultate" E N D E ======================================================

Can you please give me a hint what to do?

Thanks in advance for your help

Best regards

Thomas

 

 

 

 

 

Thomas
Top achievements
Rank 1
 answered on 17 May 2010
2 answers
135 views
Hi,

there are the mouse guys - they love the spin buttons.
And there are the keyboard guys - they love to type.

One of my customers now encountered a problem with the keyboard guys (or shall I say with RadNumericTextbox) :)

Situation:
RadNumericTextbox Min set to 5 Max to 20
Works fine - for the mouse guys.
But try to enter 20 via keyboard...

Is there a way to enable min / max (important for the mouse guys - so they can't spin to far)
AND enable keyboard input for the other ones?

Manfred
ManniAT
Top achievements
Rank 2
 answered on 17 May 2010
3 answers
112 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
140 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
79 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
93 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
146 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">  
            <a href="http://www.google.fr" class="ao-boxWithTabsCountryLink" id="A1" target="_self">  
                Title not set</a> <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 <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> 
 

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
252 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?