Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views
How can I make RadTextBox enter only numbers?
Shinu
Top achievements
Rank 2
 answered on 24 Oct 2011
1 answer
63 views
Hello,

I am using radupload.How can I check file size?
Shinu
Top achievements
Rank 2
 answered on 24 Oct 2011
1 answer
128 views
Hi there,

I am following the code from the link below. It is great. However, there are two questions that I would like to ask.
http://www.telerik.com/community/code-library/preview-thread/aspnet-ajax/grid/storing-multiple-grid-settings-in-database-via-profile.aspx

1. When I turn on AllowFilterByColumn, it works fine when I re-login. However, it does not display the value in the filter TextBox or CheckBox. For example, I put "Net 60 Days" in the filter TextBox and select "Contains". After I re-login, I see the same result, but I don't see the text "Net 60 Days" inside the filter TextBox.

2. The column reorder and sorting seem to work fine, but not for paging. How do I accomplish that?

Thank you,

Sompop

This is a profile section in my web.config.
    <profile enabled="true" defaultProvider="MyProfileProvider">
      <providers>
        <add name="MyProfileProvider" connectionStringName="myConnectionString" applicationName="/" type="System.Web.Profile.SqlProfileProvider"/>
      </providers>
      <properties>
        <add name="GridAssetSettings" allowAnonymous="false" type="GridAssetSettings" serializeAs="Binary"/>  
</properties>
    </profile>

In .cs of the page where there is a RadGrid

protected override void Render(HtmlTextWriter writer)
{
  base.Render(writer);

  GridAssetSettings gas = new GridAssetSettings();
  gas.SaveGridAssetSettingsNames(RadGridSaveGridSettingsUserBase, "RadGridSaveGridSettingsUserBase");
  Context.Profile.SetPropertyValue("GridAssetSettings", gas);
}

protected void Page_Init(object sender, EventArgs e)
{
  if (Context.Profile.GetPropertyValue("GridAssetSettings") != null)
  {
    GridAssetSettings gas = (GridAssetSettings)Context.Profile.GetPropertyValue("GridAssetSettings");

    if (gas.Names.ContainsKey("RadGridSaveGridSettingsUserBase"))
      {
         GridSettings settings = new GridSettings(RadGridSaveGridSettingsUserBase);
         settings.LoadSettings(gas.Names["RadGridSaveGridSettingsUserBase"].ToString());
      }
    }
  }
}
Pavlina
Telerik team
 answered on 24 Oct 2011
3 answers
91 views
Hi,

I am using radUpload to upload multiple files at a time. I need to check file's size each time user selects a file. For that using "onclientfileselected="selectedFile" in radUpload control.

Below is the code in "selectedFile" javascript function.

  var inputs = sender.getFileInputs();
  size = inputs[i].files[0].fileSize;

But it shows "size" undefined.
Before some days, I was getting correct size, but now it is not working. I've not updated Telerik's version or anything like that. What could cause this kind of issue?

Please reply at the earliest as it is live on the site.
Peter Filipov
Telerik team
 answered on 23 Oct 2011
0 answers
51 views
Please ignore/delete this thread.  I tried a different approach.  Unfortunately, that didn't work out for me.  it's here if anybody wants to follow up.
golddog
Top achievements
Rank 1
 asked on 23 Oct 2011
5 answers
121 views
Hi ,
     I am trying to bind the data to  telerick tree view dataSoure .But the data not getting into binded to the tree  view.Telerick tree view is not rendering to the page with data in ItemCommand event.


Please find the code below which I am using to bind the data tree view in ItemCommand event

 

protected void radGridHierarchies_ItemCommand(object source, GridCommandEventArgs e)

 

{

 

if (e.CommandName == "RowClick" && radGridHierarchies.SelectedItems.Count == 1)

 

{

 

int datascopeId = Convert.ToInt32(radGridHierarchies.SelectedValues["DatasourceId"]);

 

 

int dimensionId = Convert.ToInt32(radGridHierarchies.SelectedValues["DimensionId"]);

 

 

string hierName = radGridHierarchies.SelectedValues["HierarchyName"].ToString();

 

datascopeId = 11;

 

List<CharHierLevel> lstHierLevel = _presenter.GetCharHierLevelDetails(datascopeId, dimensionId, hierName);

 

radTreeCharHierLevel.DataTextField =

"HierarchyLevelName";

 

radTreeCharHierLevel.DataValueField =

"HierarchyLevelName";

 

radTreeCharHierLevel.DataFieldID =

"HierarchyLevelName";

 

radTreeCharHierLevel.DataFieldParentID =

"HierarchyLevelParent";

 

radTreeCharHierLevel.DataSource = lstHierLevel;

radTreeCharHierLevel.DataBind();

}

 

}

