Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
65 views
I'm having a hard time finding the solution to this problem, currently i do have a user-interface in AJAX form also including RadGrid control, TextBox and Button (Item Template), inside my Button i do have a code that saves the data to the back-end, but the problem is.as i save the data coming from the RadGrid the User-Interface closes to rebind,  what I wanna do right now is that , saving the data to the back end without closing the user-interface (AJAX) form and automatically when i search the data using custom filtering, the saved data will reflect. Can you help me with this?


Jared
Top achievements
Rank 1
 asked on 22 Mar 2011
7 answers
367 views
I wanted to upgrade to the latest Telerik library and am getting
Could not load file or assembly 'Telerik.Web.UI, Version=2010.1.415.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I know I can accomplish this by removing and re-adding my references to the project, then rebuilding. But how can I upgrade an already installed production server (the website was already published there by publishing from VS)? I tried just replacing the .DLL/.XML files in the bin folder, and then updating the web.config file ... but I still get the error above. I believe the "old" telerik version numbers are somehow compiled into the published website. Is it possible to upgrade the telerik DLL without recompiling/republishing?

Thanks!
Sebastian
Telerik team
 answered on 22 Mar 2011
2 answers
187 views
Hi,

I have a situation where the RadGrid's pager hides when I change the page size from UI dropdown.

Steps:
I fill my grid with 12 rows of data. The RadGrid's is page size is 10, here the pager shows 2 pages, which is fine.
Now when I change my current page size to 20 records (from grid's pager combobox) the grid shows all 12 records but the Pager hides itself and there is no way I can get it back to show only 10 records without refreshing the page.

Please help.


Thanks
A
Ajay
Top achievements
Rank 1
 answered on 22 Mar 2011
3 answers
233 views
Let's say i have something like this:
<Columns>
    <telerik:GridTemplateColumn HeaderStyle-CssClass='GridHeaderGreen ra' ItemStyle-CssClass='ra'
        HeaderText='#' ItemStyle-Width='25' HeaderStyle-Width='25'>
        <ItemTemplate>
            <asp:Label ID="lblRowNum" runat="server" />
        </ItemTemplate>
    </telerik:GridTemplateColumn>
    <telerik:GridBoundColumn HeaderStyle-CssClass='GridHeaderGreen la' ItemStyle-CssClass='la' HeaderText='Server Name' SortExpression='TSM.TSMSERVER.NAME' DataField='Server_name' UniqueName='Server_name' />
    <telerik:GridTemplateColumn HeaderStyle-CssClass='GridHeaderGreen ra' ItemStyle-CssClass='ra' HeaderText="Error" UniqueName="ErrorMessageRecordCount">
        <ItemTemplate>
            <asp:HyperLink runat="server" ToolTip='<%# Eval("ErrorMessageRecordCount") %>' Text='<%# Eval("ErrorMessageRecordCount") %>'
                NavigateUrl='<%# GetMessageDetailUrl(Container, ActLogSeverity.E) %>'>
            </asp:HyperLink>
        </ItemTemplate>
    </telerik:GridTemplateColumn>
</Columns>

I can't figure out, how to get current column index within GetMessageDetail method without these silly sending column number parameter, traversing some events, etc. I do have row number (container.ItemIndex), i do have column count total, but funny thing - i don't have column index! It's weird....
Princy
Top achievements
Rank 2
 answered on 22 Mar 2011
3 answers
142 views
Going through the latest release notes, I see this gem in the RadGrid section:

Added: Option for Update/Insert action on [Enter] key press from edit/insert form editor (when keyboard navigation is enabled)

Mind telling us what the option is? There's already a ridiculous number of parameters for RadGrid/MasterTableView/EditForm/etc, it would literally take me weeks to locate this new option since the RadGrid documentation does not appear to be updated with it..

Radoslav
Telerik team
 answered on 22 Mar 2011
6 answers
123 views
Hi all,
      I have to change the backround of some Items in  the ComboBox sitted in Inline Template by server side code , I have used  this demo : http://demos.telerik.com/aspnet-ajax/scheduler/examples/resourceavailability/defaultcs.aspx
   But when I set for exple : ComboBox.Items[5].Background=Color.red;
the background not change and if I verify in the result I find that they use   .asx files to set style.


?????????????
Veronica
Telerik team
 answered on 22 Mar 2011
1 answer
77 views
Hi,

I have a problem about adjust legend text. Text are so long and leave the legend area.

I agree photo to save problems.

radChart2.Legend.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Right;
            radChart2.Legend.Appearance.Location = Telerik.Charting.Styles.LabelLocation.OutsidePlotArea;
            radChart2.Legend.Appearance.Border.Color = Color.Green;
            radChart2.Legend.Appearance.Border.Width = 2;
            radChart2.Legend.Appearance.FillStyle.MainColor = Color.Yellow;
            radChart2.Legend.Appearance.Dimensions.AutoSize = false;
            radChart2.Legend.Appearance.Dimensions.Width = 200;
            radChart2.Legend.Appearance.Dimensions.Height = 300;
            radChart2.Legend.Appearance.ItemTextAppearance.Position.Auto = true;
            radChart2.Legend.Appearance.ItemAppearance.
            radChart2.Legend.Visible = true;

Thanks,

Víctor.

Evgenia
Telerik team
 answered on 22 Mar 2011
3 answers
128 views
I have make a scheduler based on your exemple. It Wok well, his is my method to inizialize object and dataBound
http://localhost:8301/radcontrols_aspnetajax/scheduler/examples/bindtolist/defaultcs.aspx

private void InitializeResources()
        {
  
            ResourceType resType = new ResourceType("User", false);
  
            resType.ForeignKeyField = "UserID";
            resType.Name = "User";
  
            RadScheduler1.ResourceTypes.Add(resType);
  
            //add uer
            DataView listUser = (DataView)ObjectDataSourceFilterContatti.Select();
  
            foreach (DataRow user in listUser.Table.Rows)
            {
                int key = Convert.ToInt32(user["idAnagrafica"]);
                string value = user["Nome"].ToString();
  
                Resource r = new Resource("User", key, value);
                RadScheduler1.Resources.Add(r);
            }
                 }
protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
        {
            //recupero l'utente collegato all'appuntamento
            Resource userRes = e.Appointment.Resources.GetResourceByType("User");
            if (userRes != null)
            {
                string key = userRes.Key.ToString();
                   //DO SOMETHING...............
            }                    
}
now, if I change the InitializeResources() method in this way
ResourceType resType = new ResourceType("User", false);
            resType.DataSourceID = "ObjectDataSourceFilterContatti";
            resType.ForeignKeyField = "UserID";
            resType.KeyField = "idAnagrafica";
            resType.TextField = "Nome";
            resType.Name = "User";
            RadScheduler1.ResourceTypes.Add(resType);

it work on page load (the combo box User is populated correctly) but in past back during the method RadScheduler1_AppointmentDataBound in this row

Resource userRes = e.Appointment.Resources.GetResourceByType("User");

the userRes object is always null, why?
Veronica
Telerik team
 answered on 22 Mar 2011
3 answers
134 views
Currently it has a width assigned via stylesheet to 160px. How can I change this?

Shinu
Top achievements
Rank 2
 answered on 22 Mar 2011
1 answer
100 views
hey there,

how can i use Hierarchical radgrid with advance data binding??..Where should i call NeedDataSource events for detail and master grid??..

thanks
Amit
Princy
Top achievements
Rank 2
 answered on 22 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?