Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
Hi,
     I have a simple scenario On my page load event I set MaxFileSize Property like this

1.protected void Page_Load(object sender, EventArgs e)
2.        {     
3.DriveInfo d = new DriveInfo(HttpContext.Current.Request.PhysicalApplicationPath);  // get partition size
4.       RadFileExplorer1.Upload.MaxFileSize = d.AvailableFreeSpace ;
5.         }
 
The Above code gets free Space of my C Drive and assign it to MaxFileSize property.

Now in my application user can upload files in my C Drive, after a user upload a file and when press the Upload button, the above code gives me updated Free space but MaxFileSize property show old value

Kindly Help,
Thanks
Vessy
Telerik team
 answered on 10 Jun 2014
5 answers
97 views
I have an ASP.NET page that loads a table of data and dynamically creates a link button for each row.

When the user clicks the link button I want to display a RadWindow with some relevant information about the selected row.  This RadWindow will not be modal and therefore the user can continue to scroll through the table.

The link button on each row is dynamically created and the click event is added at runtime - I have tried both of the following:

1. Adding an "OnClientClick" and calling a javascript function to display the RadWindow.
2. Adding a new eventhandler to the Click event.

Option 1. above then calls a javascript function as follows:

            var oWnd = $find("<%= oRadWindow.ClientID %>");
            oWnd.setUrl(stURL);  // stURL is passed into the function
            oWnd.show();

The problem with this is that the window displays for about a second and then disappears.  I assume the page is reloading but what could cause this?

I need my RadWindow to stay visible even on postbacks, any ideas?
Paul
Top achievements
Rank 1
 answered on 10 Jun 2014
3 answers
166 views
I want to know is there  a hovering feature for rad chart.

Regards,
                 Suhashini
Danail Vasilev
Telerik team
 answered on 10 Jun 2014
1 answer
129 views
Hello,

I believe I've found a bug on TileList, when I try to drag and drop Square Tiles.

