Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
227 views

I tried posting this before and got an error, so I'll try again. Please delete one of them if this ends up being a double-post...

Rebind only calls the NeedDatasource event the first time on server-side when called more than once in the same postback. Seems like a bug, but I'm wondering if it's purposeful.

What I'm doing is rebinding an empty dataset to the grid to initialize it by removing all the rows, just in case something errors out during the following DB load. If the load is successful, I want to rebind the newly loaded dataset. However, it only works if I skip the first rebind, which seems odd.

Jeremy Yoder
Top achievements
Rank 1
 answered on 09 Jul 2010
1 answer
120 views
Hi Telerik,

I think we have found a minor bug in the Pivot Table Sample for RadGrid where the PivotTable() method skips the first column of the table when it converts a vertical table structure to a horizontal structure.

Here is the code:

Please redeem us some points if we are first to report this :).

Regards,

Amir

public DataTable PivotTable(DataTable source)
{
DataTable dest = new DataTable("Pivoted" + source.TableName);

dest.Columns.Add(" ");

foreach (DataRow r in source.Rows)
dest.Columns.Add(r[0].ToString());

for (int i = 0; i < source.Columns.Count - 1; i++)      // Columns count should not be decreased by one
{
dest.Rows.Add(dest.NewRow());
}

for (int r = 0; r < dest.Rows.Count; r++)
{
for (int c = 0; c < dest.Columns.Count; c++)
{
if (c == 0)
dest.Rows[r][0] = source.Columns[r + 1].ColumnName; // Row index should not be increased by one
else
dest.Rows[r][c] = source.Rows[c - 1][r + 1]; // Row index should not be increased by one
}
}
dest.AcceptChanges();
return dest;
        }
Iana Tsolova
Telerik team
 answered on 09 Jul 2010
1 answer
75 views
Hi,

First, I would like to apologize if this question has been asked before, I tried to search but couldn't find any.

I encountered an odd problem related to RadGrid control.
In my machine (and SIT environment), the page will hang when anyone tried to edit an item in DataGrid.
The exact same application (pointing to the same database) works normally in my colleague's machine.
That leaves environment as the deciding factor. However, we never updated/changed Telerik version.
fyi: We are using Telerik.Web.UI.dll product version 2009.02.0826.20.

Can anyone shed some lights on how to investigate / rectify this problem?

Thanks and Regards,
Sanjaya 

Iana Tsolova
Telerik team
 answered on 09 Jul 2010
5 answers
152 views

See attached screenshot1

We need to have this
functionality in our application. These are simple Anchor tags which call JavaScript function.

 Attached is the JavaScript function(Screenshot2)

  

It is changing the size of text on webpage, but it is not doing so in case of Grid, Panel Bars, Menu.

 

Kindly let us know how it can be done in case of Telerik controls.

 

Dimo
Telerik team
 answered on 09 Jul 2010
5 answers
180 views
Hi,

     I am using Silverlight Red Upload for multifile uploading in my asp.net web site. And i wants if a user will uploade any file in control the page will busy and user will not able to click any control at same time, Is there any possiblity plese let me know.

I am using the control a following...

<

 

object id="SilverlightUpload" data="data:application/x-silverlight," type="application/x-silverlight-2"

 

 

width="100%" height="120px">

 

 

<param name="source" value='<%= ResolveUrl("~/Upload.xap") %>' />

 

 

<param name="background" value="white" />

 

 

<param name="minRuntimeVersion" value="2.0.31005.0" />

 

 

<param name="autoUpgrade" value="true" />

 

 

<param name="windowless" value="true" />

 

 

<param name="InitParams" value='<%= InitParameters %>' />

 

 

<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">

 

 

<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight"

 

 

style="border-style: none" />

 

 

</a>

 

 

 

 <telerik1:RadUpload ID="RadUpload1" runat="server">

 

</telerik1:RadUpload>

 

 

 

</object>



Thanks,


 

Genady Sergeev
Telerik team
 answered on 09 Jul 2010
1 answer
60 views
Hi,
I need to open my form insted of  Scheduler add/edit Appointment form so how can i get event? OR which event is reized so i can trap.


thanks
Jagdish Prajapati
Shinu
Top achievements
Rank 2
 answered on 09 Jul 2010
4 answers
293 views
Hi All,

I know that RadTicker can get data from XMLDataSource. But now I need to get data from database. Is RadTicker able to do this? In my case, I put RadTicker in RadRotator.   I got items for RadRotator dynamically from database, programming in the server side. So now how can RadTicker get items from database ?

Thank you !


Fiko
Telerik team
 answered on 09 Jul 2010
