Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
248 views
Dear Support , please advice ...
im creating a page like this  telerik demo :
http://demos.telerik.com/aspnet-ajax/window/examples/radwindowandmdi/defaultcs.aspx
using the same javascript code , even whit the
tabStrip.trackChanges();
and
tabStrip.commitChanges();
however i put a .net dropdownlist  whith a postback event ( to set a profile that i whant to get in new windows) , and everytime the dropdownlist do the postback AND i created a new tab ( javascript ) , i got an .net error OBJECT REFERENCE NOT SET ....

COULD SOME ONE PLEASE HELP ME ? what more should i so ?

thnks !

NullReferenceException: Referência de objeto não definida para uma instância de um objeto.]
   Telerik.Web.UI.NavigationItem.LoadFromDictionary(IDictionary`2 dictionary) +104
   Telerik.Web.UI.RadTab.LoadFromDictionary(IDictionary`2 dictionary) +19
   Telerik.Web.UI.ClientStateLogPlayer`1.Insert(ClientStateLogEntry entry, ControlItemCollection items, Int32 index) +105
   Telerik.Web.UI.ClientStateLogPlayer`1.Play(ClientStateLogEntry entry) +219
   Telerik.Web.UI.ClientStateLogPlayer`1.Play(IEnumerable`1 clientStateLogEntry) +135
   Telerik.Web.UI.RadTabStrip.LoadLogEntries(TabStripClientState state) +34
   Telerik.Web.UI.RadTabStrip.LoadClientState(TabStripClientState state) +40
   Telerik.Web.UI.RadTabStrip.LoadPostData(String postDataKey, NameValueCollection postCollection) +166
   Telerik.Web.UI.RadDataBoundControl.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +13
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +690
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743

 

Aneliya Petkova
Telerik team
 answered on 16 Jan 2014
2 answers
47 views

If i have GroupsDefaultExpanded="false" i Want to schow only 20 Group rows

I can set PageSize="20" but howe set GroupSize="20", Is it possible?

And if i expand the Group and if it is 47 items in the Group i want show all in same page, how?



Viktor Tachev
Telerik team
 answered on 16 Jan 2014
2 answers
45 views
Hi,
I'm searching for a solution to limit the editor input to 2000 words, instead of blocking of the input, add a red line after 2000 words and the input can be continued. Same when pasting a large text, after pasting a large text, a red line have to be added after 2000 words.

Can you please help me out with this?

Kind regards,
Jelle
Erick
Top achievements
Rank 2
 answered on 16 Jan 2014
1 answer
164 views
Hi,

I am using radtextbox in aspx page. I have a web service and it returns a string. I want to add these string to my textbox permanently. So when somebody click on my radtextbox they can't delete these string which already in textbox but they add characters on it. How can I do that?

thx.


Shinu
Top achievements
Rank 2
 answered on 16 Jan 2014
0 answers
57 views
I have a RadComboBox that gets its data set in the FrameWorkInitialize method like this:

 if (!IsPostBack)
            {
                string firstFilterName = adaptationFilters[0].FilterCategoryName;
                var firstFilterGroup = adaptationFilters[0].FilterCategoryChoices.Select(afc => new ComboBoxItem(firstFilterName, afc)).ToList();
                firstFilterGroup.Insert(0, new ComboBoxItem(firstFilterName, firstFilterName));
                _filterDropDown1.DataSource = firstFilterGroup;
                _filterDropDown1.DataBind();
                _filterDropDown1.SelectedIndex = 0;
}

(where ComboBoxItem is an internal class that has an object, value and a string, text)

Everything looks good until I pick a value. Well, the SelectedIndexChanged event also fires like it should, but after the postback, item 0 is selected again. This happen both with ViewStateMode enabled and without.

What am I doing wrong?
C
Top achievements
Rank 1
 asked on 16 Jan 2014
2 answers
441 views
Hi.

I would like to align my pdf when exported in such a manner that all string columns are aligned left and numeric columns aligned right.  I have tried many different ways with no such result.  Below is a code snippet of what I am currently using.

