Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
182 views
I have a grid and I'm using the grid's FormTemplate to edit and insert records into the SQL database.
<EditFormSettings EditFormType="Template">
     <FormTemplate>
          .....
     </FormTemplate>
</EditFormSettings>

In this project that I'm working on I want to be able to select a record, take that data and populate the form WITHOUT adding the record first. Here is the button in the grid:
<telerik:GridButtonColumn 
     ButtonType="ImageButton" 
     CommandName="CopyPaste" 
     ConfirmDialogType="RadWindow" 
     ConfirmText="Copy information?" 
     ConfirmTitle="Copy" 
     ImageUrl="/Images/SmallRecycle.png"
     Text="Copy" 
     UniqueName="CopyColumn"/>

I can easily duplicate the record in the database, but the idea is that someone enters information and the next bit of information is the same with the exception of the person tied to the record. I don't want them to have to retype the information and I don't want to write a new record and have them edit it.

Does this make sense? I'm really stuck on expanding the grid's form and filling the fields.
Princy
Top achievements
Rank 2
 answered on 21 Apr 2011
2 answers
122 views
I am Binding Rad Grid.
And i am using Radcontext Menu.
Now i Want to retrive the ID of Selected Row.

How to do it. ?
Dhruval Dave
Top achievements
Rank 1
 answered on 21 Apr 2011
1 answer
98 views
I searched the forum but couldn't find an answer. There is answer to get the COUNT of the filtered row but not the data. Could anyone help? I need to do some processing at the server on the filtered rows. Thanks a lot!
Princy
Top achievements
Rank 2
 answered on 21 Apr 2011
1 answer
53 views
Does there exist a source solution that shows by example the use of the RADGrid (AJAX) using a web service (preferably with the passing a parameter)?
Shinu
Top achievements
Rank 2
 answered on 21 Apr 2011
1 answer
415 views
I would like to know how I can check (via JavaScript) if a given combobox is enabled or not.  I see how to enable or disable it, but not how to check the status.
Shinu
Top achievements
Rank 2
 answered on 21 Apr 2011
1 answer
368 views
Hi,

I call a RadConfirm box from a JavaScript function like:

$get("<%=btnNoVr.ClientID%>").onclick = function()
                {
                    CallRadConfirm(stat, id,  'Can you Confirm?');
                };


function CallRadConfirm(status, ID, message)
    {  
        radconfirm(rmessage, confirmCallBackFn, 350, 10, '', 'Confirm');
        
        function confirmCallBackFn(arg)
        {
            if(arg == true)
            {
                $get("<%=hfIsNoVR.ClientID%>").value = "Y";
                if (status == "true")
                {
                    return true;
                }
                else
                {
                    window.location.href = '/_layouts/test/test.aspx?ID=' + ID + '&PageFrom=Select&Action=NO';
                    window.event.returnValue=false;
                }
            }
        }      
    }

here i get the Confirmation box but postback happens immediatelly before i chose ok or cancel.
How do i stop that?

Thanks,
Varun R
Shinu
Top achievements
Rank 2
 answered on 21 Apr 2011
2 answers
148 views
I am building a treeview control which has X number of root nodes (from a database), each of which contain two static nodes which themselves contain Y number of dynamic nodes. Something like this:

  • Root Node #1 (database-driven)
    • Child Node #1 (static)
      • Sub Node #1 (database)
      • Sub Node #2
    • Child Node #2 (static)
      • Sub Node #3 (database)
  • Root Node #2
    • Child Node #3 (static)
      • Sub Node #4 (database)

I have implemented loading on demand for items at the "Child Node" level so it would automatically pull the sub-items when that node is expanded (using ServerSideCallBack) which works great. I have also implemented a context menu for each "Child Node" entry that has an "Add Category" option which adds a new item (at the Sub Node level) so a new entry can be added. This entire process works great and is surprisingly versatile.

The only issue I have is when the new item is added I want all the "Sub Node" entries for the parent "Child Node" item to be re-bound so the items appear in alphabetical order. I tried using the set_expanded() methods but it seems once a node has been expanded the items are cached and there isn't a way to forcefully tell it to go get the items again. Basically I'm looking for a client-side method call that tells the "Child Node" entry that it needs to go get a fresh copy of items once the adding process is complete.

Any idea on how to make this happen?

digitall
Top achievements
Rank 1
 answered on 21 Apr 2011
8 answers
323 views
I am using a Rad AsyncUpload control and our customers do not like the Remove link that shows up in the list of upload files.  They want buttons instead.  Does anyone know how to transform these links to buttons that say remove.

Thanks,

GR Graham
james knight
Top achievements
Rank 1
 answered on 21 Apr 2011
2 answers
178 views
Hi,
I am using RadUpload control,I want to remove check box which appear in RadUpload control?
Can I do like that?


Thanks in Advance
james knight
Top achievements
Rank 1
 answered on 21 Apr 2011
5 answers
112 views
Hi all.

I have come across some very weird behaviour with the Rad Grid and a context menu.
It seems that the OnRowContextMenu event has some problems getting the correct row that was clicked ... the value retrieved from eventArgs.get_itemIndexHierarchical() method returns a different index depending on where in the row the mouse is clicked. If I click in the centre of the row, most of the time it is fine. But if I click near the top or bottom of the row, I get a different index returned (even though it is still the same row). This is slightly less of an issue in IE than in Firefox + Chrome.

Has anyone else encountered this? Is it a known issue? It is making the context menu very unreliable and impossible to use.

OnRowContextMenu handler:

function rowContextMenu(sender, eventArgs) {
    var menu = $find("<%= menuDrivers.ClientID %>");
    var evt = eventArgs.get_domEvent();
 
    if (evt.target.tagName == "INPUT" || evt.target.tagName == "A")
        return;
 
    // Get trip ID + type from source row
    var index = eventArgs.get_itemIndexHierarchical();
    var row = sender.Control.children[1].children[0].rows[parseInt(index)];
    var rowElements = row.getElementsByTagName("input");
 
    alert(sender);
    alert('Row index ' + index + ' clicked. Trip ID is ' + rowElements[0].value);
 
    // Store the trip ID and type in hidden fields
    $get("ContextTripID").value = rowElements[0].value;
    $get("ContextTripType").value = rowElements[1].value;
 
    // more code continues here ...
 
}
Ryan
Top achievements
Rank 1
 answered on 21 Apr 2011
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?