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

[Solved] value cannot be null error

1 Answer 120 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
georges
Top achievements
Rank 1
georges asked on 23 Mar 2011, 01:32 PM

"value" cannot be null or empty.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: "value" cannot be null or empty.

Source Error: 

Line 98:                .Items(panelbar =>
Line 99:                {
Line 100: panelbar.Add()Line 101:                   .Text("General")
Line 102:                  .LoadContentFrom("GeneralTabAction", "Project")

Source File: c:\BACKUP\GDOT.TPRO.MVCWebApp\GDOT.TPRO.RazorUI\Areas\ProjectsManagement\Views\Shared\EditProjectControl.cshtml    Line: 100 

Stack Trace: 

[ArgumentException: "value" cannot be null or empty.]
   Telerik.Web.Mvc.Infrastructure.Guard.IsNotNullOrEmpty(String parameter, String parameterName) +210

i am trying to load a partial view as you see above and i am getting an errror


here is the file

 @(
   Html.Telerik().PanelBar()
               .Name("PanelBar")
               .HtmlAttributes(new { style = "width:920px;text-align:left;" })
               .Items(panelbar =>
               {
                   panelbar.Add()
                   .Text("General")
                   .LoadContentFrom("GeneralTabAction", "Project")
                  .Expanded(false);

 

                              

               }))
       )

here is my project controller

 

  [ActionName("GeneralTabAction")]
        public ActionResult GeneralTabAction()
        {
            return PartialView("GeneralTab");
        }

the generalTab file is under shared directory. thanks for the help

1 Answer, 1 is accepted

Sort by
0
georges
Top achievements
Rank 1
answered on 23 Mar 2011, 04:26 PM
got it fixed by adding a maproute in my global but i am having an issue with the CSS.

if i have
<div class=blah></div> it is not pulling the class, if i remove it , it will show withing the accordian and i am including the css in my master pages.
Tags
PanelBar
Asked by
georges
Top achievements
Rank 1
Answers by
georges
Top achievements
Rank 1
Share this question
or