1 answer
118 views
Hi All,

i have used RadMenu for open the Popup(Radpoup). i am using OnClientItemClicked event to open the RadWindow. This is working fine. Now i have added one Button called "Export to Excel" for exporting the data in Excel. This also woking fine. My issue is After the export, f i clicked the radmenu, the radwindow not working. but the event OnClientItemClicked fired correctly.

<asp:UpdatePanel ID="testPanel" runat="server">  
<contenttemplate> 
 
<radM:RadMenu ID="mnuImport" Width="90%" runat="server" Skin="Default2006" OnClientItemClicked="ImportPopup" CausesValidation="false">  
 <DefaultGroupSettings Height="160" Width="70" />                                                                              <Items> 
    <radM:RadMenuItem Text="Red" Value="Red">  
        <Items> 
            <radM:RadMenuItem Text="Red" Value="Red"></radM:RadMenuItem> 
            <radM:RadMenuItem Text="Blue" Value="Blue"></radM:RadMenuItem> 
            <radM:RadMenuItem Text="Yellow" Value="Yellow"></radM:RadMenuItem> 
            <radM:RadMenuItem Text="Orange" Value="Orange"></radM:RadMenuItem> 
        </Items> 
    </radM:RadMenuItem>                                                                     
   </Items> 
</radM:RadMenu> 
 
 
<asp:Button ID="btnExport" runat="server" Text="Export to Excel" CssClass="searchbutton" CausesValidation="false"/>    
 
</contenttemplate> 
<triggers> 
    <asp:PostBackTrigger ControlID="btnExport" /> <!-- if i comment this line, the Popup is working fine. but the export is not working -->    
</triggers> 
</asp:UpdatePanel> 
 
<div> 
  <radwindow:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Vista" Behavior="Close, Move" 
      Height="300px" Width="500px" Modal="true">  
      <Windows> 
           <radwindow:RadWindow ID="radImport" runat="server" Title="Import" ReloadOnShow="true"   
                  Height="300px" Width="500px"  VisibleTitlebar="true" Skin="Vista"/>                                               
           </Windows> 
  </radwindow:RadWindowManager> 
</div> 
 
 
 
function ImportPopup(sender, eventArgs)  
{  
          
        var selectedImportType = eventArgs.Item.Value;          
        window.radopen("../DocMgt/ImportPopup.aspx?ImportType=" + selectedImportType, 'radImport');  
        return false;  

this is working fine if we never click export button. once we clicked the export button the events are fired correctly, but the rad window is not opened.

Let me know if any solutions.

Thanks in Advance

Anand
Fiko
Telerik team
 answered on 09 Jul 2010
4 answers
71 views
Hi,
i want to display appointments as saparate as per time slot.
that means if my resource have 2- appointment for 8:00 am to 9:00 am and 9:00 am to 10:00 am in this case i want to display two saparate appointment. how it can be done ?

thanks in advance,
Jagdish Prajapati
Jagdish
Top achievements
Rank 1
 answered on 09 Jul 2010
3 answers
460 views
Hi all

I have a combobox as follows:


<telerik:RadComboBox ID="cmbobox" runat="server" AutoPostBack="true" EnableLoadOnDemand="true"></telerik:RadComboBox> 


Also I have the vb code:


Protected Sub cmbobox_ItemsRequested(ByVal o As ObjectByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs) Handles cmbobox.ItemsRequested 
  
        Dim objDataBaseClass As New DataBaseClass() 
        Dim dtDatabase As DataTable = objDataBaseClass.GetSomedataById(e.Text) 
  
        If dtDatabase Is Nothing Then 'or any other condition that checks for errors 
        'Here I need to go to error page: 
        'Response.Redirect("~/ErrorPage.aspx") 
        'Server.Transfer("~/ErrorPage.aspx") 
        End If 
  
        cmbobox.Items.Add(New RadComboBoxItem("""")) 
        For i As Integer = 0 To dtDatabase .Rows.Count - 1 
            cmbobox.Items.Add(New RadComboBoxItem(dtDatabase .Rows(i)("ID").ToString() & " - " & dtDatabase .Rows(i)("NAME").ToString(), dtDatabase.Rows(i)("ID").ToString())) 
        Next 
    End Sub 



The problem is on lines (8 & 9), I am trying to go to another page to display some information about the error, but an exception thrown:

Server.Transfer cannot be called in a page callback

or

Response.Redirect cannot be called in a Page callback

I tired to register some client script like window.location but it does not work.

Please can you give me some help???




Simon
Telerik team
 answered on 09 Jul 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?