Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
287 views
Hi,
I use VS.Net 2010 Beta 2 and RadControls_for_ASP.NET_AJAX_2009_3_1103. I try to use radgrid paging with ragajaxmanager. When i change pagesize or try to go second page, firstly radajaxloadinpanel works and then a javascript error occurs. It says "Object doesn't support this property or method" and loading panel never stops.
How can i resolve this problem
Mehmet Tirgil
Top achievements
Rank 1
 answered on 18 Dec 2009
1 answer
61 views
hello,

I implemented these issue:
http://www.telerik.com/community/forums/aspnet-ajax/combobox/combobox-getscriptdescriptors-and-getscriptreferences.aspx

And it works find.

Now it created a new combobox-control based on a combobox control with the hiddenfield workaround.

The event OnClientSelectedIndexChanged event doesn't work for the new combobox.

How can I handle these issue? I have to use the onchange event client side for the new combobox-control!

Best regards
lemon
Simon
Telerik team
 answered on 18 Dec 2009
2 answers
300 views
How do I make RadGrid's contains filter to use SQL Server's contains(fieldname, 'searchvalue') instead of %searchvalue%?
Lenny_shp
Top achievements
Rank 2
 answered on 18 Dec 2009
2 answers
83 views
protected void btnApplicaFiltro_Click(object sender, EventArgs e)

I have a radgrid within a MS Update Panel.

When I submit with command:

protected void btnApplicaFiltro_Click(object sender, EventArgs e)
{
gridOrdini_DataBind();
}

protected void gridOrdini_DataBind()

    gridOrdini.Rebind();
}

The first time the grid not update data.

My grid:

<telerik:radgrid id="gridOrdini" runat="server" allowpaging="True" allowsorting="True"
datasourceid="sdsOrdini" gridlines="None" onitemcommand="RadGrid1_ItemCommand">
<MasterTableView AutoGenerateColumns="False" DataSourceID="sdsOrdini">
<RowIndicatorColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
<ExpandCollapseColumn>
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
<Columns>
<telerik:GridBoundColumn DataField="td_anno" HeaderText="td_anno" SortExpression="td_anno"
UniqueName="td_anno" DataType="System.Int16">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="td_serie" HeaderText="td_serie" SortExpression="td_serie"
UniqueName="td_serie">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="td_numord" HeaderText="td_numord" SortExpression="td_numord"
UniqueName="td_numord" DataType="System.Int32">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="td_datord" DataType="System.DateTime" HeaderText="td_datord"
SortExpression="td_datord" UniqueName="td_datord">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="td_riferim" HeaderText="td_riferim" SortExpression="td_riferim"
UniqueName="td_riferim">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn DataField="td_flevas" HeaderText="td_flevas" SortExpression="td_flevas"
UniqueName="td_flevas">
</telerik:GridBoundColumn>
</Columns>
<DetailTables>
<telerik:GridTableView AutoGenerateColumns="false" Caption="Sales per Employee" AllowSorting="false"
DataSourceID="sdsDettaglioOrdini" Width="100%" PageSize="5">
<ParentTableRelation>
<telerik:GridRelationFields DetailKeyField="codditt, td_tipork, td_anno, td_serie, td_numord"
MasterKeyField="codditt, td_tipork, td_anno, td_serie, td_numord" />
</ParentTableRelation>
<Columns>
<telerik:GridBoundColumn SortExpression="mo_riga" HeaderText="N." HeaderButtonType="TextButton"
DataField="mo_riga" Resizable="True" Reorderable="True">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="mo_codart" HeaderText="Cod. art." HeaderButtonType="TextButton"
DataField="mo_codart" Resizable="True" Reorderable="True">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="ar_descr" HeaderText="Descr." HeaderButtonType="TextButton"
DataField="ar_descr" Resizable="True" Reorderable="True">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="mo_unmis" HeaderText="U.m." HeaderButtonType="TextButton"
DataField="mo_unmis" Resizable="True" Reorderable="True">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="mo_quant" HeaderText="Q.tà ord." HeaderButtonType="TextButton"
DataField="mo_quant" Resizable="True" Reorderable="True">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="mo_quaeva" HeaderText="Q.tà evasa" HeaderButtonType="TextButton"
DataField="mo_quaeva" Resizable="True" Reorderable="True">
</telerik:GridBoundColumn>
<telerik:GridBoundColumn SortExpression="mo_quapre" HeaderText="Q.tà pren." HeaderButtonType="TextButton"
DataField="mo_quapre" Resizable="True" Reorderable="True">
</telerik:GridBoundColumn>
</Columns>
</telerik:GridTableView>
</DetailTables>
</MasterTableView>
</telerik:radgrid>

