Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
74 views
<telerik:RadTreeView ID="RadTreeView1" runat="server" CheckBoxes="True" Width="100%"
          Height="250px">
          <Nodes>
              <telerik:RadTreeNode Text="Personal Folders" Expanded="True">
                  <Nodes>
                      <telerik:RadTreeNode Text="Deleted Items (6)">
                      </telerik:RadTreeNode>
                      <telerik:RadTreeNode Text="Drafts">
                      </telerik:RadTreeNode>
                      <telerik:RadTreeNode Text="Inbox (14)" Expanded="True">
                      </telerik:RadTreeNode>
                      <telerik:RadTreeNode Text="Junk E-mail">
                      </telerik:RadTreeNode>
                      <telerik:RadTreeNode Text="Outbox">
                      </telerik:RadTreeNode>
                      <telerik:RadTreeNode Text="Sent Items">
                      </telerik:RadTreeNode>
                      <telerik:RadTreeNode Text="Search Folders">
                      </telerik:RadTreeNode>
                  </Nodes>
              </telerik:RadTreeNode>
          </Nodes>
</telerik:RadTreeView>
I would love to have the ability of declare DropDownTree structure from markup, similar to other Telerik Controls like RadTreeView.
Peter Filipov
Telerik team
 answered on 17 Apr 2013
1 answer
84 views
Dear Telerik Team,

  I experienced a very strange bug when using RadDatePicker with following settings : Culture="fr-FR" & DateInput-DateFormat="ddd dd MMM yyyy".

  Whatever Tuesday I try to select in april 2013, it automatically select the right day and year but set Month to March.

  Best Regards,
Fabien.

It can be reproduced with IE9 and .Net Framework 3.5 and Telerik releases : 2011.3.1115.35, 2013.1.403.35

here is extract of declaration in .aspx file.

            <telerik:RadDatePicker ID="RadDatePickerMaxDate" runat="server"
                Culture="fr-FR"
                DateInput-DateFormat="ddd dd MMM yyyy"
                AutoPostBackControl="Calendar" 
                AutoPostBack="True"
                >
            </telerik:RadDatePicker>

when used as following, no problem at all :
                <telerik:RadDatePicker ID="RadDatePickerMaxDate" runat="server"
                AutoPostBackControl="Calendar" 
                AutoPostBack="True"
                >
                </telerik:RadDatePicker>

Kostadin
Telerik team
 answered on 17 Apr 2013
4 answers
103 views
Hi,

I have implemented sorting. If my column is not sorted then i want to show an image that particular column is not sorted sorting is available for this column. if its shorted then my default behavior should happen. any one can help me in this.

Regards,
Nithya
Nithya Rani
Top achievements
Rank 1
 answered on 17 Apr 2013
9 answers
857 views
Hi,
I have just updated from RadControls Classic. By and large the upgrade went smoothly but I am finding that a lot of my client side script is breaking.

Previously I could do something like this (just an example to demonstrate the point):
Page.ClientScript.RegisterStartupScript(GetType(),"key"
    myRadComboBox.ClientID + ".somefunction();"true); 

From the documentation it looks like this code should be rewritten like this:
Page.ClientScript.RegisterStartupScript(GetType(), "key"
    "$find(\"" + myRadComboBox.ClientID + "\").somefunction();"true); 

However, when I try this, the $find method returns null.

I notice that these scripts are being rendered above the Sys.Application.add_init calls for the control which could be part of the problem but I don't know how to solve this elegantly.


Kate
Telerik team
 answered on 17 Apr 2013
8 answers
243 views
Hi,

I have a radwindow with some .net controls. When i tab from the radwindow, it goes thru all the controls in the radwindow and then it reaches the url field of the browser of the parent page.

How can i restrict the access moving to the parent page from radwindow.
Any help will be much appreciated.

Thanks

Kiresh
Top achievements
Rank 1
 answered on 17 Apr 2013
1 answer
554 views
Trying to get the radgrid onclientclick to work, this way works but have sinceed changed to put variable into it but since then not working but it follows from telerik web site.  I would liek to chane to pass in varable that then pulls things into popup if variable is greater than 0.

This works.
<CommandItemTemplate>
                                <asp:LinkButton ID="lnkAdd" runat="server" Text="ADD ADMIN" OnClientClick="addAdminWin(); return false;"></asp:LinkButton>
                            </CommandItemTemplate>


This does not
<telerik:GridTemplateColumn>
        <ItemTemplate>
                <asp:LinkButton ID="lnkEdit" runat="server" Text="Edit" OnClientClick='<%# String.Format("addAdminWin({0}); return false;", Eval("intAdminId"))%>'></asp:LinkButton>
           </ItemTemplate>
</telerik:GridTemplateColumn>


here is the fucntion with and without the variable.
<script type="text/javascript">
 
       function addAdminWin(adminid) {
           var addAdmin = $find("<%= AddAdmin.ClientID %>");
           var HFId = $find("<%= HFId.ClientID %>");
           HFId.val = adminid
           addAdmin.show();
       }
   </script>


This works along with one that passes no variable.
<script type="text/javascript">
 
       function addAdminWin() {
           var addAdmin = $find("<%= AddAdmin.ClientID %>");
           addAdmin.show();
       }
   </script>




Shinu
Top achievements
Rank 2
 answered on 17 Apr 2013
1 answer
768 views
Edit: I found that I was calling databind from the method I called from the NeedDataSource handler in some cases, including this one.  I would delete the post if I could.


Greetings, I'm having an issue where I get the error:

You should not call DataBind in NeedDataSource event handler. DataBind would take place automatically right after NeedDataSource handler finishes execution.

And I get this error when I expand a details view on a row in my Grid.  This is the Detail Table Data Bind handler:


protected void grdSearchResults_DetailTableDataBind(object sender, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
        {
            GridDataItem dataItem = e.DetailTableView.ParentItem;
 
            int itemID = int.Parse(dataItem.GetDataKeyValue("Item_ID").ToString());
            IMyService dbItems = ServiceFactory.Create<MyService>();
            e.DetailTableView.DataSource = dbItems.GetItemsByID(itemID);
 
            uppnlSearchCriteria.Update();
        }

Note that the update panel is not where the grid is, but it is where the error
 label is, which is showing me that aforementioned error.

Based on the documentation and examples I've been looking at today, I'm doing 
things right by setting the datasource and NOT actually binding, but the Grid 
seems to think I'm calling databind.

Is there something I'm missing here or somewhere in the code I should look 
to see how this is happening?

Thanks,

Alex
Shinu
Top achievements
Rank 2
 answered on 17 Apr 2013
1 answer
189 views
I have followed :

partially. And it seemed to be working as expected but on thing, I just wanted one row to be selected at a time.

aspx

GridView

<telerik:RadGrid ID="gv" runat="server" AllowSorting="true" AllowFilteringByColumn="true"
       OnItemCommand="ItemCommand" OnItemDataBound="ItemDataBound"
       AllowAutomaticUpdates="true" AllowMultiRowSelection="false" OnInsertCommand="InsertCommand"
       AllowAutomaticInserts="true" OnUpdateCommand="ItemUpdated" ActiveItemStyle-CssClass="gv_ActiveItem"
       OnNeedDataSource="NeedDataSource">


CheckBox Item Template

<telerik:GridTemplateColumn UniqueName="_SelectCommandColumn" AllowFiltering="false"
                    HeaderText="Select" HeaderAbbr="Check">
                    <ItemTemplate>
                        <asp:CheckBox ID="cbSelectCategory" runat="server" OnCheckedChanged="cbSelectCategory_CheckedChanged"
                            AutoPostBack="true" />
                    </ItemTemplate>
                </telerik:GridTemplateColumn>

.cs

protected void cbSelectCategory_CheckedChanged(object sender, EventArgs e)
        {
            ((sender as CheckBox).NamingContainer as GridItem).Selected = (sender as CheckBox).Checked;
            //getting the id of the selected check-box
        }

the code works well and the style also gets applied to the row containing the checkbox selected. but the only problem is, the checkbox of the row previously selected, remains checked, I need to uncheck it anyway

Princy
Top achievements
Rank 2
 answered on 17 Apr 2013
9 answers
324 views
Hi, my RadAutoCompleteBox is like this:

<telerik:RadAutoCompleteBox ID="RadAutoCompleteBox1" runat="server" Skin="WebBlue" DropDownWidth="150" CssClass="SalesOrderSearch" DataTextField="strSalesOrderNumber" TextSettings-SelectionMode="Single" Filter="Contains" InputType="Text">
 <DropDownItemTemplate>
.
.
.
</DropDownItemTemplate>
</telerik:RadAutoCompleteBox>

I need to detect the event of when user select an item (click from the dropdownlist or "Enter" key press after typing valid entry). However, it doesnt seem easy when InputType is not "Token". The closest I got was to use the OnClientDropDownClosed event (and then validate the text entered) but that's pretty annoying and not really a "user selection". Any clue?

TIA

Martin
Brandon
Top achievements
Rank 1
 answered on 16 Apr 2013
1 answer
136 views



Objective :
Have all RadGrids in a project default to UseStaticHeaders='True' while allowing certain RadGrids to individually override that ClientSettings Scrolling property to false ( UseStaticHeaders='False')


What's Actually Happening (the problem) :
Setting UseStaticHeaders='False' at the RadGrid level is not overriding the default 'True' setting.  When we set up an individual RadGrid with UseStaticHeaders='False' the setting doesn't stick & the page containing the control still renders with UseStaticHeaders='True'



The Setup:
The Default.skin file looks like this : 
<telerik:RadGrid runat="server" >
    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Bottom"></HeaderStyle>
    <ItemStyle HorizontalAlign="Left" VerticalAlign="Top"></ItemStyle>
    <AlternatingItemStyle HorizontalAlign="Left" VerticalAlign="Top"></AlternatingItemStyle>
    <ClientSettings EnableRowHoverStyle="True">
        <Scrolling AllowScroll="True" SaveScrollPosition="true" UseStaticHeaders="true" />
        <Selecting AllowRowSelect="true" />
    </ClientSettings>
</telerik:RadGrid>




The individual RadGrid configuration looks like this : 
<ClientSettings AllowKeyboardNavigation="True" EnablePostBackOnRowClick="True" ActiveRowIndex="0">
        <Scrolling ScrollHeight="500px" AllowScroll="True" SaveScrollPosition="True" UseStaticHeaders="False" />
        <KeyboardNavigationSettings EnableKeyboardShortcuts="True" AllowSubmitOnEnter="True"
            AllowActiveRowCycle="True" CollapseDetailTableKey="LeftArrow" ExpandDetailTableKey="RightArrow" />
</ClientSettings>




Are we misunderstanding how this should work? Is UseStaticHeaders configurable on a grid-by-grid basis? If so, how?
GreenLizzard
Top achievements
Rank 1
 answered on 16 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?