Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
I have a RadTabStrip + RadMultiPageView + RadPageView on mainpage.aspx

My RadPageView is utilizing ContentURL="somepage.aspx"


On mainpage.aspx I have a refresh imagebutton that has an onclientclick="refresh(); return false;"

inside of the
function refresh()
{
    blah;
}

I am wanting to make a call to a JS function on RadPageView somepage.aspx

How can I do this? I am not seeing any examples where you are going from the parent to the child, its all showing the child to the parent.

Thanks
Princy
Top achievements
Rank 2
 answered on 31 Jan 2013
4 answers
101 views
Hi,

I have a grid in my page. it has one inner grid. When my page loads i am binding my grid. I want to find one row which satisfies my condition and it has to be expanded in pageload only. How can we achieve this.


Please help!!!!!!

Thanks
Raju
Shinu
Top achievements
Rank 2
 answered on 31 Jan 2013
0 answers
204 views
Hi, 

i have the exception:
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

Everything is working correctly when i don't use the event OnTabClick.
But I need it and when i try to attach a function to this event (either from the markup or the code behind) i get the exception above.
the hierarchy of the markup is as follow : 
asp:panel
  RadAjaxPanel
    RadTabStrip
RadMultiPage
 div
  table
    tr
  td
             RadAjaxPanel
               RadTabStrip
          RadMultiPage

The markup is :
<telerik:RadTabStrip runat="server" ID="TabStrip" MultiPageID="MultiPage" OnTabClick="TabStrip_TabClick"
    SelectedIndex="0" Font-Size="Smaller" Orientation="VerticalLeft">
    <Tabs>
        <telerik:RadTab Text="Note de calcul"     PageViewID="rpv_noteCalcul"    Value="noteCalcul" Selected="True" />
        <telerik:RadTab Text="Crédits" PageViewID="rpv_Credits"    Value="Credits" />
        <telerik:RadTab Text="Paiements"      PageViewID="rpv_Paiements"  Value="Paiements" />
        <telerik:RadTab Text="Distribution"   PageViewID="rpv_Distribution" Value="Distribution" />
    </Tabs>
</telerik:RadTabStrip>

when i tried to attach the event from the code behind i did :  (when i did i remove the argument OnTabClick from the markup)
protected void Page_Init(Object sender, EventArgs e)
{
    TabStrip.TabClick += new RadTabStripEventHandler(TabStrip_TabClick);
}

the function that i need to call:
protected void TabStrip_TabClick(object sender, RadTabStripEventArgs e)
{
 
}

Hope you can help me 

Thank you 

mathieu
Top achievements
Rank 1
 asked on 31 Jan 2013
1 answer
201 views
I have a radchart:
<telerik:RadChart ID="rcProposedWaiting" runat="server" Width="750px" DataGroupColumn="Name" 
AutoTextWrap="true" Skin="Hay" ChartTitle-TextBlock-Text="Projects By Department" SeriesOrientation="Horizontal" AutoLayout="true">
<Legend><Appearance GroupNameFormat="#VALUE"></Appearance></Legend>
<PlotArea><XAxis DataLabelsColumn="Department"></XAxis></PlotArea>
</telerik:RadChart>

I am populating with a DataView:
public DataView GetProposedWaitingChart()
{
List<int> lst = new List<int>();
lst.Add( (int)ApprovalStatus.Proposed );
lst.Add( (int)ApprovalStatus.WaitingforApproval );

string listStatus =  Util.CompressList( lst, "," );

List<ITProject> projects = _dal.GetProjectByApprovalSatus( listStatus );

DataTable dt = new DataTable();
dt.Columns.Add( "Name" );
dt.Columns.Add( "Department" );
DataColumn dc = new DataColumn( "Value", Type.GetType( "System.Int32" ) );
dt.Columns.Add( dc );

var groupedStatus = from f in projects
group f by new {
f.Department,
f.ApprovalStatus
} into myGroup
orderby myGroup.Key.ApprovalStatus, myGroup.Key.Department
select new { myGroup.Key.Department, myGroup.Key.ApprovalStatus, Count = myGroup.Count() };

foreach (var obj in groupedStatus) {
string department = obj.Department;
string status = obj.ApprovalStatus;
int count = obj.Count;
dt.Rows.Add( status, department, count );
}

DataView dv = dt.DefaultView;
dv.Sort = "Name, Department";

return dv;
}
----------------------------------------------------------------------
I have verified that my datatable looks correct after the foreach loop...
? dt.Rows[0].ItemArray
{object[3]}
    [0]: "Proposed"
    [1]: "IT"
    [2]: 2