Here is the SItuation:
  • A TileList with Square Tiles, with the same amount of Lines as the max available Lines and only 1 column (which fits 2 square tiles)
  • Whenever I drag, for example, a bottom tile to the top (it's the easiest way to replicate) the page freezes and the Processor goes crazy
Here's the screenshots of "before dragging"
Before: http://i.imgur.com/oSWyi8k.png
After: http://i.imgur.com/h6IjdKe.png

And the code:
aspx:
    <telerik:RadTileList runat="server" ID="tlStartPage" Width="700px" Height="640px" TileRows="4" SelectionMode="Multiple" EnableDragAndDrop="true">
    </telerik:RadTileList>

aspx.cs:
        protected void Page_Load(object sender, EventArgs e)
        {
            PopulateTileList();
        }


        private void PopulateTileList()
        {
            tlStartPage.Groups.Add(new TileGroup());
            tlStartPage.Groups[0].Tiles.Add(new RadTextTile() { Text = "1", BackColor = ColorTranslator.FromHtml("#e83737") });
            tlStartPage.Groups[0].Tiles.Add(new RadTextTile() { Text = "2", BackColor = ColorTranslator.FromHtml("#008de7") });
            tlStartPage.Groups[0].Tiles.Add(new RadTextTile() { Text = "3", BackColor = ColorTranslator.FromHtml("#51ab2e") });
            tlStartPage.Groups[0].Tiles.Add(new RadTextTile() { Text = "4", BackColor = ColorTranslator.FromHtml("#f5c020") });
            tlStartPage.Groups[0].Tiles.Add(new RadTextTile() { Text = "5", BackColor = ColorTranslator.FromHtml("#9b58b5") });
            tlStartPage.Groups[0].Tiles.Add(new RadTextTile() { Text = "6", BackColor = ColorTranslator.FromHtml("#91c930") });
            tlStartPage.Groups[0].Tiles.Add(new RadTextTile() { Text = "7", BackColor = ColorTranslator.FromHtml("#bb2525") });
        }

___________________________________

I was able to reproduce this behaviour on two different machines, using both my own code and code from the Telerik Demos (this one was based on this demo).

Can anyone else confirm this or am I just doing something wrong?
Thank you in advance
Marin Bratanov
Telerik team
 answered on 10 Jun 2014
1 answer
68 views
 I want to populate populate lable in the grid on combobox selectedindex when batchupdating is performed.
Princy
Top achievements
Rank 2
 answered on 10 Jun 2014
3 answers
578 views
I have added a radgrid, textbox and a button as follows:
  this._UpdatePanel.ContentTemplateContainer.Controls.Add(RadGrid1);
  this._UpdatePanel.ContentTemplateContainer.Controls.Add(TextBox1);
  this._UpdatePanel.ContentTemplateContainer.Controls.Add(Buton1);

The radgrid has a checkbox column which I have added through a GridTemplateColumn. On click of the button I want to know the rows that are selected. How can I do this on server side? Also is it possible to find the selected checkboxes client side?

Shinu
Top achievements
Rank 2
 answered on 10 Jun 2014
5 answers
74 views
Hi,

Seems this would be easy, but I am stuck.

I sometimes need to open a 2nd RadWindow on my page.  When I close it, the 1st RadWindow appears to still be "inactive."  Please see the attached screenshots.

I've also tried different variations of this code:

function onRWClose(sender, args) {
 
    var JobRW = $find("<%=JobRW.ClientID %>");
    jobvisible = JobRW.isVisible();
    if(jobvisible == true) {
        JobRW.isActive(true);
    }
     
}

Thanks for any help!

Jim
Marin Bratanov
Telerik team
 answered on 10 Jun 2014
5 answers
1.1K+ views
I am having issues with Paging within a Radgrid.  I have specified a PageStyle Mode="Advanced".   If I change the mode to NextPrevNumericAndAdvanced or any other type with the Go To First, Previous, Next and Go To Last page buttons these will work fine but in Advanced mode the Textbox to change the page and pagesize do not work.  It causes a postback on the page but does not update the grid data or the paging/pagesize textbox(es).  I am using NeedDataSource for my grid binding and when I break the code during this procedure the CurrentPageIndex is always set to 0.  Any help would be great.

Angel Petrov
Telerik team
 answered on 10 Jun 2014
1 answer
179 views
Hi,

I am new to telerik, I want to design page having a grid which should allow user to insert new row & allow batch update to modify exsisting items, grid should also have combo box columns. I want to poplate grid and all combo box kept in Edit item template on code behind.
please let me know how to do this.
Princy
Top achievements
Rank 2
 answered on 10 Jun 2014
1 answer
161 views
I have a RadGrid displaying 12 months of data that I would like to update in batch mode. I don't want to have to update each row individually. When the grid is displayed, the column headings disappear, but the grid populates from an external data source. The data is there, but no column headings. If I change the EditMode from Batch to any other option, the column headings appear. How do I get the column headings to show up whil in Batch mode?


<telerik:RadGrid ID="RadGrid1" runat="server" CellSpacing="0" DataSourceID="GetMiles" GridLines="None" AllowMultiRowEdit="True" AllowMultiRowSelection="True" AutoGenerateColumns="False" ShowHeader="False">
<ClientSettings>
<Selecting AllowRowSelect="True" />
</ClientSettings>
<MasterTableView DataSourceID="GetMiles" EditMode="batch" CommandItemDisplay="Bottom" ShowHeader="true" CommandItemSettings-ShowAddNewRecordButton="false" AllowNaturalSort="False">
<RowIndicatorColumn Visible="False">
</RowIndicatorColumn>
<CommandItemSettings ShowAddNewRecordButton="False"></CommandItemSettings>
<Columns>
<telerik:GridBoundColumn DataField="division" FilterControlAltText="Filter division column" HeaderText="Div" SortExpression="division" UniqueName="division">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="January" DataType="System.Double" FilterControlAltText="Filter January column" HeaderText="Jan" SortExpression="January" UniqueName="January">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="February" DataType="System.Double" FilterControlAltText="Filter February column" HeaderText="Feb" SortExpression="February" UniqueName="February">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="March" DataType="System.Double" FilterControlAltText="Filter March column" HeaderText="March" SortExpression="March" UniqueName="March">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="April" DataType="System.Double" FilterControlAltText="Filter April column" HeaderText="April" SortExpression="April" UniqueName="April">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="May" DataType="System.Double" FilterControlAltText="Filter May column" HeaderText="May" SortExpression="May" UniqueName="May">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="June" DataType="System.Double" FilterControlAltText="Filter June column" HeaderText="June" SortExpression="June" UniqueName="June">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="July" DataType="System.Double" FilterControlAltText="Filter July column" HeaderText="July" SortExpression="July" UniqueName="July">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="August" DataType="System.Double" FilterControlAltText="Filter August column" HeaderText="Aug" SortExpression="August" UniqueName="August">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="September" DataType="System.Double" FilterControlAltText="Filter September column" HeaderText="Sep" SortExpression="September" UniqueName="September">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="October" DataType="System.Double" FilterControlAltText="Filter October column" HeaderText="Oct" SortExpression="October" UniqueName="October">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="November" DataType="System.Double" FilterControlAltText="Filter November column" HeaderText="Nov" SortExpression="November" UniqueName="November">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="December" DataType="System.Double" FilterControlAltText="Filter December column" HeaderText="Dec" SortExpression="December" UniqueName="December">
<ColumnValidationSettings>
<ModelErrorMessage Text="" />
</ColumnValidationSettings>
</telerik:GridBoundColumn>
</Columns>
<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn1" FilterControlAltText="Filter EditCommandColumn1 column"></EditColumn>
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>
Radoslav
Telerik team
 answered on 10 Jun 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?