Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
73 views
Hi there,

We have a RadCalendar and a RadScheduler on a page.  We need to change the selectdate for the radscheduler when the user clicks on the navigation controls on the radcalendar.  But the RadCalendar does not have a navigationComplete event to trigger the event.  How should this be handled?

We tried putting it in the PreRender event but it was causing the Scheduler  to get reset when we did:
radscheduler.selecteddate=radcalendar.selecteddate

Thank you !
Y L
Top achievements
Rank 1
 asked on 20 Aug 2010
3 answers
182 views
Hi,
Export data to Excel Problem:
In ExportToExcel() method,i am facing the problem when huge amount of data is there, in excel it is showing "########",
When we double click on that cell it is showing the content.
        ............................
       binded datatable data to gridview
        .................................
       //int wid = 120;
        // //GridView1.Columns["Description"].ItemStyle.Width=wid;
        //GridView1.Columns[3].ItemStyle.Width = Unit.Percentage(40);
        // GridView1.Columns[3].ItemStyle.Width = Unit.Pixel(40);
      GridView1.RenderControl(hw);
        //style to format numbers to string
        string style = @"<style> .textmode { mso-number-format:\@; } </style>";
        Response.Write(style);
        Response.Output.Write(sw.ToString());
        Response.Flush();
        Response.Close();
        Response.End();
}

Help me in this problem,or let me know if there is any alternative..
Thanking you..
Daniel
Telerik team
 answered on 20 Aug 2010
2 answers
265 views

Hi,

Using Ajax when page redirecting to another page it gives following error


sys.webforms.pagerequestmanagerparsererrorexception.........

Basically I am using RadAjaxManager. I have also remove the control which refresh the specific area when click on submit button.

Please anybody helps me in this regard what to do. Thank you very much

Regards

Shakeel

Leonel
Top achievements
Rank 1
 answered on 20 Aug 2010
1 answer
584 views
In a RadGrid I have one DetailTable that is populated in the DetailTableDataBind event. In the ItemDataBound I set some attributes which works fine until the expand icon is clicked (see error below).
How do I detect (in the ItemDataBound event) that it is the DetailTable that is being databound?

Grid structure:
<telerik:RadGrid ID="rg" runat="server" AutoGenerateColumns="False">
  <MasterTableView DataKeyNames="key">
    <Columns>
      <telerik:GridBoundColumn DataField="key" HeaderText="key" UniqueName="key" />
      <telerik:GridBoundColumn DataField="value" HeaderText="value" UniqueName="value" />
      <telerik:GridTemplateColumn UniqueName="SelectColumn" AllowFiltering="false">
        <HeaderTemplate><asp:CheckBox runat="server" ID="chkAll" ToolTip="Toggle all" /></HeaderTemplate>
        <ItemTemplate><asp:CheckBox runat="server" ID="chkItem" /></ItemTemplate>
      </telerik:GridTemplateColumn>
    </Columns>
    <DetailTables>
      <telerik:GridTableView AutoGenerateColumns="true" Name="details" HierarchyLoadMode="ServerOnDemand" />
    </DetailTables>
  </MasterTableView>
</telerik:RadGrid>

ItemDataBound
Protected Sub rg_ItemDataBound(ByVal sender As Object,
                               ByVal e As GridItemEventArgs) _
        Handles rg.ItemDataBound
 
  Select Case e.Item.ItemType
 
    Case GridItemType.Header
      Dim ghi As GridHeaderItem = CType(e.Item, GridHeaderItem)
 
      Dim chkAll As CheckBox = ghi.FindControl("chkAll")
      chkAll.Attributes.Add("onclick", "TogglePending(this);")
 
    Case GridItemType.AlternatingItem, GridItemType.Item
 
      Dim gdi As GridDataItem = CType(e.Item, GridDataItem)
      Dim ce As Data.DataRowView = CType(e.Item.DataItem, Data.DataRowView)
 
      Dim chkItem As CheckBox = gdi.FindControl("chkItem")
      chkItem.Attributes.Add("onclick", String.Format("chkItem_CheckedChanged(this, '{0}');", e.Item.ItemIndex))
 
  End Select
End Sub

DetailTableDataBind
Private Sub rg_DetailTableDataBind(ByVal source As Object, ByVal e As GridDetailTableDataBindEventArgs) Handles rg.DetailTableDataBind
 
  Dim gdi As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem)
  e.DetailTableView.DataSource = getDetails(gdi("key").Text)
 
End Sub

Error in line 61
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.
 
Source Error:
 
 
Line 59:
Line 60:           Dim chkAll As CheckBox = ghi.FindControl("chkAll")
Line 61:           chkAll.Attributes.Add("onclick", "TogglePending(this);")
Line 62:
Line 63:         Case GridItemType.AlternatingItem, GridItemType.Item