? dt.Rows[1].ItemArray
{object[3]}
    [0]: "Waiting for Approval"
    [1]: "Advisory Services"
    [2]: 1
----------------------------------------------------------------------
 but I am getting the attached output (projbad.jpg)... 


---------------------------------------------------------------------------------
If I just add dummy rows to my datatable rather than the database data, it works just fine (projgood.jpg)

dt.Rows.Add( "Proposed", "IT", 4 );
dt.Rows.Add( "Waiting", "FA", 4 );
dt.Rows.Add( "Proposed", "TA", 1 );
dt.Rows.Add( "Proposed", "FA", 2 );
dt.Rows.Add( "Waiting", "IT", 3 );
dt.Rows.Add( "Waiting", "TA", 2 );

DataView dv = dt.DefaultView;
dv.Sort = "Name, Department";
---------------------------------------------------------------------------------


Any ideas?  Thanks
kim
Top achievements
Rank 1
 answered on 30 Jan 2013
1 answer
38 views
Hi Telerik folks,

How to select an item from RadTreeList (nested treelist) based on the search term entered in the separate html text box. Also need to scroll and show selected item.

Thanks in Advance
Baskar
baskar
Top achievements
Rank 1
 answered on 30 Jan 2013
3 answers
132 views
I've been developing a web app that uses RadGrid FormTemplate popups for editing.  I have a grid with header and detail forms.  On each of those is a validation summary, perhaps the first control I put on it. 

I recently noticed that when the summary fired, it displayed with the bullets on the left hanging outside the template itself.  I just don't remember a ValidationSummary ever doing this before, anywhere.  I can't recall doing anything to the grid or the controls that would affect alignment in such a manner.  

The fix was to put it inside a div.   <div  style="width:90%;margin-left:auto;margin-right:auto"></div>

This works fine but I'd like to know where the problem came from in the first place.

Angel Petrov
Telerik team
 answered on 30 Jan 2013
2 answers
243 views
Hi all,

I have a problem with IIS7 and the web.config of an "Admin" subdirectory, since it does not appear radupload and I can not write in radeditor. The rest of my app it's works fine...