Note:The issue I could not find in design time .if any one got this king of issue the Immediate help will be highly appreciated

awni
Top achievements
Rank 1
 answered on 22 Oct 2011
1 answer
134 views
HI,

I am trying to bind image to radBinaryImage in serverside. but its not working.
Please refer my code.

string BefFileNAMe, AftFileName;
       if (e.Item.ItemType == RadListViewItemType.DataItem || e.Item.ItemType == RadListViewItemType.AlternatingItem)
       {
           RadBinaryImage imgBeforePhoto = (RadBinaryImage)e.Item.FindControl("imgBeforePhoto");
           imgBeforePhoto.ImageUrl = Server.MapPath("~/Image/5SLanding/Before/") + beforePhoto.FileName;
        }

It is giving following error in Chrome debugger.
Not allowed to load local resource: path/Image/5SLanding/Before/82before-5s.JPG
I cheked the path. The path is correct.
Please help me to solve this. 
Thanks
Andrew Galea
Top achievements
Rank 1
 answered on 22 Oct 2011
4 answers
159 views
Hello everybody

I'm new in Telerik controls and this is my first post here. I'm trying to create a nested Radgrids of two levels where each record of parent will be related to two child records. I'm trying to use RadMultiPage with RadTabStrip to display the two childs as a radgrid.

The skeleton of my code is like this
<form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">
    </telerik:RadScriptManager>
    <asp:SqlDataSource ID="SqlDataSource1" ></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource2" ></asp:SqlDataSource>
    <asp:SqlDataSource ID="SqlDataSource3" ></asp:SqlDataSource>
    <telerik:RadGrid ID="RadGrid1" DataSourceID="SqlDataSource1" >
        <MasterTableView DataSourceID="SqlDataSource1">
            <NestedViewTemplate>
                <telerik:RadTabStrip ID="RadTabStrip1" MultiPageID="RadMultiPage1">
                    <Tabs>
                        <telerik:RadTab PageViewID="PageView1"></telerik:RadTab>
                        <telerik:RadTab PageViewID="PageView2"></telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage ID="RadMultiPage1">
                    <telerik:RadPageView ID="PageView1">
                        <telerik:RadGrid ID="RadGrid2" DataSourceID="SqlDataSource2" >
                            <MasterTableView DataSourceID="SqlDataSource2">
                                <Columns>
                                    <telerik:GridBoundColumn></telerik:GridBoundColumn>
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="PageView2">
                        <telerik:RadGrid ID="RadGrid3" DataSourceID="SqlDataSource3">
                            <MasterTableView DataSourceID="SqlDataSource3">
                                <Columns>
                                        <telerik:GridBoundColumn></telerik:GridBoundColumn>
                                </Columns>
                            </MasterTableView>
                        </telerik:RadGrid>
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
            </NestedViewTemplate>
            <Columns>
                <telerik:GridBoundColumn></telerik:GridBoundColumn>
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>
</form>

I removed unnecessary code.

With this skeleton and when I click on the each records, it show the tabs but it did not list any records. I thought at the beginning that the problem of missing <ParentTableRelation> tag, but how to make the nested radgrid related to its parent. The problem that I could not use <GridTableView> because I could not integrate it with RadMultipage and RadTabStrip controls.

I want something like this example.

Any Idea plz?

Mohammed
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Oct 2011
23 answers
425 views
Greetings,

I've added a ButtonColumn on my RadGrid and i need to open a popup when i click on it.
Afterwards, I need to fill this popup in code Behind...

Can anyone say me how i can get acess to this button ?
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Oct 2011
1 answer
68 views
Hi,
  I am stuck on a problem I need some help with, I have made a sample project to show the problem. This page has two grids, a parent grid showing Product Types and when you edit on any of the records it brings up the edit form with another grid showing the different types of product you wanted to edit. This grid in edit form has "inPlace" editing and I have used Item Template columns since i had to put required validators in for these fields since in my real project these are required fields. I noticed in the grid in the edit form the Filters are not working? I have tried to set the "autoPostbackonFilter" property to true, Can someone help me use these filters on the ItemTemplate columns? I have to use these since in my project in the grid in edit form there will be possibly many many items so the User needs the ability to filter,  Please let me know of how to accomplish this, thanks
Jayesh Goyani
Top achievements
Rank 2
 answered on 22 Oct 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?