Any idea ?

Thanks, Andrea

Andrea Gorin
Top achievements
Rank 2
 answered on 18 Dec 2009
4 answers
158 views
I have a ScriptManager in Master page and jquery script like this:

<script type="text/javascript">
        $(document).ready(

     function () {
                    $('input#tmpDate1').click(main);
                    $('input#tmpDate').click(main);
                }       );
</script>

The following control is on Home Page:
<input type='text' id='tmpDate1' size='25' value=''/> 

and then <input type='text' id='tmpDate' size='25' value=''/> on another aspx linked from Home page.

I get the error: Microsoft JScript runtime error: Object expected


Excluding Script registrar and including scripts in head solves the problem on Home page and see the alert dialog as expected but navigating to linked aspx from Home pages shows the same error as above. 



 

Kaleem Khan
Top achievements
Rank 1
 answered on 18 Dec 2009
2 answers
129 views
Hi,

I am having problem setting the datepicker's width via css. I am disabling the embedded skin and style, yet I cannot change the with of the div from 150px to something else. what ever I write in css it adds the 150px inline and overwrites me.

I want to use the skin as a base style but I want to be able to change the width of the datepicker in different pages using the site's global css file.

help please?

This is how I set the tag:
----------------------------------
       
<telerik:RadScriptManager ID="RadScriptManager1" runat="server"
        </telerik:RadScriptManager> 
        <telerik:RadDatePicker EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false"    
            ID="RadDatePicker1" runat="server"
        </telerik:RadDatePicker> 


This is the html output I get:
----------------------------------