Cori
Top achievements
Rank 2
 answered on 20 Aug 2010
2 answers
100 views
Hi there,

I am creating an employee dashboard similar to an iGoogle implementation.

I am using the radtabstrip and radwindowmanager inside of a radajaxupdatepanel. When a tab is clicked, an ajax postback occurs, the previously open radwindows are removed from the radwindow manager (on the server side), and new radwindows are created (again on server side).

After the ajax postback is done, the windows appear properly, but do not fire their dragend and resizeend client events the first time the user drags/resizes after the postback. The user has to drag/resize at least twice before the events are fired.

Should I be doing something else to ensure that the events are wired up?

Thanks,

Adam
Adam Toth
Top achievements
Rank 1
 answered on 20 Aug 2010
3 answers
356 views
Basically have a treeview that has a title as the first node and upon contextmenu selection you add a user control to the item template...

I'm assuming upon the e.menuitem.value on the case statement you would add that user control to the item template on that node but how do you add it dynamically?

thanks in advance.
Lee
Top achievements
Rank 1
 answered on 20 Aug 2010
2 answers
304 views
I have a multi-column combobox showing 3 items in the dropdown.  When going to select an item the highlight bar is very thin, bounces around a lot and rarely ends up on the item to be clicked/selected. See attached image.

<telerik:RadComboBox ID="radcmbProduct" runat="server" Width="400px" Height="200px" AllowCustomText="false" EmptyMessage="Select a Product" EnableLoadOnDemand="True" ShowMoreResultsBox="true" DropDownWidth="600px" EnableVirtualScrolling="true" HighlightTemplatedItems="true" MarkFirstMatch="true" NoWrap="true" OnItemsRequested="radcmbProduct_ItemsRequested" OnItemDataBound="radcmbProduct_ItemDataBound">
      <HeaderTemplate>
           <ul>
              <li class="col1">Title</li>
              <li class="col2">System</li>
              <li class="col3">Price</li>
            </ul>
      </HeaderTemplate>
      <ItemTemplate>
            <ul>
               <li class="col1">
                   <%# DataBinder.Eval(Container.DataItem, "Title") %></li>
               <li class="col2">
                   <%# DataBinder.Eval(Container.DataItem, "GameSystemName") %></li>
               <li class="col3">
                   <%# DataBinder.Eval(Container.DataItem, "DisplayPrice")%></li>
            </ul>
       </ItemTemplate>
</telerik:RadComboBox>
Jeff Reinhardt
Top achievements
Rank 1
 answered on 20 Aug 2010
1 answer
80 views
Hi Team,

I want to replace the simple textbox coming in RadScheduler (for adding appointments) with HTML editor.
Please suggest how can i customize that. Please reply to the earliest.

Thanks and Regards,
Amrita Mandal
Cori
Top achievements
Rank 2
 answered on 20 Aug 2010
2 answers
165 views
Hi,

I have a combobox within a griditemtemplate. This combobox is being populated in sql by using the following code.

Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)
        If e.Item.ItemType = 2 And e.Item.IsInEditMode Then
            Dim editform As GridDataItem = CType(e.Item, GridDataItem)
            Dim comboBox As RadComboBox = editform.FindControl("cmboDomains")
            PopulateComboEmail(comboBox)
        End If
    End Sub

The problem I have now is that I want to bind a value from the grid as the text for this combobox only after the combobox has been populated. As of right now, the combobox comes up empty because I try to bind the text value before there are any values in the combobox.

<telerik:RadTextBox id="txtEmailAddress" runat="server" MaxLength="150" Width="200" Text='<%# Bind("proxyAddresses") %>'/>@<telerik:RadComboBox ID="cmboDomains" runat="server" Width="200" text="'<%# Bind("domain") %>'"></telerik:RadComboBox>


Please let me know how I can achieve this!

Thanks!
Trevor
Trevor
Top achievements
Rank 1
 answered on 20 Aug 2010
1 answer
122 views
Here is my situation - first, I am using the javascript blurb that Telerik provided in the documentation in order to display the Submit button inside the div (Place the submit button inside the upload div). So the Submit button is not tied to any kind of code-behind action.

Now, what I want to do is use the Upload control to get my files, but I don't want them copied to a folder. I am going to convert them to another format in memory, then save the converted files to the database. All of this is being done in memory.

Since I don't have a button click event firing, I decided to simply hook into the RadUpload1_ValidatingFile() event instead. There, I just start with:

UploadedFile file = e.UploadedFile;

then I just start the process of converting my file and saving it to the DB.

All of this works just great, with one exception - the Upload control still copies the file to the folder specified in the TargetFolder parameter.
I don't want that to happen.

I tried ending the process with:
   e.SkipInternalValidation = !e.IsValid;

But that doesn't stop the file from copying over :(

Help?
Cori
Top achievements
Rank 2
 answered on 20 Aug 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?