Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
102 views
Hi

I have rad treeview with check box  and my treeview have more than 2000 nodes.
Top of the treeview control i have a check box check all. when i click the check all checkbox i need to select all the parent and child nodes. With out looping the node, is any other option is there?
Because if i loop all the node using javascript, IE giving the error message. script is running continuously it will slow down other operations.



Regards
Vairam
Vivek
Top achievements
Rank 1
 answered on 03 Oct 2012
1 answer
92 views
I have RadGrid with grouping enabled on boolean field. The thing is, group header contains field value True or False, which I'd like to change to something like Yes or No.

I know I could alternate the text on ItemDataBound event, but that is not very flexible - it will always change True/False to Yes/No, even when there will be actual need to display True/False.

Are there any aleternative approaches for changing group header text?
Princy
Top achievements
Rank 2
 answered on 03 Oct 2012
1 answer
85 views


Good afternoon, how do I get hold of the <telerik: RadButton id = "rbDetails" in my codeBehind that is within
a <telerik: RadListView and within a <ItemTemplate>?

<telerik:RadListView  ID="RadListView1" 

                      runat="server"

                      ItemPlaceholderID="EmployeesContainer"

                      AllowPaging="True"

                      PageSize="16"

                      BorderColor="Black"

                      BorderStyle="Solid"                                                  ClientDataKeyNames="PersonId"                                                              onitemcommand="RadListView1_ItemCommand"                                                           

                      onPageIndexChanged="RadListView1_PageIndexChaged"

                      style="background-color:#edf2f7"

                       >
                                 

                      <LayoutTemplate> 

                      <div id="radList" runat="server" style=" background-color: #EDF2F7;   cursor: pointer; font-size:12px; moz-border-radius: 5px">                                     

                      <fieldset id="FieldSet1"  >

                       <asp:PlaceHolder ID="EmployeesContainer" runat="server" />

                       <div style="clear: both; background-color:EDF2F7" />

                       <div>                                                                   

                       </div>

                       </fieldset>

                      </div>

                       </LayoutTemplate>

 

                        <%-- ########## Fields ########## --%>

                       <ItemTemplate>

                            <div id="listView" runat="server" style="color:Black" >

                             <div class="item" id="tudo" style="width:205px; height:100px">

                              <div style="width:100%; height:20px; margin-left:5px; float:left">

                               <a style="font-family: Calibri; font-weight: bold; font-size: 14px;"> <%#Eval("Name")%></a>

                                  </div>

                                <div id="Div3" style="width:100%; margin-left:5px; height:20px; float:left"></div>

                              <div id="entity2" style="width:100%; margin-left:5px; height:15px; float:left">

                             <%#Eval("Abbreviation")%>

                         </div>

                                 <div id="function2" style="width:100%; margin-left:5px; height:15px; float:left">

                                   <%#Eval("JobTitleDescription")%>

                                 </div>

                               <div id="voip2" style="width:53%; margin-left:5px; float:left">

                           <%# Eval("VoipNumber")%>

                          </div>

                         <%-- ########## Button Details ########## --%>

                          <div id="divDetails" runat="server" style="width:5%; margin-left:2px; float:left">

                         <telerik:RadButton ID="rbDetails" runat="server" Text="Detalhes" Skin="Office2007" CommandName="details" Visible="false" >

                          <Icon PrimaryIconUrl="../Images/btns/btnMostra.png"  PrimaryIconTop="2px" PrimaryIconLeft="4px" PrimaryIconWidth="30px" PrimaryIconHeight="30px" />

                          </telerik:RadButton>

                             </div>

                                </div>

                                   </div>

                                </ItemTemplate>

                              <SelectedItemTemplate>                                       

                          </SelectedItemTemplate>

                          </telerik:RadListView>

 

 
Kostadin
Telerik team
 answered on 03 Oct 2012
5 answers
407 views
Hi,

I am using autocomplete for a RADCombobox. 

[OperationContract]
public RadComboBoxData wpfSelectProgrammeFromClientDB(RadComboBoxContext context)
{
}

In this service, I am using a SQL Query to fill a datatable.

strSQLQuery = "SELECT pk_ProgrammeID,Title FROM Programme WHERE Title LIKE @prefixText";
da = new SqlDataAdapter(strSQLQuery, ConfigurationManager.ConnectionStrings["DEMO"].ToString());
da.SelectCommand.Parameters.Add("@prefixText", SqlDbType.VarChar, 50).Value = "%" + context.Text + "%";
dt = new DataTable();
da.Fill(dt);

In my .aspx, I use

<telerik:RadComboBox ID="rcbClientProgrammeTitle" Runat="server" EmptyMessage="Select a Title" EnableLoadOnDemand="true" 
                                ShowMoreResultsBox="true" EnableVirtualScrolling="true" Skin="Windows7" 
                                AutoPostBack="True" >