<div style="display: -moz-inline-stack; width: 150px; height: 20px;" class="RadPicker RadPicker_Default " id="RadDatePicker1_wrapper"
    <!-- 2009.3.1103.35 --><input type="text" value="" class="rdfd_" name="RadDatePicker1" id="RadDatePicker1" style="border: 0pt none ; margin: 0pt 0pt -1px; padding: 0pt; overflow: hidden; visibility: hidden; display: block; float: right; width: 1px; height: 1px;"/><table cellspacing="0" style="width: 150px;" class="rcTable"
        <tbody><tr
            <td style="width: 100%;" class="rcInputCell"><span style="display: block;" class="RadInput RadInput_Default" id="RadDatePicker1_dateInput_wrapper"><input type="text" style="width: 100%;" class="riTextBox riEnabled" name="RadDatePicker1_dateInput_text" id="RadDatePicker1_dateInput_text"/><input type="text" value="" class="rdfd_" name="RadDatePicker1$dateInput" id="RadDatePicker1_dateInput" style="border: 0pt none ; margin: -18px 0pt 0pt; padding: 0pt; overflow: hidden; visibility: hidden; float: right; width: 1px; height: 1px;"/><input type="hidden" name="RadDatePicker1_dateInput_ClientState" id="RadDatePicker1_dateInput_ClientState" autocomplete="off"/></span></td><td><a class="rcCalPopup" id="RadDatePicker1_popupButton" href="#" title="Open the calendar popup.">Open the calendar popup.</a><div style="display: none;" id="RadDatePicker1_calendar_wrapper"><table cellspacing="0" border="0" class="RadCalendar RadCalendar_Default" summary="Calendar" id="RadDatePicker1_calendar"
                <thead> 
                    <tr> 
                        <td class="rcTitlebar"><table cellspacing="0" border="0" summary="title and navigation"
                            <tbody><tr
                                <td><a href="#" title="<<" class="rcFastPrev" id="RadDatePicker1_calendar_FNP"><<</a></td><td><a href="#" title="<" class="rcPrev" id="RadDatePicker1_calendar_NP"><</a></td><td class="rcTitle" id="RadDatePicker1_calendar_Title">December 2009</td><td><href="#" title=">" class="rcNext" id="RadDatePicker1_calendar_NN">></a></td><td><href="#" title=">>" class="rcFastNext" id="RadDatePicker1_calendar_FNN">>></a></td
                            </tr> 
                        </tbody></table></td> 
                    </tr> 
                </thead><tbody
    <tr> 
        <td class="rcMain"><table cellspacing="0" border="0" summary="December 2009" class="rcMainTable" id="RadDatePicker1_calendar_Top"
    <thead> 
        <tr class="rcWeek"
            <th class="rcViewSel"</th><th scope="col" abbr="Sun" title="Sunday" id="RadDatePicker1_calendar_Top_cs_1">S</th><th scope="col" abbr="Mon" title="Monday" id="RadDatePicker1_calendar_Top_cs_2">M</th><th scope="col" abbr="Tue" title="Tuesday" id="RadDatePicker1_calendar_Top_cs_3">T</th><th scope="col" abbr="Wed" title="Wednesday" id="RadDatePicker1_calendar_Top_cs_4">W</th><th scope="col" abbr="Thu" title="Thursday" id="RadDatePicker1_calendar_Top_cs_5">T</th><th scope="col" abbr="Fri" title="Friday" id="RadDatePicker1_calendar_Top_cs_6">F</th><th scope="col" abbr="Sat" title="Saturday" id="RadDatePicker1_calendar_Top_cs_7">S</th> 
        </tr> 
    </thead><tbody
        <tr class="rcRow"
            <th scope="row" id="RadDatePicker1_calendar_Top_rs_1">49</th><td title="Sunday, November 29, 2009" class="rcOtherMonth"><href="#">29</a></td><td title="Monday, November 30, 2009" class="rcOtherMonth"><href="#">30</a></td><td title="Tuesday, December 01, 2009"><href="#">1</a></td><td title="Wednesday, December 02, 2009"><href="#">2</a></td><td title="Thursday, December 03, 2009"><href="#">3</a></td><td title="Friday, December 04, 2009"><href="#">4</a></td><td title="Saturday, December 05, 2009" class="rcWeekend"><href="#">5</a></td
        </tr><tr class="rcRow"
            <th scope="row" id="RadDatePicker1_calendar_Top_rs_2">50</th><td title="Sunday, December 06, 2009" class="rcWeekend"><href="#">6</a></td><td title="Monday, December 07, 2009"><href="#">7</a></td><td title="Tuesday, December 08, 2009"><href="#">8</a></td><td title="Wednesday, December 09, 2009"><href="#">9</a></td><td title="Thursday, December 10, 2009"><href="#">10</a></td><td title="Friday, December 11, 2009"><href="#">11</a></td><td title="Saturday, December 12, 2009" class="rcWeekend"><href="#">12</a></td
        </tr><tr class="rcRow"
            <th scope="row" id="RadDatePicker1_calendar_Top_rs_3">51</th><td title="Sunday, December 13, 2009" class="rcWeekend"><href="#">13</a></td><td title="Monday, December 14, 2009"><href="#">14</a></td><td title="Tuesday, December 15, 2009"><href="#">15</a></td><td title="Wednesday, December 16, 2009"><href="#">16</a></td><td title="Thursday, December 17, 2009"><href="#">17</a></td><td title="Friday, December 18, 2009"><href="#">18</a></td><td title="Saturday, December 19, 2009" class="rcWeekend"><href="#">19</a></td
        </tr><tr class="rcRow"
            <th scope="row" id="RadDatePicker1_calendar_Top_rs_4">52</th><td title="Sunday, December 20, 2009" class="rcWeekend"><href="#">20</a></td><td title="Monday, December 21, 2009"><href="#">21</a></td><td title="Tuesday, December 22, 2009"><href="#">22</a></td><td title="Wednesday, December 23, 2009"><href="#">23</a></td><td title="Thursday, December 24, 2009"><href="#">24</a></td><td title="Friday, December 25, 2009"><href="#">25</a></td><td title="Saturday, December 26, 2009" class="rcWeekend"><href="#">26</a></td
        </tr><tr class="rcRow"
            <th scope="row" id="RadDatePicker1_calendar_Top_rs_5">1</th><td title="Sunday, December 27, 2009" class="rcWeekend"><href="#">27</a></td><td title="Monday, December 28, 2009"><href="#">28</a></td><td title="Tuesday, December 29, 2009"><href="#">29</a></td><td title="Wednesday, December 30, 2009"><href="#">30</a></td><td title="Thursday, December 31, 2009"><href="#">31</a></td><td title="Friday, January 01, 2010" class="rcOtherMonth"><href="#">1</a></td><td title="Saturday, January 02, 2010" class="rcOtherMonth"><href="#">2</a></td
        </tr><tr class="rcRow"
            <th scope="row" id="RadDatePicker1_calendar_Top_rs_6">2</th><td title="Sunday, January 03, 2010" class="rcOtherMonth"><href="#">3</a></td><td title="Monday, January 04, 2010" class="rcOtherMonth"><href="#">4</a></td><td title="Tuesday, January 05, 2010" class="rcOtherMonth"><href="#">5</a></td><td title="Wednesday, January 06, 2010" class="rcOtherMonth"><href="#">6</a></td><td title="Thursday, January 07, 2010" class="rcOtherMonth"><href="#">7</a></td><td title="Friday, January 08, 2010" class="rcOtherMonth"><href="#">8</a></td><td title="Saturday, January 09, 2010" class="rcOtherMonth"><href="#">9</a></td
        </tr> 
    </tbody> 
