Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
360 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
180 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
228 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
137 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
118 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
121 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
125 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
95 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
2 answers
351 views
Hi,

I have one Radtreeview in the left side and Radgrid in the rightside.
Radtreeview binded dynamically. Its working fine.
private void BuildDataTable()
    {
        DataTable data = new DataTable();
        data.Columns.Add("parent_id");
        data.Columns.Add("child_id");
        data.Columns.Add("child_code");

        data.Rows.Add(null, "25", "AF-Angel Falls");
        data.Rows.Add(null, "26", "RR-Rapid Run");
        data.Rows.Add("25", "38", "P1-Phase1");
        data.Rows.Add("26", "39", "P1-Phase1");
        data.Rows.Add("38", "172", "001-Lot1");
        data.Rows.Add("38", "173", "002-Lot2");
        data.Rows.Add("38", "174", "003-Lot3");
        data.Rows.Add("38", "175", "004-Lot4");
        data.Rows.Add("38", "176", "005-Lot5");
        data.Rows.Add("39", "177", "001-Lot1");
        data.Rows.Add("39", "178", "002-Lot2");
        data.Rows.Add("39", "179", "003-Lot3");
        data.Rows.Add("39", "180", "004-Lot4");
        data.Rows.Add("39", "181", "005-Lot5");

        RadTreeView1.DataFieldID = "child_id";
        RadTreeView1.DataFieldParentID = "parent_id";
        RadTreeView1.DataTextField = "child_code";
        RadTreeView1.DataValueField = "child_id";
        RadTreeView1.ExpandAnimation.Duration = 100;
        RadTreeView1.DataSource = data;
        RadTreeView1.DataBind();
    }

when i select childnode (Lot1), based on childnode value i have to populate radgrid in the rightside.

private void BindRadGrid()
    {
       string selectedNodevalue = RadTreeView1.SelectedNode.Value; // Get the selected node value (ID)

        // Set the grid DataSource
        conn = new MySqlConnection(connString);
        MySqlDataAdapter adapter = new MySqlDataAdapter();
        string query = "SELECT distinct tsa.org_finish_Date,mjt.jobtype_code,tsap.total_float,tsap.activity_desc,tsap.original_duration, " +
                "tsap.early_start_display,tsap.early_finish_display, tsap.actual_start,tsap.actual_finish,tsap.pct,mdrc.delay_reason_code_id, " +
                "mdrc.delay_reason_code,tsap.delay_days,tsap.act_log,tsap.rem_duration, tsap.mandatory_start,tsap.mandatory_finish " +
                "from tsm_schedule_activities_publish_s tsap " +
                "inner join tsm_schedule ts on tsap.schedule_id=ts.schedule_id " +
                "inner join tsm_schedule_activities tsa on tsap.schedule_id=tsa.schedule_id " +
                "inner join msm_delay_reason_codes mdrc on tsap.delay_reason_code_id=mdrc.delay_reason_code_id " +
                "inner join msl_jobtypes mjt on ts.jobtype_id=mjt.jobtype_id " +
                "inner join min_com_lots mcl on mcl.com_lot_id=ts.com_lot_id where mcl.lot_id="+selectedNodevalue;
        adapter.SelectCommand = new MySqlCommand(query, conn);
        // DataSet myDataSet = new DataSet();
        conn.Open();
        try
        {
            adapter.Fill(myDataSet, "tsm_schedule_activities_publish_s");
        }
        finally
        {
            conn.Close();
        }
        RadGrid1.DataSource = myDataSet;
        //RadGrid1.DataBind();
    }

  error is, "Object reference not set to an instance of an object".
I am getting an error in this area
string selectedNodevalue = RadTreeView1.SelectedNode.Value; // Get the selected node value (ID).

my final output is in the attachment, when i hard coded the childnode value i got output like this.

Thanks,
Nagendra.
Nagendra
Top achievements
Rank 1
 answered on 22 Mar 2011
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?