<WebServiceSettings Method="SelectProgrammeFromClientDB" Path="LinkMedia.aspx.cs"/>
</telerik:RadComboBox>

I need to pass a second parameter to the SQL Query, like

strSQLQuery = "SELECT pk_ProgrammeID,Title FROM Programme WHERE Title LIKE @prefixText AND Client = @Client";
da = new SqlDataAdapter(strSQLQuery, ConfigurationManager.ConnectionStrings["DEMO"].ToString());
da.SelectCommand.Parameters.Add("@prefixText", SqlDbType.VarChar, 50).Value = "%" + context.Text + "%";
da.SelectCommand.Parameters.Add("@Client", SqlDbType.VarChar, 50).Value = " + WHAT DO I PASS HERE;
dt = new DataTable();
da.Fill(dt);

OR is there any other alternative to do this. The @Client comes from a Query String which I am not able to access in the WCF Service.

Can you please show me a demo of how to send multiple parameters to the Service or how to access the query string values from the page in the service.

Thanks
Prithvi
Kalina
Telerik team
 answered on 03 Oct 2012
2 answers
137 views
Hi,

All i am trying to do is check if the context menu is open.

the only property i can find for this is
"._shown"
is this correct or is there another way of doing this?

Thanks
Business Systems
Top achievements
Rank 1
 answered on 03 Oct 2012
1 answer
92 views
Pressing the backspace in Google Chrome after certain character combinations deletes the entire paragraph.  I can reproduce this by pasting the following HTML:

<p>x 5 1/2  x</p>

Note, there are two spaces after the 1/2.  If I switch back to HTML mode, position the cursor key just after the 2, and hit backspace, the entire paragraph is deleted.  I can reproduce this in the Telerik demo here:

http://demos.telerik.com/aspnet-ajax/editor/examples/editorinradwindow/defaultcs.aspx


Rumen
Telerik team
 answered on 03 Oct 2012
5 answers
153 views
Hello all,

I'm learning to use the RadChart control and I'd like to ask how to dynamically get the name of the series item that generated the RadChart.Click event to use it as part of the series name for the next chart generated (ex. if the chart shows the sales volumes per month in an given year and the user clicks on the July column, the next chart should show the details for July and the series name would be "Sales details for July").

Any help would be really appreciated!
Ves
Telerik team
 answered on 03 Oct 2012
3 answers
88 views
Hi,
I am using Telerik RAD controls(RAD Combo, RAD TextBox ,RAD Tab etc) inside update panel.  It was working fine just a few days back. Now I am getting error "Microsoft JScript runtime error: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: id" before page load. I am using VS2010, framework 4.0 with Win-XP. It is always occurring on a single page while others are working fine. I matched Telerik version from Web.config and in Reference added (not using GAC here). I'd also added AJAXToolkit dll and added in reference of project. I also tried with removing Update Panel but got same result.
Andrey
Telerik team
 answered on 03 Oct 2012
4 answers
118 views
Hi,

I have a custom column (who's inheriting from GridBoundColumn) who display an image related to the DataField. I override the method InitializeCell :

public override void InitializeCell(TableCell cell, int columnIndex, GridItem inItem)

when the page load for the first time, the parameter inItem.DataItem is not null and contains the object representing a row from the DataSource.

On the other side, in the PostBack, inItem.DataItem is null ! So I can't retrieve my data...

Is something wrong ?


Thank you !
Francis
Top achievements
Rank 1
 answered on 03 Oct 2012
5 answers
167 views
Hi,
I have a radgrid with a custom command bar (commanditemtemplate) with a few linkbuttons on it.
Also I have the radgrid ClientSettings AllowKeyboardNavigation="true" and KeyboardNavigationSettings AllowSubmitOnEnter="true"
When I move to the command bar with the TAB key  and select a linkbutton (or use the associated AccessKey to select it immedeately), then use the ENTER key to fire the button, instead the selected record is opened for editing.
How can I skip the SubmitOnEnter when I have the linkbutton selected?

I tried the code below, it gets fired when the enter key is pressed, but still the record is selected instead of the command fired.
Any ideas?

Thanx in advance,

Regards,
Frank
Telerik.Web.UI.RadGrid.prototype._canHandleKeyboardAction = function (e) {
                var keyCode = e.keyCode || e.charCode;
                if ((keyCode == 32 || keyCode == 13)
                && this.ClientSettings.KeyboardNavigationSettings.EnableKeyboardShortcuts) {
                    var target = Telerik.Web.UI.Grid.GetCurrentElement(e);
                    if (target.tagName.toLowerCase() == "a") {                        
                        return false;
                    }
                }
                return true;
            }

Antonio Stoilkov
Telerik team
 answered on 03 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?