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

When I check the root "All" nodes, all the children get checked as expected.

1. However, when I un-check one of the children,  I would expect  the root "All" node to be unchecked but it stays checked.
2. Also, on a cleared treeview, when I go through and check all the chidren, I would like the "All" to be automatically checked.

Are there options to do this or does all of this take custom script?

David
Top achievements
Rank 1
 answered on 19 Mar 2013
2 answers
113 views
I am doing something like the below. When I try to do a delete, however, I'm getting a NullReferenceException. Apparently, the FindControl doesn't find the control on delete, so when it tries to access the .Text, it causes the exception. Shouldn't it find the control?

Private Sub RadGrid1_ItemCommand(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
        Select Case e.CommandName
            Case RadGrid.PerformInsertCommandName
                Dim editableItem As GridEditableItem = CType(e.Item, GridEditableItem)
                Dim val = DirectCast(editableItem.FindControl("tbVal"), TextBox).Text
                PerformInsert(val)
 
            Case RadGrid.UpdateCommandName
                Dim editableItem As GridEditableItem = CType(e.Item, GridEditableItem)
                Dim val = DirectCast(editableItem.FindControl("tbVal"), TextBox).Text
                PerformUpdate(val)
 
            Case RadGrid.DeleteCommandName
                Dim editableItem As GridEditableItem = CType(e.Item, GridEditableItem)
                Dim val = DirectCast(editableItem.FindControl("tbVal"), TextBox).Text
                PerformDelete(val)
 
        End Select
End Sub
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
 answered on 19 Mar 2013
2 answers
97 views
I'm using the ItemsRequested event to databind my RadComboBox by searching the database for the Text typed in the textbox portion on the ComboBox. The only problem is, when the user initially clicks into the textbox the ItemsRequested event immediately fires so it pulls in all possible data. Is there a way to not fire this event when the user clicks into the textbox -but- still fire the event if the user clicks the down arrow on the ComboBox itself?
Hristo Valyavicharski
Telerik team
 answered on 19 Mar 2013
4 answers
228 views
I've the following nested Grid structure.

<telerik:RadGrid ....>
   <MasterTableView...>
         <DetailTables>
            <GridTableView  Name="Users".....>
                  <Columns>
                          <telerik:GridBoundColumn UniqueName="Status" DataField="Status" HeaderText="Status"  AllowFiltering="false" />
                  </Columns>
                 <NestedViewTemplate>
                              ...................
                 </NestedViewTemplate>     
              </GridTableView>
           </DetailTables>
      <Columns>
           ............
      </Columns>
   </MasterTableView>
 </telerik:RadGrid>

I want to hide the NestedViewTemplate if "Status" has some specific value.

I'm binding the DetailTable as follows and probably can access the current item's Status value in the same event but not sure how to do that.

 protected void RadGridTest_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e)
        {
            GridDataItem dataItem = (GridDataItem)e.DetailTableView.ParentItem;
            switch (e.DetailTableView.Name)
            {
                case "Users":
                    {
                        int testID = Convert.ToInt32(dataItem.GetDataKeyValue("ID"));
                        e.DetailTableView.DataSource = UserInTest.GetUsersInTest(testID,"Untaken");
                        break;
                    }


            }
        }

So, how can I access the current item's Column values of DetailTable and the NestedViewTemplate to hide it if the column (Status) has a certain value.

Andrey
Telerik team
 answered on 19 Mar 2013
1 answer
95 views
There doesnt seem to be a way to get around the FileSharing error when a user attempts to upload a file that happens to be open on their own desktop locally (like an Excel file).

Why hasn't Telerik fixed it yet? If so what is the workaround 'cause it ain't built into the control and all the relevant topics deadend with no resolution.
Plamen
Telerik team
 answered on 19 Mar 2013
1 answer
137 views
Hi, I am using the RadAsyncUpload without enabling plugins, so I am using straight-up javascript on my page. In other words I have the property DisablePlugins="True".

My problem is that I can not distinguish the reason for error when the user atempts to upload a file that happens to be open at the time of the upload attempt, essentially this is a file-sharing error.

I know that you can distinguish the difference from the wrong extension and the max size errors by this post:

http://www.telerik.com/help/aspnet-ajax/asyncupload-onclientvalidationfailed.html

I cannot, however, find javascript code that will distinguish these two possible errors:

1) wrong extension
2) max file size

...as well as

3) file-sharing (while the file is open and upload attempted on it)

All three at once.

???

There seem to be solutions if you are using Silverlight, but if you are not, you do not have access to same objects and properties that you would if I was assuming the use of Silverlight.
Plamen
Telerik team
 answered on 19 Mar 2013
2 answers
78 views
Hello!This is a rather large post and if a support ticket is needed that one can be created. The problem is that we are using a RadGrid with check box filtering and when the first item check box is selected then deselected the filter dropdown closes but the first item check box is still selected. By first item I do not mean the “Check All” check box but the very next check box after that one. What does work is after selecting the first check then selecting and deselecting any other check box will clear the filter. Also, the problem does not happen with any other item check box except the first one located in the selection dropdown below “Check All”. This means that, on start, if you select the second item checkbox, or any other but the first, then deselect it the filter clears. Below is a copy of the code below:Thanks,Steve Holdorf

 

ASPX PAGE MARKUP

RadGrid Layout:

Kostadin
Telerik team
 answered on 19 Mar 2013
1 answer
139 views
Hi 

I need to implement the find functionality in radgrid . 
Ex : I have a find button & clicking upon i get a find window as follows . Whatever i type in pop up find windows those items rows should be highlighted in radgrid . 

MasterChiefMasterChef
Top achievements
Rank 2
 answered on 19 Mar 2013
2 answers
88 views
Hi,

I am using a Rad scheduler and I'm binding a generic list to the Rad Scheduler. Everything works fine. But I want to set the visibility property of each appointment from the visibility property of the corresponding item in the list. How can I achieve this?

Regards,
Navaneeth
Navaneeth Kumar
Top achievements
Rank 1
 answered on 19 Mar 2013
5 answers
179 views
I am trying to use the AutoCompleteBox control.

I only want to let the user select one instance of each token. My list of tokens contains "Test 1, "Test 2" and "Test 3".

I am using a function on the OnClientEntryAdding that checks whether the entry has already been added.
<script type="text/javascript">
    function entryAdding(sender, eventArgs) {
        var txt = sender.get_text();
        var entries = sender.get_entries(),
        count = entries.get_count();
        for (var i = 0; i < count; i++) {
            if (entries.getEntry(i).get_value() == eventArgs.get_entry().get_value()) {
                eventArgs.set_cancel(true);
            }
        }
    }
</script>

If I type in "Test" and select "Test 1", it's added to the list of tokens. If I type in "tes" and then select "Test 1" then the token is not added which is what I want. But if I then type in "tes" and select "Test 1" then the event is cancelled but the text in the control is "Test 1 ;tes". It seems that the text is still changed even if the entry has been cancelled. How can I prevent it from adding an invalid token?

If I save the entries, then it's ok because the collection of entries doesn't contain the invalid entry but I don't want to display that invalid entry.

Below is the setting of my control

<telerik:RadAutoCompleteBox runat="server" ID="ACBVoie" DataTextField="Desc_No_Voie" DataValueField="No_Voie" InputType="Token" width="100%" OnClientEntryAdding="entryAdding" AllowCustomToken="false">
</telerik:RadAutoCompleteBox >

Thanks




Srimanta
Top achievements
Rank 1
 answered on 19 Mar 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?