private void ApplyStylesToPDFExport(GridItem item)
{
    if (item is GridHeaderItem)
        foreach (TableCell cell in item.Cells)
        {
            cell.Style["font-family"] = "Verdana";
            cell.Style["text-align"] = "Left";
            cell.Style["font-size"] = "12pt";
        }
 
    if (item is GridDataItem)
    {
        item.Style["font-size"] = "12px";
        item.Style["background-color"] = item.ItemType == GridItemType.AlternatingItem ? "#DDDDDD" : "#AAAAAA";
        item.Style["horizontal-align"] = "Right";
    }
 
}

The method is then called in the item_created event.  This code is being used to try align headings to left and data to right with not much success.

Any help would be greatly appreciated.

Kind regards.
Leon Havenga
Leon
Top achievements
Rank 1
 answered on 16 Jan 2014
3 answers
200 views
Hi.

As stated in the title, when using the radgrid to export to PDF/Excel, it converts the data into hyperlinks.  It however does not do this when exporting to csv and word.

Any help would be greatly appreciated.

Regards.
Leon Havenga
Princy
Top achievements
Rank 2
 answered on 16 Jan 2014
3 answers
1.6K+ views
I'm trying to hide/show different columns on a nested rad grid based on a flag in the pre-render event but they are all displaying

These are my grid columns:
<telerik:GridBoundColumn UniqueName="LocalDeanery" ReadOnly="true" DataField="localdeanery" HeaderText="Local Deanery" SortExpression="localdeanery"
    HtmlEncode="false" >
</telerik:GridBoundColumn>               
 
<telerik:GridTemplateColumn UniqueName="Sector2013" HeaderText="Sector" SortExpression="hasBeenHeld desc,Sector" AllowFiltering="false" >
    <ItemTemplate>
        <asp:Label ID="Label2" runat="server" Text='<%# Eval("Sector").ToString() + " (" + Eval("PrefRank").ToString() + ") " + (Eval("conditional").ToString()==""?"":"Conditional")%>'
             Visible='<%#  Eval("OfferId").ToString()!="" %>' />
    </ItemTemplate>
</telerik:GridTemplateColumn>
 
<telerik:GridBoundColumn UniqueName="Region" ReadOnly="true" DataField="tRegion" HeaderText="Region" SortExpression="tRegion"
    HtmlEncode="false">
</telerik:GridBoundColumn>               
 
<telerik:GridBoundColumn UniqueName="Subregion" ReadOnly="true" DataField="tSubRegion" HeaderText="Sub-Region" SortExpression="tSubRegion"
    HtmlEncode="false" >
</telerik:GridBoundColumn>               
 
<telerik:GridBoundColumn UniqueName="Sector2014" ReadOnly="true" DataField="tSector" HeaderText="Sector" SortExpression="tSector"
    HtmlEncode="false" >
</telerik:GridBoundColumn>

and my code in the pre-render
protected void RadGrid1_PreRender(object sender, EventArgs e)
{
    RadGrid od = (RadGrid)RadGrid1.MasterTableView.Items[0].ChildItem.FindControl("OfferDataDetail");
    Label ry = (Label)RadGrid1.MasterTableView.Items[0].ChildItem.FindControl("LblRoundYear");
 
    int RoundYear = 2014;
    if (ry != null) RoundYear = int.Parse(ry.Text);
 
    //display for 2013
    od.Columns.FindByUniqueName("LocalDeanery").Visible = (RoundYear == 2013);
    od.Columns.FindByUniqueName("Sector2013").Visible = (RoundYear == 2013);
    //display for 2014
    od.Columns.FindByUniqueName("Region").Visible = (RoundYear == 2014);
    od.Columns.FindByUniqueName("Subregion").Visible = (RoundYear == 2014);
    od.Columns.FindByUniqueName("Sector2014").Visible = (RoundYear == 2014);
 
    od.Rebind();
}

The lines to hide/show the columns is being hit but they are still displaying, is there something else I should be doing?
thanks
Princy
Top achievements
Rank 2
 answered on 16 Jan 2014
2 answers
293 views
Is there any way alter the Column Header Text when auto-generating the columns in a RadGrid?

Thanks,
Mark
Mark
Top achievements
Rank 1
 answered on 16 Jan 2014
3 answers
72 views
hi, i have to get de DataFieldValue of a RadComboBox or RadList, but i can´t, i am using the Rad TabStrip Wizard Demo with ascx´s but i only can to get the Text property of a RadComboBox Selected Item like Demo, can you help me!

thanks
Princy
Top achievements
Rank 2
 answered on 16 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?