This is my web.config in the root of my application:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <appSettings>
    <add key="rutaImagenes" value="\Admin\Images\" />
  </appSettings>
  <connectionStrings>
    <add name="MyAppConnectionString" connectionString="My connectionstring thats works fine..." />
  </connectionStrings>
  <system.web>
     
    <compilation debug="true" strict="false" explicit="true">
      <assemblies>
        <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
        <add assembly="System.Web.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
        <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      </assemblies>
    </compilation>
     
    <roleManager enabled="true">
      <providers>
        <clear />
        <add name="AspNetSqlRoleProvider" connectionStringName="MyAppConnectionString" applicationName="/" type="System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      </providers>
    </roleManager>
    <membership>
      <providers>
        <remove name="AspNetSqlMembershipProvider" />
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider,       System.Web, Version=2.0.0.0, Culture=neutral,       PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="MyAppConnectionString" applicationName="/" requiresUniqueEmail="false" minRequiredPasswordLength="4" minRequiredNonalphanumericCharacters="0" passwordFormat="Hashed" maxInvalidPasswordAttempts="5" passwordAttemptWindow="10" passwordStrengthRegularExpression="" requiresQuestionAndAnswer="false" />
      </providers>
    </membership>
    <profile enabled="false" />
    <authentication mode="Forms">
      <forms name="MyApp.ASPXAUTH" loginUrl="Admin/Login.aspx" protection="All" path="/" />
    </authentication>
     
    <customErrors mode="Off" defaultRedirect="GenericErrorPage.htm">
      <error statusCode="403" redirect="NoAccess.htm" />
      <error statusCode="404" redirect="FileNotFound.htm" />
    </customErrors>
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID">
      <namespaces>
        <clear />
        <add namespace="System" />
        <add namespace="System.Collections" />
        <add namespace="System.Collections.Generic" />
        <add namespace="System.Collections.Specialized" />
        <add namespace="System.Configuration" />
        <add namespace="System.Text" />
        <add namespace="System.Text.RegularExpressions" />
        <add namespace="System.Linq" />
        <add namespace="System.Xml.Linq" />
        <add namespace="System.Web" />
        <add namespace="System.Web.Caching" />
        <add namespace="System.Web.SessionState" />
        <add namespace="System.Web.Security" />
        <add namespace="System.Web.Profile" />
        <add namespace="System.Web.UI" />
        <add namespace="System.Web.UI.WebControls" />
        <add namespace="System.Web.UI.WebControls.WebParts" />
        <add namespace="System.Web.UI.HtmlControls" />
      </namespaces>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI" />
      </controls>
    </pages>
     
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
      <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" validate="false" />
      <add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" validate="false" />
      <add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" validate="false" />
    </httpHandlers>
    <httpModules>
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
    </httpModules>
    <identity impersonate="false" />
  </system.web>
  <location path="Admin">
    <system.web>
      <authorization>
        <allow roles="Administrators" />
        <deny users="*" />
      </authorization>
      <!--<trust level="Full" />-->
    </system.web>
  </location>
  <location path="Admin/services">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
  </location>
   
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="RadUploadModule" />
      <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule,                    System.Web.Routing, Version=3.5.0.0,                    Culture=neutral,                    PublicKeyToken=31BF3856AD364E35" />
      <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode,runtimeVersionv2.0" />
    </modules>
  </system.webServer>
  <system.serviceModel>
    <behaviors>
      <serviceBehaviors>
        <behavior name="MyApp.MyAppDataServiceBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <services>
      <service behaviorConfiguration="MyApp.MyAppDataServiceBehavior" name="MyApp.MyAppDataService">
        <endpoint address="" binding="basicHttpBinding" contract="MyApp.IMyAppDataService">
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
    </services>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
  </system.serviceModel>
</configuration>

And this is the web.config in "Admin" subdirectory:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <defaultDocument>
      <files>
        <add value="AdminDef.aspx" />
      </files>
    </defaultDocument>
    <handlers>
      <add name="Telerik.Web.UI.WebResource.axd*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource" />
      <add name="Telerik_Web_UI_SpellCheckHandler_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" />
      <add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler" />
    </handlers>
  </system.webServer>
</configuration>

Anyone can help me?

Thank you!
Isteci
Top achievements
Rank 1
 answered on 30 Jan 2013
4 answers
97 views
I realize it's more of a general asp.net challenge, however...

In a GridTemplateColumn I have a placeholder to which I add one or several imagebuttons. So far so good. My trouble is how to add click handlers to each of these dynamically created imagebuttons? Preferably, I'd would like to handle the click event as I do with imagebuttons added declaratively (in the grid ItemCommand handler)

Any Ideas?
Alain
Top achievements
Rank 1
 answered on 30 Jan 2013
1 answer
59 views
Hey,

I'm currently using RadGrid and I am very happy about it.
There's one thing I can't achieve, though.

I have a two-level hierarchy, with - say - Categories and SubCategories.
I have a GridButtonColumn which serves as a Delete button on the Categories level.

This button must be hidden if a Category has at least one SubCategory. On the initial load of the page, I successfully hide the Delete button, hooking in the ItemDataBound event.
Now let's say I remove all the SubCategories of a Category, the Delete button won't appear. I have to refresh (i.e. Rebind) the grid to make it appear again.

Do you know a way of doing it?
Thanks in advance,
Mickaël
Mickaël
Top achievements
Rank 1
 answered on 30 Jan 2013
3 answers
162 views



I'm testing RADRadialGauge for ASP NET AJAX. It shows up corrcetly on I.E 8 and I.E. 9 but not on I.E. 7. Please check the attached files.
Any sugesstions on how to get it fixed on I.E 7.

Thanks,
Ambreen
Danail Vasilev
Telerik team
 answered on 30 Jan 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Cynthia
Top achievements
Rank 1
Iron
Toby
Top achievements
Rank 3
Iron
Iron
Iron
Danielle
Top achievements
Rank 1
Iron
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Iron
yw
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?