</table></td
    </tr> 
</tbody> 
            </table><input type="hidden" value="[]" id="RadDatePicker1_calendar_SD" name="RadDatePicker1_calendar_SD"/><input type="hidden" value="[[1980,1,1],[2099,12,30],[2009,12,18]]" id="RadDatePicker1_calendar_AD" name="RadDatePicker1_calendar_AD"/></div></td
        </tr> 
    </tbody></table><input type="hidden" name="RadDatePicker1_ClientState" id="RadDatePicker1_ClientState" autocomplete="off"/> 
</div> 
Deniz Torlak
Top achievements
Rank 1
 answered on 18 Dec 2009
2 answers
364 views
How can I hide or show a radpane with javascript?

I dont see a visible or hide or show property on the clientside.

thanks
Svetlina Anati
Telerik team
 answered on 18 Dec 2009
3 answers
277 views
Hi Telerik guys !

I have two ROOTS within my RADFILE EXPLORER.

For example :-
        + ----- FTP 

        + ----- ROOT


Iam getting the DELETE option for FTP(I can delete the folder/file within the FTP)

What Iam here is loking for is NOT TO SHOW the DELETE option for ROOT. 

Below is the code Iam have written for this :--

 protected void Page_Load(object sender, EventArgs e)  
    {  
        try 
        {  
            MessageLabel.Text = "";  
            SuccessImage.Visible = false;  
 
 
 
            if (Session["UserID"] == null)  
            {  
                Session.Clear();  
                Response.Redirect("~/ExpiredMessage.aspx");  
            }  
 
            RadScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "PopForReport""function newWindow(url) { var popupWindow = window.open(url,'popUpWindow','height=700,width=600,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no, location=no,directories=no, status=yes'); return false; }"true);  
            RadScriptManager.RegisterClientScriptBlock(Page, Page.GetType(), "ErrorHandler""function handlerFunction(description,page,line) {return true;} window.onerror = handlerFunction;"true);  
            RadScriptManager.RegisterClientScriptInclude(Page, Page.GetType(),"pasword_encrypt""script/encode.js");  
             
 
        }  
        catch (Exception ex)  
        {  
            //throw new Exception(ex.Message.ToString());  
            StackTrace stackError = new StackTrace(new StackFrame(true));  
            BLLError.SetErrorProperties(ex.Message, stackError, short.Parse(Session["UserID"].ToString()));  
        }  
 
 
        GetMappedPath GMP = new GetMappedPath();  
 
        Dictionary<stringstring> mappedPathsInConfigFile = GMP.GetMappingsFromConfigFile();  
        //string DocumentPath = "";  
        string[] DocumentPath = new string[2];  
        int index = 0;  
        foreach (KeyValuePair<stringstring> mappedPath in mappedPathsInConfigFile)  
        {  
            DocumentPath[index] = mappedPath.Value.Replace("/""\\");  
            index += 1;  
        }  
 
        string[] viewPaths = new string[] { DocumentPath[1], DocumentPath[0]};  
        //string[] uploadPaths = new string[] { DocumentPath[1], DocumentPath[0]};  
        string[] deletePaths = new string[] { DocumentPath[1] };  
 
 
 
        FTPManagementRadFileExplorer.Configuration.ContentProviderTypeName = typeof(FTPCustomFileSystemProvider).AssemblyQualifiedName;  
        FTPManagementRadFileExplorer.Configuration.ViewPaths = viewPaths;  
        FTPManagementRadFileExplorer.Configuration.DeletePaths = deletePaths;  
          
    }  
 

