This is a migrated thread and some comments may be shown as answers.

[Solved] splitter - partial views - routing

0 Answers 31 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
orim
Top achievements
Rank 1
orim asked on 26 Jul 2012, 01:36 PM
hi,
i have a splitter in mvc masterpage
left top -> treeview
left bottom -> grid
right -> contentplaceholder

i am calling a windows on selected row grid like this
<script type="text/javascript">
 
    function OnRowSelect(e) {
    
        //Get RequestGuid on selected row
         var row = e.row
         var grid = $(this).data('tGrid');
         var dataItem = grid.dataItem(row);
 
        //Open Telerik window
         var window = $('#Window').data('tWindow');
         window.title('Request: ' + dataItem.RequestGuid);
         window.ajaxRequest("Request/Details/", { id: dataItem.RequestGuid });
         window.center().open();
             
    }
</script>

the problem is when i reqeust
http://localhost:64468/User/Create
and then i will select a gridrow i get error 404
the Requests routes to
/User/Reqeust/Details it shoud ruoute to Request/Details
I think the problem is here
 window.ajaxRequest("Request/Details/", { id: dataItem.RequestGuid });

Can someone help

Tags
Splitter
Asked by
orim
Top achievements
Rank 1
Share this question
or