As from the above code :-

viewPaths ----> is for Both the FTP  &  Root

While,  deletePaths -----> is for FTP  only.


But when I run my application Iam not able to see the DELETE option removed from my ROOT option.

I dont know why is this so ??


Below is the SCREEN SHOT for this .


Please help ?

Ajay
Fiko
Telerik team
 answered on 18 Dec 2009
6 answers
327 views
I have a combobox that updates other parts of the form as the user changes the value. However, my users want to change the value with the keyboard, not just with the mouse. When they use the keyboard (with either the up/down keys, or the letters of the item to select (MarkFirstMatch is = to true)) the SelectedIndexChanged event does not fire unless they tab out of the control or hit enter.
I have tried attaching to the OnClientTextChange, OnClientSelectedIndexChanged and OnClientSelectedIndexChanging events, but those don't seem to be firing until the blur or enter either.
I did get it to work with OnKeyPressing, but that event seems to fire before teh MarkFirstMatch code executes so my code only sees the letters typed so far. So if they Type "C" I get C instead of the value "Cat" that C would match.

The drop down is responding to C and selecting cat, it's just firing all but the key pressing events only on blur or enter, and the keypressing event to early for my needs.

Is there some setting that I can change to make this control fire the event they way the standard ASP:dropdownlist does? (ie, on down arrow, or typing the first letter of the item to select)

Thanks.
John
Top achievements
Rank 2
 answered on 18 Dec 2009
7 answers
194 views
I'm designing a left side navigation pane for our site and I've been doing it with a TreeView control.....but I'm beginning to wonder if I should have used PanelBar instead.  Does anyone have any ideas about which is better for site navigation?  I don't really want to start over in PanelBar because I've already done a lot of skin work on the TreeView.  Perhaps TreeView was never meant for site navigation and I should be using PanelBar anyhow.  lol   Any suggestions or opinions would be appreciated.  Thanks guys.
Dimo
Telerik team
 answered on 18 Dec 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?